Use single threaded fixture log

This commit is contained in:
Alexander Shalamov
2020-04-15 15:19:02 +03:00
parent 42ceb70365
commit 51000f6d6d

View File

@@ -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);
}