diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2014-11-25 14:18:47 -0500 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2014-12-03 12:25:11 -0500 |
commit | dac76a0f9269a580706e52b730a98f9b1430bcdf (patch) | |
tree | b7c592b648a443ef456479ddd2e21fe66d22abad /test | |
parent | d3ab8951530b760afb19e685078b1480babc2209 (diff) | |
download | qtlocation-mapboxgl-dac76a0f9269a580706e52b730a98f9b1430bcdf.tar.gz |
break out FileSource as an abstract class
add CachingHTTPFileSource implementation
Diffstat (limited to 'test')
-rw-r--r-- | test/headless.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/headless.cpp b/test/headless.cpp index e0409c4739..29db9500d4 100644 --- a/test/headless.cpp +++ b/test/headless.cpp @@ -11,6 +11,7 @@ #include <mbgl/platform/default/headless_view.hpp> #include <mbgl/platform/default/headless_display.hpp> +#include <mbgl/platform/default/caching_http_file_source.hpp> #include "./fixtures/fixture_log.hpp" @@ -184,7 +185,8 @@ TEST_P(HeadlessTest, render) { } HeadlessView view(env->display); - Map map(view); + CachingHTTPFileSource fileSource(platform::defaultCacheDatabase()); + Map map(view, fileSource); map.setStyleJSON(style, base_directory); map.setAppliedClasses(classes); |