From 8a1fce547e9ad0bf750418c844c9b23a3ee6d8dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Wed, 21 Jan 2015 19:30:58 +0100 Subject: rearrange tests and add storage tests --- android/cpp/native_map_view.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'android/cpp') diff --git a/android/cpp/native_map_view.cpp b/android/cpp/native_map_view.cpp index 71db99ff8a..bf9a3a0532 100644 --- a/android/cpp/native_map_view.cpp +++ b/android/cpp/native_map_view.cpp @@ -52,9 +52,14 @@ void log_gl_string(GLenum name, const char *label) { } } +// Returns the path to the default cache database on this system. +std::string defaultCacheDatabase() { + return mbgl::android::cachePath + "/mbgl-cache.db"; +} + NativeMapView::NativeMapView(JNIEnv *env, jobject obj_) : mbgl::View(*this), - fileSource(mbgl::platform::defaultCacheDatabase()), + fileSource(defaultCacheDatabase()), map(*this, fileSource) { mbgl::Log::Debug(mbgl::Event::Android, "NativeMapView::NativeMapView"); -- cgit v1.2.1