summaryrefslogtreecommitdiff
path: root/include/mbgl/platform
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-12-22 16:32:25 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-12-22 18:00:30 -0800
commit7c22792bdfa1f89990736bd8ef67cb4e5e64220f (patch)
tree855bf1ba6ef29c53ddb699863b07156407677c1b /include/mbgl/platform
parentd745ff09235cfb62404f56fb6403fa093fa9a92c (diff)
downloadqtlocation-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.hpp6
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();