Alexander Shalamov
|
879c44f661
|
[core] Modularize FileSource codebase (#15768)
* [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
|
2020-01-13 10:57:23 +02:00 |
|
Thiago Marcos P. Santos
|
91d83accde
|
[tests] Increase test tolerance
This test has been flaky on mac.
|
2019-11-27 18:32:58 +02:00 |
|
Thiago Marcos P. Santos
|
33ee7e23de
|
[core] Remove priority from the constructor
Make the constructor less verbose and set good defaults.
|
2019-05-28 16:30:49 +03:00 |
|
Huyen Chau Nguyen
|
8d0b06d5dd
|
[core] add test about number of maximum concurrent requests
|
2018-11-15 12:19:48 -08:00 |
|
Huyen Chau Nguyen
|
9a606caf0b
|
[core] define number of concurrent downloads in online file source variable
|
2018-11-15 12:19:48 -08:00 |
|
Thiago Marcos P. Santos
|
01d9005c3b
|
[test] Add test for when requesting the same resource many times
This test would have prevented the crash fixed by the previous patch.
|
2018-11-13 23:26:34 +02:00 |
|
Huyen Chau Nguyen
|
fa78bcadfd
|
[core] add tests for handling requests with different priorities
- ensure that low priority requests are handled last
- add option to set the number of maximum concurrent requests for tests
- some style fixups
|
2018-10-23 12:47:10 +02:00 |
|
Konstantin Käfer
|
4a3c4edb59
|
[android] add support for gnustl
|
2018-09-11 11:43:54 +02:00 |
|
Konstantin Käfer
|
f0a7c45064
|
[core] finish must-revalidate support
|
2017-08-08 12:40:38 +02:00 |
|
Konstantin Käfer
|
62ea1f2185
|
[core] remove trailing whitespace, add trailing newlines, add space after //
|
2017-01-27 11:44:16 +01:00 |
|
Ivo van Dongen
|
d2c9750b6d
|
[core] fix up online file source test so it compiles on android
|
2016-11-27 18:50:24 +02:00 |
|
Konstantin Käfer
|
b470a65582
|
[build] add back -Werror
|
2016-09-30 17:01:05 +02:00 |
|
Konstantin Käfer
|
3f3fc7b772
|
[test] add .test.cpp suffix to test case files
|
2016-09-28 16:34:22 +02:00 |
|