summaryrefslogtreecommitdiff
path: root/test/storage/http_load.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [tests] Rationalize storage testsJohn Firebaugh2016-04-141-49/+0
| | | | Properly divide Storage tests into DefaultFileSource, OnlineFileSource, and HTTPFileSource tests.
* [core] Unify FileRequest and WorkRequestJohn Firebaugh2016-03-241-1/+1
|
* [ios] make unit tests work on iOS and iOS SimulatorKonstantin Käfer2016-03-221-1/+1
|
* [core] Moving caching logic to DefaultFileSourceJohn Firebaugh2016-02-101-1/+1
| | | | This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more.
* [core] Use better types for modified / expires / etagJohn Firebaugh2016-01-211-3/+3
|
* [core] Eliminate Response::stale and inline Response::isExpired()John Firebaugh2016-01-211-1/+0
| | | | Response::isExpired() had subtle and potentially confusing behavior around Seconds::zero(). It's best to inline it and comment why.
* [tests] Test with OnlineFileSourceJohn Firebaugh2015-12-231-2/+2
| | | | | When we introduce OfflineFileSource, the behavior of existing tests should not change.
* [tests] Remove libuv dependency from the testsThiago Marcos P. Santos2015-12-011-4/+2
|
* [core] Replace time_t with std::chrono::secondsBruno de Oliveira Abinader2015-11-271-2/+3
| | | | | | | Added aliases for std::chrono typedefs (eg. 'Seconds' for std::chrono::seconds). These aliases are used together with templated helper functions to replace time_t with std::chrono::seconds for most cases, in particular for 'modified' and 'expires' values in Response.
* [core] Use std::unique_ptr for FileSource requestJohn Firebaugh2015-11-161-3/+2
|
* [core] Pass a value to response callback, not a referenceJohn Firebaugh2015-11-161-1/+1
|
* [core] Do not pass uv_loop_t aroundThiago Marcos P. Santos2015-11-161-1/+4
| | | | This should be abstracted by util::RunLoop
* [core] move retry logic to DefaultFileSourceKonstantin Käfer2015-11-021-2/+1
|
* [core] Make response data shared to avoid excessive copyingKonstantin Käfer2015-10-261-1/+2
|
* [core] add support for stale responsesKonstantin Käfer2015-10-261-0/+1
| | | | We're now returning stale responses from cache. Those responses will have the `stale` flag set to true. Currently, all requesters in the core code discard stale responses, and cancel the request immediately after they got a non-stale response.
* [core] all requests have to be canceled explicitly nowKonstantin Käfer2015-10-261-5/+9
| | | | By not automatically destroying Request objects after the result has been delivered, we are making sure that we can potentially fire the callback multiple times without adverse effects. This means that you have to hold on to the result of fs->request(), can explicitly cancel it if you don't want to be notified of data changes anymore. Not doing so will monitor the request indefinitely and will prevent the app from exiting.
* Remove Environment::terminate and associated codeJohn Firebaugh2015-04-281-3/+1
| | | | Fixes #1336
* hide Thread<> and separate the Implementation objectKonstantin Käfer2015-04-131-3/+2
|
* convert DefaultFileSource to use util::Thread<>Konstantin Käfer2015-04-101-2/+3
|
* scope Requests to an Environment object for easier cancelationKonstantin Käfer2015-03-061-1/+5
| | | | | | | | | we are now scoping all file requests to an environment object. The FileSource implementation treats this as an opaque pointer, but allows canceling all Requests that are associated with that pointer. This is necessary to abort all file requests that originated from a particular Map object. Aborting a file request is different from canceling a file request: A canceled request doesn't have its callback called, while an aborted request will have its callback called with an error, indicating that the environment is going to be shut down.
* refactor makefileKonstantin Käfer2015-02-041-1/+1
|
* asset:// URLs are local to the executable path nowKonstantin Käfer2015-02-041-6/+6
|
* rearrange tests and make more robustKonstantin Käfer2015-02-041-4/+2
|
* rearrange tests and add storage testsKonstantin Käfer2015-02-041-0/+44