[tests] Test with OnlineFileSource
When we introduce OfflineFileSource, the behavior of existing tests should not change.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "storage.hpp"
|
||||
|
||||
#include <mbgl/storage/default_file_source.hpp>
|
||||
#include <mbgl/storage/online_file_source.hpp>
|
||||
#include <mbgl/util/chrono.hpp>
|
||||
#include <mbgl/util/run_loop.hpp>
|
||||
|
||||
@@ -13,7 +13,7 @@ TEST_F(Storage, HTTPCoalescing) {
|
||||
using namespace mbgl;
|
||||
|
||||
util::RunLoop loop;
|
||||
DefaultFileSource fs(nullptr);
|
||||
OnlineFileSource fs(nullptr);
|
||||
|
||||
static const Response *reference = nullptr;
|
||||
|
||||
@@ -59,7 +59,7 @@ TEST_F(Storage, HTTPMultiple) {
|
||||
using namespace mbgl;
|
||||
|
||||
util::RunLoop loop;
|
||||
DefaultFileSource fs(nullptr);
|
||||
OnlineFileSource fs(nullptr);
|
||||
|
||||
const Resource resource { Resource::Unknown, "http://127.0.0.1:3000/test?expires=2147483647" };
|
||||
std::unique_ptr<FileRequest> req1;
|
||||
@@ -104,7 +104,7 @@ TEST_F(Storage, HTTPStale) {
|
||||
using namespace mbgl;
|
||||
|
||||
util::RunLoop loop;
|
||||
DefaultFileSource fs(nullptr);
|
||||
OnlineFileSource fs(nullptr);
|
||||
|
||||
int updates = 0;
|
||||
int stale = 0;
|
||||
|
||||
Reference in New Issue
Block a user