summaryrefslogtreecommitdiff
path: root/test/api/custom_layer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/api/custom_layer.cpp')
-rw-r--r--test/api/custom_layer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/api/custom_layer.cpp b/test/api/custom_layer.cpp
index 923bf4566e..ef98b05983 100644
--- a/test/api/custom_layer.cpp
+++ b/test/api/custom_layer.cpp
@@ -13,6 +13,10 @@ using namespace mbgl;
static const GLchar * vertexShaderSource = "attribute vec2 a_pos; void main() { gl_Position = vec4(a_pos, 0, 1); }";
static const GLchar * fragmentShaderSource = "void main() { gl_FragColor = vec4(0, 1, 0, 1); }";
+// Not using any mbgl-specific stuff (other than a basic error-checking macro) in the
+// layer implementation because it is intended to reflect how someone using custom layers
+// might actually write their own implementation.
+
class TestLayer {
public:
~TestLayer() {
@@ -66,7 +70,7 @@ public:
TEST(CustomLayer, Basic) {
auto display = std::make_shared<mbgl::HeadlessDisplay>();
HeadlessView view(display, 1);
- OnlineFileSource fileSource(nullptr);
+ OnlineFileSource fileSource;
Map map(view, fileSource, MapMode::Still);
map.setStyleJSON(util::read_file("test/fixtures/api/empty.json"), "");