summaryrefslogtreecommitdiff
path: root/chromium/net/disk_cache/disk_cache_test_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/disk_cache/disk_cache_test_base.h')
-rw-r--r--chromium/net/disk_cache/disk_cache_test_base.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/chromium/net/disk_cache/disk_cache_test_base.h b/chromium/net/disk_cache/disk_cache_test_base.h
index 595a4767f7c..9d00822e84c 100644
--- a/chromium/net/disk_cache/disk_cache_test_base.h
+++ b/chromium/net/disk_cache/disk_cache_test_base.h
@@ -15,7 +15,7 @@
#include "base/threading/thread.h"
#include "net/base/cache_type.h"
#include "net/disk_cache/disk_cache.h"
-#include "net/test/test_with_scoped_task_environment.h"
+#include "net/test/test_with_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
@@ -40,8 +40,7 @@ class SimpleFileTracker;
// Mac, so this needs to be a PlatformTest. Even tests that do not require a
// cache (and that do not need to be a DiskCacheTestWithCache) are susceptible
// to this problem; all such tests should use TEST_F(DiskCacheTest, ...).
-class DiskCacheTest : public PlatformTest,
- public net::WithScopedTaskEnvironment {
+class DiskCacheTest : public PlatformTest, public net::WithTaskEnvironment {
protected:
DiskCacheTest();
~DiskCacheTest() override;
@@ -132,11 +131,12 @@ class DiskCacheTestWithCache : public DiskCacheTest {
}
// Utility methods to access the cache and wait for each operation to finish.
- int OpenOrCreateEntry(const std::string& key,
- disk_cache::EntryWithOpened* entry_struct);
- int OpenOrCreateEntryWithPriority(const std::string& key,
- net::RequestPriority request_priority,
- disk_cache::EntryWithOpened* entry_struct);
+ // Also closer to legacy API.
+ // TODO(morlovich): Port all the tests to EntryResult.
+ disk_cache::EntryResult OpenOrCreateEntry(const std::string& key);
+ disk_cache::EntryResult OpenOrCreateEntryWithPriority(
+ const std::string& key,
+ net::RequestPriority request_priority);
int OpenEntry(const std::string& key, disk_cache::Entry** entry);
int OpenEntryWithPriority(const std::string& key,
net::RequestPriority request_priority,