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

Unified Diff: components/history/core/test/history_backend_db_base_test.cc

Issue 2846723005: Use ScopedTaskEnvironment instead of MessageLoopForUI in components tests. (Closed)
Patch Set: fix-test-errors 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/history/core/test/history_backend_db_base_test.cc
diff --git a/components/history/core/test/history_backend_db_base_test.cc b/components/history/core/test/history_backend_db_base_test.cc
index 8a04b25c6a12161416ddcefb3e1c558812ec9768..f959858471e1a5575d112b17e3a67cf080704ff7 100644
--- a/components/history/core/test/history_backend_db_base_test.cc
+++ b/components/history/core/test/history_backend_db_base_test.cc
@@ -62,9 +62,10 @@ class BackendDelegate : public HistoryBackend::Delegate {
};
HistoryBackendDBBaseTest::HistoryBackendDBBaseTest()
- : db_(nullptr),
- last_profile_error_ (sql::INIT_OK) {
-}
+ : scoped_task_environment_(
+ base::test::ScopedTaskEnvironment::MainThreadType::UI),
+ db_(nullptr),
+ last_profile_error_(sql::INIT_OK) {}
HistoryBackendDBBaseTest::~HistoryBackendDBBaseTest() {
}

Powered by Google App Engine
This is Rietveld 408576698