summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-05-22 15:56:05 +0200
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-06-26 10:32:06 -0700
commit84e2ea886dc55917a1d6b665337fff6d3862984a (patch)
tree75d7411f09f48aa8b35be9348bc3687cb4efb1f8 /test/fixtures
parent740281cc89e99fbbedf07fcf62253ada84f60776 (diff)
downloadqtlocation-mapboxgl-84e2ea886dc55917a1d6b665337fff6d3862984a.tar.gz
drive map rendering from main thread
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/mock_view.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/fixtures/mock_view.hpp b/test/fixtures/mock_view.hpp
new file mode 100644
index 0000000000..dcbe3fef84
--- /dev/null
+++ b/test/fixtures/mock_view.hpp
@@ -0,0 +1,22 @@
+#ifndef TEST_FIXTURES_MOCK_VIEW
+#define TEST_FIXTURES_MOCK_VIEW
+
+#include <mbgl/map/view.hpp>
+
+namespace mbgl {
+
+class MockView : public View {
+public:
+ MockView() = default;
+
+ // View implementation.
+ void activate() override {};
+ void deactivate() override {};
+ void notify() override {};
+ void invalidate() override {}
+ void swap() override {}
+};
+
+}
+
+#endif