diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-04-15 15:19:02 +0300 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-04-15 10:42:11 -0400 |
commit | 51000f6d6d727e49e5a33e8ae83a85004924f146 (patch) | |
tree | 0778451279899bc318928cae1931f530e11f88ef | |
parent | 42ceb70365cccb492911c64479c7447ba374b200 (diff) | |
download | qtlocation-mapboxgl-51000f6d6d727e49e5a33e8ae83a85004924f146.tar.gz |
Use single threaded fixture log
-rw-r--r-- | test/api/api_misuse.test.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/api/api_misuse.test.cpp b/test/api/api_misuse.test.cpp index aeb0e4864a..549f26c8d4 100644 --- a/test/api/api_misuse.test.cpp +++ b/test/api/api_misuse.test.cpp @@ -15,8 +15,7 @@ using namespace mbgl; TEST(API, RenderWithoutCallback) { - auto log = new FixtureLogObserver(); - Log::setObserver(std::unique_ptr<Log::Observer>(log)); + FixtureLog log; util::RunLoop loop; @@ -37,5 +36,5 @@ TEST(API, RenderWithoutCallback) { "StillImageCallback not set", }; - EXPECT_EQ(log->count(logMessage), 1u); + EXPECT_EQ(log.count(logMessage), 1u); } |