summaryrefslogtreecommitdiff
path: root/test/style/style.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-14 16:07:21 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-16 13:27:15 -0700
commit900568cfb0b84a298395f4d84488fd9323552c63 (patch)
treee2c315656ca57a07ba48e38df5743fb05debb115 /test/style/style.cpp
parent19158d9f01909bf566616524f23e0acb635562f7 (diff)
downloadqtlocation-mapboxgl-900568cfb0b84a298395f4d84488fd9323552c63.tar.gz
[core] Runtime source API: private impls
Diffstat (limited to 'test/style/style.cpp')
-rw-r--r--test/style/style.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/style/style.cpp b/test/style/style.cpp
index d530d9cbdd..1681bac1c9 100644
--- a/test/style/style.cpp
+++ b/test/style/style.cpp
@@ -2,7 +2,7 @@
#include <mbgl/test/stub_file_source.hpp>
#include <mbgl/style/style.hpp>
-#include <mbgl/style/source.hpp>
+#include <mbgl/style/source_impl.hpp>
#include <mbgl/util/io.hpp>
using namespace mbgl;
@@ -22,11 +22,11 @@ TEST(Style, UnusedSource) {
Source *usedSource = style.getSource("usedsource");
EXPECT_TRUE(usedSource);
- EXPECT_TRUE(usedSource->isLoaded());
+ EXPECT_TRUE(usedSource->baseImpl->isLoaded());
Source *unusedSource = style.getSource("unusedsource");
EXPECT_TRUE(unusedSource);
- EXPECT_FALSE(unusedSource->isLoaded());
+ EXPECT_FALSE(unusedSource->baseImpl->isLoaded());
}
TEST(Style, UnusedSourceActiveViaClassUpdate) {
@@ -46,7 +46,7 @@ TEST(Style, UnusedSourceActiveViaClassUpdate) {
Source *unusedSource = style.getSource("unusedsource");
EXPECT_TRUE(unusedSource);
- EXPECT_TRUE(unusedSource->isLoaded());
+ EXPECT_TRUE(unusedSource->baseImpl->isLoaded());
// Style classes should be cleared upon new style load.
style.setJSON(util::read_file("test/fixtures/resources/style-unused-sources.json"));
@@ -59,5 +59,5 @@ TEST(Style, UnusedSourceActiveViaClassUpdate) {
unusedSource = style.getSource("unusedsource");
EXPECT_TRUE(unusedSource);
- EXPECT_FALSE(unusedSource->isLoaded());
+ EXPECT_FALSE(unusedSource->baseImpl->isLoaded());
}