summaryrefslogtreecommitdiffstats
path: root/net/http/mock_http_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/mock_http_cache.cc')
-rw-r--r--net/http/mock_http_cache.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/http/mock_http_cache.cc b/net/http/mock_http_cache.cc
index c483323..ce49d33 100644
--- a/net/http/mock_http_cache.cc
+++ b/net/http/mock_http_cache.cc
@@ -524,13 +524,10 @@ int MockBackendFactory::CreateBackend(NetLog* net_log,
//-----------------------------------------------------------------------------
-MockHttpCache::MockHttpCache()
- : http_cache_(new MockNetworkLayer(), NULL, new MockBackendFactory()) {
-}
+MockHttpCache::MockHttpCache() : MockHttpCache(new MockBackendFactory()) {}
MockHttpCache::MockHttpCache(HttpCache::BackendFactory* disk_cache_factory)
- : http_cache_(new MockNetworkLayer(), NULL, disk_cache_factory) {
-}
+ : http_cache_(new MockNetworkLayer(), nullptr, disk_cache_factory, true) {}
disk_cache::Backend* MockHttpCache::backend() {
TestCompletionCallback cb;