[core] s/onSourceDidChange/onSourceChanged/ + source ref

This commit is contained in:
Bruno de Oliveira Abinader
2017-03-17 11:10:46 +02:00
parent 24198ebca8
commit c1a410be8b
8 changed files with 17 additions and 14 deletions

View File

@@ -388,8 +388,8 @@ TEST(Source, RasterTileAttribution) {
return response;
};
test.observer.sourceAttributionChanged = [&] (Source&, std::string attribution) {
EXPECT_EQ(mapboxOSM, attribution);
test.observer.sourceChanged = [&] (Source& source) {
EXPECT_EQ(mapboxOSM, source.getAttribution());
EXPECT_FALSE(mapboxOSM.find("©️ OpenStreetMap") == std::string::npos);
test.end();
};