diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-22 16:32:25 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-22 18:00:30 -0800 |
commit | 7c22792bdfa1f89990736bd8ef67cb4e5e64220f (patch) | |
tree | 855bf1ba6ef29c53ddb699863b07156407677c1b /include/mbgl/platform | |
parent | d745ff09235cfb62404f56fb6403fa093fa9a92c (diff) | |
download | qtlocation-mapboxgl-7c22792bdfa1f89990736bd8ef67cb4e5e64220f.tar.gz |
[tests] Rewrite resource loading test
Make it more readable and easier to debug.
Diffstat (limited to 'include/mbgl/platform')
-rw-r--r-- | include/mbgl/platform/log.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mbgl/platform/log.hpp b/include/mbgl/platform/log.hpp index a2a9119905..cd072c37da 100644 --- a/include/mbgl/platform/log.hpp +++ b/include/mbgl/platform/log.hpp @@ -21,6 +21,12 @@ public: virtual bool onRecord(EventSeverity severity, Event event, int64_t code, const std::string &msg) = 0; }; + class NullObserver : public Observer { + bool onRecord(EventSeverity, Event, int64_t, const std::string&) override { + return true; + } + }; + static void setObserver(std::unique_ptr<Observer> Observer); static std::unique_ptr<Observer> removeObserver(); |