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

Unified Diff: components/feedback/feedback_uploader_unittest.cc

Issue 2799253002: Switch from TestBrowserThread to TestBrowserThreadBundle in components. (Closed)
Patch Set: 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: components/feedback/feedback_uploader_unittest.cc
diff --git a/components/feedback/feedback_uploader_unittest.cc b/components/feedback/feedback_uploader_unittest.cc
index 17a6ec5b9357f09bc8fa6c4be6438d718de90d84..76201f3b32f347528edc4db2310ae8a1aa55c78c 100644
--- a/components/feedback/feedback_uploader_unittest.cc
+++ b/components/feedback/feedback_uploader_unittest.cc
@@ -11,7 +11,6 @@
#include "base/bind.h"
#include "base/memory/ptr_util.h"
-#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/stl_util.h"
#include "build/build_config.h"
@@ -20,7 +19,7 @@
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "components/user_prefs/user_prefs.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 "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -47,8 +46,7 @@ namespace feedback {
class FeedbackUploaderTest : public testing::Test {
protected:
FeedbackUploaderTest()
- : ui_thread_(content::BrowserThread::UI, &message_loop_),
- context_(new content::TestBrowserContext()),
+ : context_(new content::TestBrowserContext()),
prefs_(new sync_preferences::TestingPrefServiceSyncable()),
dispatched_reports_count_(0),
expected_reports_(0) {
@@ -105,9 +103,8 @@ class FeedbackUploaderTest : public testing::Test {
run_loop_->Run();
}
- base::MessageLoop message_loop_;
+ content::TestBrowserThreadBundle test_browser_thread_bundle_;
std::unique_ptr<base::RunLoop> run_loop_;
- content::TestBrowserThread ui_thread_;
std::unique_ptr<content::TestBrowserContext> context_;
std::unique_ptr<PrefService> prefs_;
« no previous file with comments | « components/feedback/feedback_data_unittest.cc ('k') | components/web_cache/browser/web_cache_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698