[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
This commit is contained in:
Huyen Chau Nguyen
2018-10-17 20:15:08 +02:00
parent 40693e00a8
commit fa78bcadfd
4 changed files with 113 additions and 14 deletions

View File

@@ -26,6 +26,7 @@ public:
// For testing only.
void setOnlineStatus(bool);
void setMaximumConcurrentRequestsOverride(uint32_t);
private:
friend class OnlineFileRequest;