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

Unified Diff: content/browser/site_instance_impl_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
Index: content/browser/site_instance_impl_unittest.cc
diff --git a/content/browser/site_instance_impl_unittest.cc b/content/browser/site_instance_impl_unittest.cc
index 2523cfc34799977f20dfeb6098aac3477236cd73..043085b8c586d358677e5f12f6244ba0e025f033 100644
--- a/content/browser/site_instance_impl_unittest.cc
+++ b/content/browser/site_instance_impl_unittest.cc
@@ -28,7 +28,7 @@
#include "content/public/common/url_utils.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/test_browser_context.h"
-#include "content/public/test/test_browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "content/public/test/test_utils.h"
#include "content/test/test_content_browser_client.h"
#include "content/test/test_content_client.h"
@@ -95,12 +95,7 @@ class SiteInstanceTestBrowserClient : public TestContentBrowserClient {
class SiteInstanceTest : public testing::Test {
public:
- SiteInstanceTest()
- : ui_thread_(BrowserThread::UI, &message_loop_),
- file_user_blocking_thread_(BrowserThread::FILE_USER_BLOCKING,
- &message_loop_),
- io_thread_(BrowserThread::IO, &message_loop_),
- old_browser_client_(nullptr) {}
+ SiteInstanceTest() : old_browser_client_(nullptr) {}
void SetUp() override {
old_browser_client_ = SetBrowserClientForTesting(&browser_client_);
@@ -143,10 +138,7 @@ class SiteInstanceTest : public testing::Test {
SiteInstanceTestBrowserClient* browser_client() { return &browser_client_; }
private:
- base::MessageLoopForUI message_loop_;
- TestBrowserThread ui_thread_;
- TestBrowserThread file_user_blocking_thread_;
- TestBrowserThread io_thread_;
+ TestBrowserThreadBundle test_browser_thread_bundle_;
SiteInstanceTestBrowserClient browser_client_;
ContentBrowserClient* old_browser_client_;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | ui/views/controls/webview/webview_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698