Index: ui/app_list/search/history_data_store_unittest.cc |
diff --git a/ui/app_list/search/history_data_store_unittest.cc b/ui/app_list/search/history_data_store_unittest.cc |
index 9b582d68bec46b07b6655102ac23c875cea3b2fe..817e9429b3b290b8b403ca5b381b06d33d11ab15 100644 |
--- a/ui/app_list/search/history_data_store_unittest.cc |
+++ b/ui/app_list/search/history_data_store_unittest.cc |
@@ -2,18 +2,18 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "ui/app_list/search/history_data_store.h" |
gab
2017/04/28 01:33:54
\n
(should fix script)
fdoray
2017/04/28 13:37:39
Done. That's git cl format, not my script. I could
|
#include "base/bind.h" |
#include "base/files/file_util.h" |
#include "base/files/scoped_temp_dir.h" |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
-#include "base/message_loop/message_loop.h" |
#include "base/run_loop.h" |
+#include "base/test/scoped_task_environment.h" |
#include "base/test/sequenced_worker_pool_owner.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "ui/app_list/search/dictionary_data_store.h" |
#include "ui/app_list/search/history_data.h" |
-#include "ui/app_list/search/history_data_store.h" |
namespace app_list { |
namespace test { |
@@ -41,7 +41,10 @@ std::string GetDataContent(const HistoryData::Data& data) { |
class HistoryDataStoreTest : public testing::Test { |
public: |
- HistoryDataStoreTest() : worker_pool_owner_(2, "AppLanucherTest") {} |
+ HistoryDataStoreTest() |
+ : scoped_task_environment_( |
+ base::test::ScopedTaskEnvironment::MainThreadType::UI), |
+ worker_pool_owner_(2, "AppLanucherTest") {} |
// testing::Test overrides: |
void SetUp() override { |
@@ -89,7 +92,7 @@ class HistoryDataStoreTest : public testing::Test { |
run_loop_->Quit(); |
} |
- base::MessageLoopForUI message_loop_; |
+ base::test::ScopedTaskEnvironment scoped_task_environment_; |
base::ScopedTempDir temp_dir_; |
base::FilePath data_file_; |
std::unique_ptr<base::RunLoop> run_loop_; |