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

Unified Diff: chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc

Issue 2799883003: Switch from TestBrowserThread to TestBrowserThreadBundle in chrome. (Closed)
Patch Set: fix-string Created 3 years, 8 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: chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc
diff --git a/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc b/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc
index a2246942bdc5c8b84528bbb37ad6043908bd4a2e..1075eacdc1f45fb4eb0f6a31cff33261b28f072b 100644
--- a/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc
+++ b/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc
@@ -12,7 +12,6 @@
#include "base/command_line.h"
#include "base/location.h"
#include "base/memory/ptr_util.h"
-#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
@@ -29,7 +28,7 @@
#include "components/prefs/testing_pref_service.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "content/public/browser/browser_thread.h"
-#include "content/public/test/test_browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -206,9 +205,7 @@ class TestCloudPrintProxyService : public CloudPrintProxyService {
class CloudPrintProxyPolicyTest : public ::testing::Test {
public:
- CloudPrintProxyPolicyTest()
- : ui_thread_(content::BrowserThread::UI, &message_loop_) {
- }
+ CloudPrintProxyPolicyTest() = default;
bool LaunchBrowser(const base::CommandLine& command_line, Profile* profile) {
StartupBrowserCreator browser_creator;
@@ -218,8 +215,7 @@ class CloudPrintProxyPolicyTest : public ::testing::Test {
}
protected:
- base::MessageLoopForUI message_loop_;
- content::TestBrowserThread ui_thread_;
+ content::TestBrowserThreadBundle test_browser_thread_bundle_;
TestingProfile profile_;
};
« no previous file with comments | « chrome/browser/prerender/prerender_unittest.cc ('k') | chrome/browser/printing/cloud_print/gcd_api_flow_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698