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

Unified Diff: content/browser/loader/temporary_file_stream_unittest.cc

Issue 2888743002: Switch temporary_file_stream to the TaskScheduler API. (Closed)
Patch Set: Switch to USER_VISIBLE priority 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: content/browser/loader/temporary_file_stream_unittest.cc
diff --git a/content/browser/loader/temporary_file_stream_unittest.cc b/content/browser/loader/temporary_file_stream_unittest.cc
index 4db92d3111c78d6d92aff3936ba1bdb286fb83a8..939d0aae3e01f17ce9d5199aa983e555dd07eba6 100644
--- a/content/browser/loader/temporary_file_stream_unittest.cc
+++ b/content/browser/loader/temporary_file_stream_unittest.cc
@@ -14,6 +14,7 @@
#include "base/macros.h"
#include "base/run_loop.h"
#include "content/public/test/test_browser_thread_bundle.h"
+#include "content/public/test/test_utils.h"
#include "net/base/file_stream.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
@@ -111,7 +112,7 @@ TEST(TemporaryFileStreamTest, Basic) {
// Release everything. The file should be gone now.
file_stream_waiter.Release();
- base::RunLoop().RunUntilIdle();
+ content::RunAllBlockingPoolTasksUntilIdle();
// The temporary should be gone now.
EXPECT_FALSE(base::PathExists(file_path));

Powered by Google App Engine
This is Rietveld 408576698