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

Unified Diff: components/feedback/feedback_uploader_chrome_unittest.cc

Issue 1864583006: Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 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
« no previous file with comments | « components/feedback/feedback_uploader_chrome.cc ('k') | components/precache/content/precache_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/feedback/feedback_uploader_chrome_unittest.cc
diff --git a/components/feedback/feedback_uploader_chrome_unittest.cc b/components/feedback/feedback_uploader_chrome_unittest.cc
index 1b6084b74580e9a76b1d61ad34dd066d3a112a97..7db46872e2f4b7e86b93399e6fc082815703ed24 100644
--- a/components/feedback/feedback_uploader_chrome_unittest.cc
+++ b/components/feedback/feedback_uploader_chrome_unittest.cc
@@ -7,11 +7,11 @@
#include <string>
#include "base/macros.h"
-#include "base/message_loop/message_loop.h"
#include "base/metrics/field_trial.h"
#include "components/variations/variations_associated_data.h"
#include "components/variations/variations_http_header_provider.h"
#include "content/public/test/test_browser_context.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "net/url_request/test_url_fetcher_factory.h"
#include "net/url_request/url_fetcher_delegate.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -20,7 +20,8 @@ namespace feedback {
class FeedbackUploaderChromeTest : public ::testing::Test {
protected:
- FeedbackUploaderChromeTest() {}
+ FeedbackUploaderChromeTest()
+ : browser_thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {}
~FeedbackUploaderChromeTest() override {
// Clean up registered ids.
@@ -39,7 +40,7 @@ class FeedbackUploaderChromeTest : public ::testing::Test {
}
private:
- base::MessageLoopForUI message_loop_;
+ content::TestBrowserThreadBundle browser_thread_bundle_;
DISALLOW_COPY_AND_ASSIGN(FeedbackUploaderChromeTest);
};
« no previous file with comments | « components/feedback/feedback_uploader_chrome.cc ('k') | components/precache/content/precache_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698