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

Unified Diff: chrome/browser/extensions/api/declarative/rules_registry_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/extensions/api/declarative/rules_registry_service_unittest.cc
diff --git a/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc b/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc
index f83a0232a124f962569e468141dc7144f64fd5fa..be6f96713897d0a412257d6205af9520bd520190 100644
--- a/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc
+++ b/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc
@@ -8,10 +8,10 @@
#include <utility>
#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/test_browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "extensions/browser/api/declarative/test_rules_registry.h"
#include "extensions/browser/api/declarative_webrequest/webrequest_constants.h"
#include "extensions/common/extension.h"
@@ -44,9 +44,7 @@ namespace extensions {
class RulesRegistryServiceTest : public testing::Test {
public:
- RulesRegistryServiceTest()
- : ui_(content::BrowserThread::UI, &message_loop_),
- io_(content::BrowserThread::IO, &message_loop_) {}
+ RulesRegistryServiceTest() = default;
~RulesRegistryServiceTest() override {}
@@ -56,9 +54,7 @@ class RulesRegistryServiceTest : public testing::Test {
}
protected:
- base::MessageLoop message_loop_;
- content::TestBrowserThread ui_;
- content::TestBrowserThread io_;
+ content::TestBrowserThreadBundle test_browser_thread_bundle_;
};
TEST_F(RulesRegistryServiceTest, TestConstructionAndMultiThreading) {

Powered by Google App Engine
This is Rietveld 408576698