[tests] Test with OnlineFileSource

When we introduce OfflineFileSource, the behavior of existing tests should
not change.
This commit is contained in:
John Firebaugh
2015-12-23 14:55:12 -08:00
parent d238e00d9b
commit 7a6076ea9d
24 changed files with 76 additions and 77 deletions

View File

@@ -1,6 +1,6 @@
#include "storage.hpp"
#include <mbgl/storage/default_file_source.hpp>
#include <mbgl/storage/online_file_source.hpp>
#include <mbgl/storage/network_status.hpp>
#include <mbgl/util/chrono.hpp>
#include <mbgl/util/run_loop.hpp>
@@ -13,7 +13,7 @@ TEST_F(Storage, HTTPTemporaryError) {
using namespace mbgl;
util::RunLoop loop;
DefaultFileSource fs(nullptr);
OnlineFileSource fs(nullptr);
const auto start = Clock::now();
@@ -60,7 +60,7 @@ TEST_F(Storage, HTTPConnectionError) {
using namespace mbgl;
util::RunLoop loop;
DefaultFileSource fs(nullptr);
OnlineFileSource fs(nullptr);
const auto start = Clock::now();