[core] Eliminate FileCache interface
There is only one implementation and we're unlikely to add more.
This commit is contained in:
@@ -66,7 +66,7 @@ TEST_F(Storage, CacheNotFound) {
|
||||
// Insert existing data into the cache that will be marked as stale.
|
||||
auto response = std::make_shared<Response>();
|
||||
response->data = std::make_shared<const std::string>("existing data");
|
||||
cache.put(resource, response, FileCache::Hint::Full);
|
||||
cache.put(resource, response, SQLiteCache::Hint::Full);
|
||||
|
||||
std::unique_ptr<FileRequest> req1;
|
||||
std::unique_ptr<WorkRequest> req2;
|
||||
@@ -124,7 +124,7 @@ TEST_F(Storage, DontCacheConnectionErrors) {
|
||||
// Insert existing data into the cache that will be marked as stale.
|
||||
auto response = std::make_shared<Response>();
|
||||
response->data = std::make_shared<const std::string>("existing data");
|
||||
cache.put(resource, response, FileCache::Hint::Full);
|
||||
cache.put(resource, response, SQLiteCache::Hint::Full);
|
||||
|
||||
std::unique_ptr<FileRequest> req1;
|
||||
std::unique_ptr<WorkRequest> req2;
|
||||
@@ -180,7 +180,7 @@ TEST_F(Storage, DontCacheServerErrors) {
|
||||
// Insert existing data into the cache that will be marked as stale.
|
||||
auto response = std::make_shared<Response>();
|
||||
response->data = std::make_shared<const std::string>("existing data");
|
||||
cache.put(resource, response, FileCache::Hint::Full);
|
||||
cache.put(resource, response, SQLiteCache::Hint::Full);
|
||||
|
||||
std::unique_ptr<FileRequest> req1;
|
||||
std::unique_ptr<WorkRequest> req2;
|
||||
|
||||
Reference in New Issue
Block a user