Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: net/disk_cache/disk_cache_test_base.h

Issue 2839663002: Instantiate ScopedTaskEnvironment in net unittests. (Closed)
Patch Set: self-review Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/disk_cache_test_base.h
diff --git a/net/disk_cache/disk_cache_test_base.h b/net/disk_cache/disk_cache_test_base.h
index b9564f930e24be20e367463d10d653de62a64e8f..aa91ed74c7f4d630d77eebf5f3d2fd8c1c7b6a01 100644
--- a/net/disk_cache/disk_cache_test_base.h
+++ b/net/disk_cache/disk_cache_test_base.h
@@ -12,7 +12,6 @@
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/macros.h"
-#include "base/test/scoped_async_task_scheduler.h"
#include "base/threading/thread.h"
#include "net/base/cache_type.h"
#include "net/disk_cache/disk_cache.h"
@@ -56,13 +55,6 @@ class DiskCacheTest : public PlatformTest {
private:
base::ScopedTempDir temp_dir_;
- std::unique_ptr<base::MessageLoop> message_loop_;
-
- // Use a ScopedAsyncTaskScheduler instead of a ScopedTaskScheduler to allow
- // disk_cache::InFlightIO::WaitForPendingIO to wait for TaskScheduler tasks
- // from the main thread using WaitableEvents (this wouldn't work if
- // TaskScheduler tasks ran on the main thread).
- base::test::ScopedAsyncTaskScheduler scoped_async_task_scheduler_;
};
// Provides basic support for cache related tests.

Powered by Google App Engine
This is Rietveld 408576698