diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-03-10 16:13:53 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-03-12 13:28:41 +0200 |
commit | 79f3149d9d973a31bcc5cf3ba1dbe77d90884ace (patch) | |
tree | a23ea65597fb0848f65850d1d65d2b31ba9275a3 /test/headless | |
parent | 51bc265db341f1d98b4fd46be80241771f854eb5 (diff) | |
download | qtlocation-mapboxgl-79f3149d9d973a31bcc5cf3ba1dbe77d90884ace.tar.gz |
Update the FixtureLog
Now the FixtureLog is an Log::Observer instead of a backend. The
observer can sniff and filter log messages, that can be used
for fail a test if it emits a warning for example.
Diffstat (limited to 'test/headless')
-rw-r--r-- | test/headless/headless.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/headless/headless.cpp b/test/headless/headless.cpp index bf04cbcb4b..c47b9349a8 100644 --- a/test/headless/headless.cpp +++ b/test/headless/headless.cpp @@ -1,5 +1,5 @@ #include "../fixtures/util.hpp" -#include "../fixtures/fixture_log.hpp" +#include "../fixtures/fixture_log_observer.hpp" #include <mbgl/map/map.hpp> #include <mbgl/util/image.hpp> @@ -101,7 +101,7 @@ TEST_P(HeadlessTest, render) { ASSERT_FALSE(infoDoc.HasParseError()); ASSERT_TRUE(infoDoc.IsObject()); - Log::Set<FixtureLogBackend>(); + Log::setObserver(util::make_unique<FixtureLogObserver>()); Log::Info(Event::General, "test fixture %s", base.c_str()); |