summaryrefslogtreecommitdiff
path: root/test/storage
Commit message (Collapse)AuthorAgeFilesLines
* follow-up fixes after 16416Mikhail Pozdnyakov2020-04-221-1/+0
|
* [core] Database file source does not return stored tiles for volatile resourcesMikhail Pozdnyakov2020-04-221-0/+31
| | | | The `DatabaseFileSource.VolatileResource` test is included.
* [core] Add Resource::StoragePolicy and consider it in resource loaderMikhail Pozdnyakov2020-04-221-0/+27
|
* Add OnlineFileSource.RespectMinimumUpdateInterval unit testMikhail Pozdnyakov2020-04-201-0/+19
|
* [core] Fix google-default-arguments errors in header filesThiago Marcos P. Santos2020-04-171-2/+2
| | | | As reported by clang-tidy-8.
* [build] Fix undefined behavour sanitizer (#16375)zmiao2020-04-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [build] Fix integer overflow runtime error for core part Temporarily remove circle ci UBSAN build precondition * [build] Enable all of the ubsans [build] Check runtime error [build] Update UBSAN_OPTION * [build] Add UBSAN blacklist [build] Ignore system libraries [build] Ignore vendor library * [build] Fix implicit conversion runtime error in core * [build] Fix division by zero runtime error * [build] Add unfixed error to ubsan blacklist * [build] Make UBSAN halt on error Revert "Temporary remove build precondition" * [build] Fix division by zero error * [build] Make UBSAN officially work without FIXME prefix * [build] Fix implicit conversion from int64_t to uint64_t * [build] Rename style test json file name * Address review findings
* [core] Add unit tests for ambient cache sizeAlexander Shalamov2020-03-071-8/+52
|
* Add OfflineDownload.NoFreezingOnNotFoundError unit testMikhail Pozdnyakov2020-02-281-0/+69
|
* [core] OnlineFileSource is never accessed directlyMikhail Pozdnyakov2020-02-262-143/+134
|
* [core] FileSourceManager::getFileSource() returns PassRefPtrMikhail Pozdnyakov2020-02-262-21/+34
|
* Add OfflineDownload.NoFreezingOnCachedTilesAndNewStyle unit testMikhail Pozdnyakov2020-02-251-0/+36
|
* [core] Consolidate file source keys in the generic FileSource headerMikhail Pozdnyakov2020-02-252-6/+6
| | | | | Thus we do not need to include specific headers to use `{set|get}Property` API with key constants.
* [test] Fix failing tests on iOSJuha Alanen2020-02-141-4/+4
|
* [core] Add unit testAlexander Shalamov2020-02-141-0/+36
|
* Add OfflineDatabase.UpdateDatabaseReadOnlyMode unit testMikhail Pozdnyakov2020-02-071-0/+16
|
* Add OfflineDatabase.PutResourceReadOnlyMode unit testMikhail Pozdnyakov2020-02-071-0/+27
|
* [test] Improve the stability of a test on AndroidJuha Alanen2020-02-061-3/+10
|
* [test] Remove node.js based HTTP serverJuha Alanen2020-01-301-175/+0
|
* [core] Add unit test for pausing & resuming database fsAlexander Shalamov2020-01-271-0/+25
|
* [core] Modularize FileSource codebase (#15768)Alexander Shalamov2020-01-137-273/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] Introduce FileSourceManager and use it for default platform impl - Add `FileSourceManager` interface that provides access to `FileSource` instances and means of registering / unregistering `FileSource` factories - Split `DefaultFileSource` into smaller parts - Add `DatabaseFileSource` interface and it's default implementation - Remove inter-dependencies between concrete `FileSource` classes * [build] Add files to next build system * [core] Add generic property setters / getters * [core] Remove setOnlineStatus from OnlineFileSource interface * [core] Hide threading implementation details from DatabaseFileSource interface * [core] Make DB file source methods virtual * [core] Add documentation for DatabaseFileSource and rename one method * [core] Use simple callback instead of ActorRef * [core] Remove ActorRef from OnlineFileSource public header * [core] Add callback to FileSource::forward async API * [core] Pass OfflineRegionDefinition by value * [core] Update tests to use modular file sources * [core] Update unit tests * [core] Update unit tests after rebase * [core] Backport low prio fix for cached requests * [core] Backport pack database * [core] Return removed factory from unRegisterFileSourceFactory * [core] Rename shadowed args in onlinefilesource * [core] Remove simple std::function callback aliases * [core] Expose online file source property keys in public header file * [test-runner] Add proxy file source test runner * [cache] Update mbgl-cache utility to use new file source * [metrics] Rebaseline binary size metrics * [offline] Update offline utility * [core] Update changelog
* [core] Offline download must clear batch buffer at load interruptMikhail Pozdnyakov2019-12-181-1/+82
| | | | | | | Otherwise, the stale buffer data are processed again at the repeated load. It is causing various problems like missing load completion notification or crashes (if the previously used observer instance has been deleted).
* [core] Add OfflineDatabase.Pack unit testMikhail Pozdnyakov2019-12-021-0/+30
|
* [core] Introduce OfflineDatabase::runPackDatabaseAutomatically() APIMikhail Pozdnyakov2019-12-021-2/+3
| | | | | - added a unit test - Updated inline comments in default_file_source.hpp
* [tests] Increase test toleranceThiago Marcos P. Santos2019-11-271-1/+1
| | | | This test has been flaky on mac.
* [test] Add test for priority of online requests for expired resourcesJuha Alanen2019-11-211-1/+76
|
* [core] OfflineDatabase pack APIMikhail Pozdnyakov2019-11-121-11/+37
| | | | | | - introduce `OfflineDatabase::pack()` standing for incremental vacuum - make pack optional at offline region deletion - update `OfflineDatabase.DeleteRegion` test accordingly to the items above
* [core] Enable incremental vacuum for Offline DBMikhail Pozdnyakov2019-10-221-6/+46
| | | | Thus we avoid re-creating the whole database and keeping the backup file as it happens on calling VACUUM.
* [core] Fix performance-move-const-argThiago Marcos P. Santos2019-09-251-2/+2
|
* [core] Add Map.Issue15342 unit testMikhail Pozdnyakov2019-09-121-2/+2
| | | | | The newly added test checks the fix for constant repaint, caused by `RenderSource::hasFadingTiles()` returning `true` all the time.
* [core] Add unit test to verify that Offline usage tag is not setAlexander Shalamov2019-09-111-1/+79
| | | | | New unit test checks that Offline usage flag is not set for invalidated offline region resource requests.
* Always call onSourceLoaded observers (#15548)Konstantin Käfer2019-09-031-0/+50
| | | | | | | | * [core] add sources to source collection before triggering load * [test] add testcase for #15514 * [core] also call onSourceLoaded observers when no network request was necessary
* [core] Add requiredTileCount to OfflineRegionStatusBruno de Oliveira Abinader2019-08-291-0/+11
|
* [core] Mark offline region resources in batchesMikhail Pozdnyakov2019-08-291-20/+18
|
* [core] Disable flaky OfflineDatabase.MaximumAmbientCacheSize testJason Wray2019-08-071-1/+2
|
* [core] Add storage unit tests for MapboxTileLimitExceededThiago Marcos P. Santos2019-06-191-0/+98
|
* [tests] Add unit tests for cache sizeThiago Marcos P. Santos2019-06-181-0/+134
|
* [core] Add method for setting a maximum size for the ambient cacheThiago Marcos P. Santos2019-06-181-13/+34
| | | | | | | - Removed this parameter from the constructor, now that we have a method to set it. - Add the method and enforce the limits if the ambient cache exceeds the size.
* [core] Clear/Invalidate should also work on non-tile resourcesThiago Marcos P. Santos2019-06-181-29/+59
| | | | | These methods were only affecting tiles, but they should really work on every resource like style, glyphs, etc.
* [core] Rename resetCache to resetDatabaseThiago Marcos P. Santos2019-06-181-3/+3
| | | | | Avoid confusion about what is being reset. In this case, the whole database and not only the ambient cache.
* [tests] Follow-up of previews PR, these tests need write permissionThiago Marcos P. Santos2019-06-181-2/+2
|
* [tests] Improve unit test for deleting offline region and concurrent useThiago Marcos P. Santos2019-06-131-12/+39
| | | | | | Test if the physical size of the database will also reduce. Clear the cache while adding resource on another connection.
* [tests] Add unit test for clearing the ambient cacheThiago Marcos P. Santos2019-06-131-11/+39
|
* [core] Remove priority from the constructorThiago Marcos P. Santos2019-05-282-5/+8
| | | | Make the constructor less verbose and set good defaults.
* [core] Introduce usage tag for resourcesThiago Marcos P. Santos2019-05-281-1/+8
| | | | | | | Make the distinction if a resource is being requested for offline usage or if it will be used immediately. Fixes #14746
* [core] invoke optional resource path change completion listenerŁukasz Paczos2019-05-241-0/+12
|
* [tests] Add unit tests for offline data invalidationThiago Marcos P. Santos2019-05-211-0/+67
|
* [test] Add unit test for clearCache APISudarsana Babu Nagineni2019-04-291-0/+14
|
* [core] clang-tidy fixesKonstantin Käfer2019-04-051-1/+1
|
* [core] expose an option to change the db file path in runtimeŁukasz Paczos2019-03-131-0/+8
|
* [core] Support for excluding ideographic glyphs from offline downloads.Chris Loer2018-12-213-35/+117
|