summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-10-07 16:26:21 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-10-07 16:26:21 -0400
commit36b7bb0c0991b3c5c3a7d001139b120bee854484 (patch)
tree43e259265c7d3d6d1afcae177313adcbffd50295 /test
parent5cc6b26229597ef78bd87d21367b75f2051b7314 (diff)
downloadqtlocation-mapboxgl-36b7bb0c0991b3c5c3a7d001139b120bee854484.tar.gz
clean up shared_ptr usage in HeadlessView
Diffstat (limited to 'test')
-rw-r--r--test/headless.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/headless.cpp b/test/headless.cpp
index d4c4d6036e..981a9dcd59 100644
--- a/test/headless.cpp
+++ b/test/headless.cpp
@@ -10,6 +10,7 @@
#include <rapidjson/stringbuffer.h>
#include "../common/headless_view.hpp"
+#include "../common/headless_display.hpp"
#include "./fixtures/fixture_log.hpp"
@@ -22,6 +23,8 @@ const std::string base_directory = []{
return fn + "/node_modules/mapbox-gl-test-suite/";
}();
+auto display_ = std::make_shared<mbgl::HeadlessDisplay>();
+
class HeadlessTest : public ::testing::TestWithParam<std::string> {};
TEST_P(HeadlessTest, render) {
@@ -78,7 +81,7 @@ TEST_P(HeadlessTest, render) {
}
}
- HeadlessView view;
+ HeadlessView view(display_);
Map map(view);
map.setStyleJSON(style, base_directory);