summaryrefslogtreecommitdiff
path: root/test/storage
Commit message (Collapse)AuthorAgeFilesLines
* [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
|
* [build] rework platform/default directory and add -files.txt for vendored libsKonstantin Käfer2018-12-143-3/+3
|
* [core] Fixed {prefix} evaluationMinh Nguyễn2018-11-211-3/+3
| | | | This appears to have been an attempt to use the std::string fill constructor, but it ended up creating a one-character-long string and attempting to overwrite the null terminator.
* [core] add test about number of maximum concurrent requestsHuyen Chau Nguyen2018-11-152-3/+12
|
* [core] define number of concurrent downloads in online file source variableHuyen Chau Nguyen2018-11-151-2/+2
|
* [test] Add test for when requesting the same resource many timesThiago Marcos P. Santos2018-11-131-1/+19
| | | | This test would have prevented the crash fixed by the previous patch.
* [core] add tests for handling requests with different prioritiesHuyen Chau Nguyen2018-10-232-1/+92
| | | | | | - ensure that low priority requests are handled last - add option to set the number of maximum concurrent requests for tests - some style fixups
* [core] add priorities to resourcesHuyen Chau Nguyen2018-10-232-3/+63
| | | | | - priorities can be low or regular - offline downloads should have low priority to not throttle "regular requests"
* [core] Always request 1x and @2x sprite images for portabilityKonstantin Käfer2018-09-241-5/+7
| | | | When creating a offline region, we've previously only requested the sprite image for the specified resolution. This lead to offline packs not being usable on devices that have a different pixel ratio. We're now requesting both 1x and 2x sprites. Some devices use even higher or fractional pixel ratios. However, we only ever use 1x and 2x sprite images in our requests.
* [android] add support for gnustlKonstantin Käfer2018-09-112-4/+6
|
* Enforce Offline tile limit when merging sideloaded databasesAsheem Mamoowala2018-08-281-0/+31
|
* Require minimum side-loaded database user_version=6Asheem Mamoowala2018-08-281-1/+1
|
* Add unit tests and fixtures for OfflineDatabase::mergeDatabaseAsheem Mamoowala2018-08-281-0/+203
|