OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/search_engines/search_engine_data_type_controller.h" | 5 #include "components/search_engines/search_engine_data_type_controller.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "base/tracked_objects.h" | 16 #include "base/tracked_objects.h" |
17 #include "components/search_engines/template_url_service.h" | 17 #include "components/search_engines/template_url_service.h" |
| 18 #include "components/sync/api/fake_syncable_service.h" |
18 #include "components/sync_driver/data_type_controller_mock.h" | 19 #include "components/sync_driver/data_type_controller_mock.h" |
19 #include "components/sync_driver/fake_generic_change_processor.h" | 20 #include "components/sync_driver/fake_generic_change_processor.h" |
20 #include "components/sync_driver/fake_sync_client.h" | 21 #include "components/sync_driver/fake_sync_client.h" |
21 #include "components/sync_driver/sync_api_component_factory_mock.h" | 22 #include "components/sync_driver/sync_api_component_factory_mock.h" |
22 #include "sync/api/fake_syncable_service.h" | |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 | 24 |
25 using testing::_; | 25 using testing::_; |
26 using testing::DoAll; | 26 using testing::DoAll; |
27 using testing::InvokeWithoutArgs; | 27 using testing::InvokeWithoutArgs; |
28 using testing::Return; | 28 using testing::Return; |
29 using testing::SetArgumentPointee; | 29 using testing::SetArgumentPointee; |
30 | 30 |
31 namespace browser_sync { | 31 namespace browser_sync { |
32 namespace { | 32 namespace { |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 EXPECT_FALSE(syncable_service_.syncing()); | 182 EXPECT_FALSE(syncable_service_.syncing()); |
183 search_engine_dtc_->Stop(); | 183 search_engine_dtc_->Stop(); |
184 EXPECT_EQ(NULL, search_engine_dtc_->GetSubscriptionForTesting()); | 184 EXPECT_EQ(NULL, search_engine_dtc_->GetSubscriptionForTesting()); |
185 EXPECT_EQ(sync_driver::DataTypeController::NOT_RUNNING, | 185 EXPECT_EQ(sync_driver::DataTypeController::NOT_RUNNING, |
186 search_engine_dtc_->state()); | 186 search_engine_dtc_->state()); |
187 EXPECT_FALSE(syncable_service_.syncing()); | 187 EXPECT_FALSE(syncable_service_.syncing()); |
188 } | 188 } |
189 | 189 |
190 } // namespace | 190 } // namespace |
191 } // namespace browser_sync | 191 } // namespace browser_sync |
OLD | NEW |