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

Unified Diff: ui/views/controls/webview/webview_unittest.cc

Issue 2677153002: Use TaskScheduler instead of blocking pool in render_widget_host_impl.cc. (Closed)
Patch Set: ScopedTaskSchedulers Created 3 years, 10 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
« no previous file with comments | « content/browser/site_instance_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/webview/webview_unittest.cc
diff --git a/ui/views/controls/webview/webview_unittest.cc b/ui/views/controls/webview/webview_unittest.cc
index 7c85a7255b8a7f85657a1b67307d517fc89a7d58..5436b2923203d07ae61a8e8cecffb19575b449d5 100644
--- a/ui/views/controls/webview/webview_unittest.cc
+++ b/ui/views/controls/webview/webview_unittest.cc
@@ -10,6 +10,8 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
+#include "base/message_loop/message_loop.h"
+#include "base/test/scoped_task_scheduler.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/test/test_browser_context.h"
@@ -132,6 +134,7 @@ class WebViewUnitTest : public views::test::WidgetTest {
public:
WebViewUnitTest()
: ui_thread_(content::BrowserThread::UI, base::MessageLoop::current()),
+ scoped_task_scheduler_(base::MessageLoop::current()),
file_blocking_thread_(content::BrowserThread::FILE_USER_BLOCKING,
base::MessageLoop::current()),
io_thread_(content::BrowserThread::IO, base::MessageLoop::current()),
@@ -183,6 +186,7 @@ class WebViewUnitTest : public views::test::WidgetTest {
private:
content::TestBrowserThread ui_thread_;
+ base::test::ScopedTaskScheduler scoped_task_scheduler_;
content::TestBrowserThread file_blocking_thread_;
content::TestBrowserThread io_thread_;
std::unique_ptr<content::TestBrowserContext> browser_context_;
« no previous file with comments | « content/browser/site_instance_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698