summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-01-04 02:10:21 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-01-08 13:07:12 +0200
commitd08bb49c345839ca6e3986eea7d954b51719c7e9 (patch)
tree01e1b4b2762ab16df046a78437a3af755ade2c04 /include
parentf306957a6de5e89dad0a5053f809e1ef93664179 (diff)
downloadqtlocation-mapboxgl-d08bb49c345839ca6e3986eea7d954b51719c7e9.tar.gz
[core] Make it possible to reopen the database read-only for testing
Needed for Android, because the database is in readonly filesystem and also because it is annoying to see files modified every time we run the tests.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/storage/default_file_source.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp
index 2942a25a85..fdd430ccad 100644
--- a/include/mbgl/storage/default_file_source.hpp
+++ b/include/mbgl/storage/default_file_source.hpp
@@ -257,6 +257,7 @@ public:
// For testing only.
void setOnlineStatus(bool);
+ void reopenDatabaseReadOnlyForTesting();
void setMaximumConcurrentRequests(uint32_t);
class Impl;