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

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

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
« no previous file with comments | « components/history/core/test/BUILD.gn ('k') | components/history/core/test/history_backend_db_base_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/test/history_backend_db_base_test.h
diff --git a/components/history/core/test/history_backend_db_base_test.h b/components/history/core/test/history_backend_db_base_test.h
index 31798fd45c18c6095d96b4c64c7c4124d47b8539..1c5cfd5685d1caf191845e158c67193d473f608c 100644
--- a/components/history/core/test/history_backend_db_base_test.h
+++ b/components/history/core/test/history_backend_db_base_test.h
@@ -13,7 +13,7 @@
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/ref_counted.h"
-#include "base/message_loop/message_loop.h"
+#include "base/test/scoped_task_environment.h"
#include "components/history/core/test/history_unittest_base.h"
#include "sql/init_status.h"
@@ -59,7 +59,7 @@ class HistoryBackendDBBaseTest : public HistoryUnitTestBase {
base::ScopedTempDir temp_dir_;
- base::MessageLoopForUI message_loop_;
+ base::test::ScopedTaskEnvironment scoped_task_environment_;
// names of the database files
base::FilePath history_dir_;
« no previous file with comments | « components/history/core/test/BUILD.gn ('k') | components/history/core/test/history_backend_db_base_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698