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

Unified Diff: content/public/test/test_browser_thread_bundle.cc

Issue 2557083002: Run ScopedTaskScheduler tasks synchronously. (Closed)
Patch Set: self-review Created 4 years 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/public/test/test_browser_thread_bundle.cc
diff --git a/content/public/test/test_browser_thread_bundle.cc b/content/public/test/test_browser_thread_bundle.cc
index 537e24534c3bda496b4648d0c31e12738d2f2974..40be01be98dec9b40167061bd495b61c6957ae98 100644
--- a/content/public/test/test_browser_thread_bundle.cc
+++ b/content/public/test/test_browser_thread_bundle.cc
@@ -4,8 +4,10 @@
#include "content/public/test/test_browser_thread_bundle.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
+#include "base/test/scoped_task_scheduler.h"
#include "content/browser/browser_thread_impl.h"
#include "content/public/test/test_browser_thread.h"
@@ -64,6 +66,8 @@ void TestBrowserThreadBundle::Init() {
message_loop_.reset(new base::MessageLoopForUI());
}
+ scoped_task_scheduler_ = base::MakeUnique<base::test::ScopedTaskScheduler>();
gab 2016/12/09 20:04:17 I know MakeUnique is prefered today, but the ultim
fdoray 2016/12/12 18:18:50 Done.
+
ui_thread_.reset(
new TestBrowserThread(BrowserThread::UI, message_loop_.get()));
« base/test/scoped_task_scheduler.cc ('K') | « content/public/test/test_browser_thread_bundle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698