rearrange tests and add storage tests

This commit is contained in:
Konstantin Käfer
2015-01-21 19:30:58 +01:00
parent 5503aef690
commit 8a1fce547e
49 changed files with 1119 additions and 500 deletions

View File

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