OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/sync/driver/glue/sync_backend_host_impl.h" | 5 #include "components/sync/driver/glue/sync_backend_host_impl.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "components/sync/engine/cycle/commit_counters.h" | 30 #include "components/sync/engine/cycle/commit_counters.h" |
31 #include "components/sync/engine/cycle/status_counters.h" | 31 #include "components/sync/engine/cycle/status_counters.h" |
32 #include "components/sync/engine/cycle/update_counters.h" | 32 #include "components/sync/engine/cycle/update_counters.h" |
33 #include "components/sync/engine/fake_sync_manager.h" | 33 #include "components/sync/engine/fake_sync_manager.h" |
34 #include "components/sync/engine/model_safe_worker.h" | 34 #include "components/sync/engine/model_safe_worker.h" |
35 #include "components/sync/engine/net/http_bridge_network_resources.h" | 35 #include "components/sync/engine/net/http_bridge_network_resources.h" |
36 #include "components/sync/engine/net/network_resources.h" | 36 #include "components/sync/engine/net/network_resources.h" |
37 #include "components/sync/engine/passive_model_worker.h" | 37 #include "components/sync/engine/passive_model_worker.h" |
38 #include "components/sync/engine/sync_manager_factory.h" | 38 #include "components/sync/engine/sync_manager_factory.h" |
39 #include "components/sync/test/callback_counter.h" | 39 #include "components/sync/test/callback_counter.h" |
40 #include "components/syncable_prefs/pref_service_syncable.h" | 40 #include "components/sync_preferences/pref_service_syncable.h" |
41 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 41 #include "components/sync_preferences/testing_pref_service_syncable.h" |
42 #include "google/cacheinvalidation/include/types.h" | 42 #include "google/cacheinvalidation/include/types.h" |
43 #include "google_apis/gaia/gaia_constants.h" | 43 #include "google_apis/gaia/gaia_constants.h" |
44 #include "net/url_request/test_url_fetcher_factory.h" | 44 #include "net/url_request/test_url_fetcher_factory.h" |
45 #include "net/url_request/url_request_context_getter.h" | 45 #include "net/url_request/url_request_context_getter.h" |
46 #include "testing/gmock/include/gmock/gmock.h" | 46 #include "testing/gmock/include/gmock/gmock.h" |
47 #include "testing/gtest/include/gtest/gtest.h" | 47 #include "testing/gtest/include/gtest/gtest.h" |
48 #include "url/gurl.h" | 48 #include "url/gurl.h" |
49 | 49 |
50 using ::testing::InvokeWithoutArgs; | 50 using ::testing::InvokeWithoutArgs; |
51 using ::testing::StrictMock; | 51 using ::testing::StrictMock; |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 protected: | 261 protected: |
262 void DownloadReady(ModelTypeSet succeeded_types, ModelTypeSet failed_types) { | 262 void DownloadReady(ModelTypeSet succeeded_types, ModelTypeSet failed_types) { |
263 base::MessageLoop::current()->QuitWhenIdle(); | 263 base::MessageLoop::current()->QuitWhenIdle(); |
264 } | 264 } |
265 | 265 |
266 void OnDownloadRetry() { NOTIMPLEMENTED(); } | 266 void OnDownloadRetry() { NOTIMPLEMENTED(); } |
267 | 267 |
268 base::MessageLoop message_loop_; | 268 base::MessageLoop message_loop_; |
269 base::ScopedTempDir temp_dir_; | 269 base::ScopedTempDir temp_dir_; |
270 syncable_prefs::TestingPrefServiceSyncable pref_service_; | 270 sync_preferences::TestingPrefServiceSyncable pref_service_; |
271 StrictMock<MockSyncFrontend> mock_frontend_; | 271 StrictMock<MockSyncFrontend> mock_frontend_; |
272 SyncCredentials credentials_; | 272 SyncCredentials credentials_; |
273 BackendSyncClient sync_client_; | 273 BackendSyncClient sync_client_; |
274 TestUnrecoverableErrorHandler test_unrecoverable_error_handler_; | 274 TestUnrecoverableErrorHandler test_unrecoverable_error_handler_; |
275 std::unique_ptr<SyncPrefs> sync_prefs_; | 275 std::unique_ptr<SyncPrefs> sync_prefs_; |
276 std::unique_ptr<SyncBackendHostImpl> backend_; | 276 std::unique_ptr<SyncBackendHostImpl> backend_; |
277 std::unique_ptr<FakeSyncManagerFactory> fake_manager_factory_; | 277 std::unique_ptr<FakeSyncManagerFactory> fake_manager_factory_; |
278 FakeSyncManager* fake_manager_; | 278 FakeSyncManager* fake_manager_; |
279 ModelTypeSet enabled_types_; | 279 ModelTypeSet enabled_types_; |
280 std::unique_ptr<NetworkResources> network_resources_; | 280 std::unique_ptr<NetworkResources> network_resources_; |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 backend_->StopSyncingForShutdown(); | 830 backend_->StopSyncingForShutdown(); |
831 // Verify that call to DeactivateNonBlockingDataType doesn't assert. | 831 // Verify that call to DeactivateNonBlockingDataType doesn't assert. |
832 backend_->DeactivateNonBlockingDataType(AUTOFILL); | 832 backend_->DeactivateNonBlockingDataType(AUTOFILL); |
833 backend_->Shutdown(STOP_SYNC); | 833 backend_->Shutdown(STOP_SYNC); |
834 backend_.reset(); | 834 backend_.reset(); |
835 } | 835 } |
836 | 836 |
837 } // namespace | 837 } // namespace |
838 | 838 |
839 } // namespace syncer | 839 } // namespace syncer |
OLD | NEW |