diff options
Diffstat (limited to 'platform/default/include/mbgl/storage/offline_database.hpp')
-rw-r--r-- | platform/default/include/mbgl/storage/offline_database.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/default/include/mbgl/storage/offline_database.hpp b/platform/default/include/mbgl/storage/offline_database.hpp index 67a19fcf26..8c39090fbc 100644 --- a/platform/default/include/mbgl/storage/offline_database.hpp +++ b/platform/default/include/mbgl/storage/offline_database.hpp @@ -38,8 +38,6 @@ struct MapboxTileLimitExceededException : util::Exception { class OfflineDatabase : private util::noncopyable { public: - // Limits affect ambient caching (put) only; resources required by offline - // regions are exempt. OfflineDatabase(std::string path); ~OfflineDatabase(); @@ -96,6 +94,9 @@ public: std::exception_ptr pack(); void runPackDatabaseAutomatically(bool autopack_) { autopack = autopack_; } + // For testing only + void reopenDatabaseReadOnlyForTesting(); + private: void initialize(); void handleError(const mapbox::sqlite::Exception&, const char* action); @@ -151,6 +152,7 @@ private: bool evict(uint64_t neededFreeSize); bool autopack = true; + bool readOnly = false; }; } // namespace mbgl |