From 9af70cb127d190a9b8257942c6080c8a1b440004 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Thu, 14 Feb 2019 16:56:17 +0200 Subject: [core] Make the BackgroundScheduler a singleton - Do not carry it over everywhere as parameter, it is a shared instance anyway and the lifecycle is pretty much the app lifecycle from the moment we instantiate a map. - Rename to BackgroundScheduler because it is a Scheduler that will do tasks in the background, we don't make assumptions if it is a thread pool or a single thread. - Most importantly, remove the dependency from `core` on `platform`. --- test/style/style_layer.test.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/style/style_layer.test.cpp') diff --git a/test/style/style_layer.test.cpp b/test/style/style_layer.test.cpp index 50aa643b50..5f9de07dba 100644 --- a/test/style/style_layer.test.cpp +++ b/test/style/style_layer.test.cpp @@ -18,7 +18,6 @@ #include #include #include -#include #include #include @@ -273,9 +272,8 @@ TEST(Layer, DuplicateLayer) { util::RunLoop loop; // Setup style - ThreadPool threadPool{ 1 }; StubFileSource fileSource; - Style::Impl style { threadPool, fileSource, 1.0 }; + Style::Impl style { fileSource, 1.0 }; style.loadJSON(util::read_file("test/fixtures/resources/style-unused-sources.json")); // Add initial layer -- cgit v1.2.1