| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <cstddef> | 9 #include <cstddef> |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <utility> | 12 #include <utility> |
| 13 | 13 |
| 14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
| 15 #include "base/files/scoped_temp_dir.h" | 15 #include "base/files/scoped_temp_dir.h" |
| 16 #include "base/location.h" | 16 #include "base/location.h" |
| 17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
| 18 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
| 19 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
| 20 #include "base/test/test_timeouts.h" | 20 #include "base/test/test_timeouts.h" |
| 21 #include "base/threading/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
| 22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
| 23 #include "components/invalidation/impl/invalidator_storage.h" | 23 #include "components/invalidation/impl/invalidator_storage.h" |
| 24 #include "components/invalidation/impl/profile_invalidation_provider.h" | 24 #include "components/invalidation/impl/profile_invalidation_provider.h" |
| 25 #include "components/invalidation/public/invalidator_state.h" | 25 #include "components/invalidation/public/invalidator_state.h" |
| 26 #include "components/invalidation/public/object_id_invalidation_map.h" | 26 #include "components/invalidation/public/object_id_invalidation_map.h" |
| 27 #include "components/sync/base/experiments.h" |
| 28 #include "components/sync/base/model_type.h" |
| 29 #include "components/sync/base/test_unrecoverable_error_handler.h" |
| 30 #include "components/sync/core/http_bridge_network_resources.h" |
| 31 #include "components/sync/core/network_resources.h" |
| 32 #include "components/sync/core/sync_manager_factory.h" |
| 33 #include "components/sync/core/test/fake_sync_manager.h" |
| 34 #include "components/sync/engine/model_safe_worker.h" |
| 35 #include "components/sync/engine/passive_model_worker.h" |
| 36 #include "components/sync/protocol/encryption.pb.h" |
| 37 #include "components/sync/protocol/sync_protocol_error.h" |
| 38 #include "components/sync/sessions/commit_counters.h" |
| 39 #include "components/sync/sessions/status_counters.h" |
| 40 #include "components/sync/sessions/update_counters.h" |
| 41 #include "components/sync/test/callback_counter.h" |
| 27 #include "components/sync_driver/device_info.h" | 42 #include "components/sync_driver/device_info.h" |
| 28 #include "components/sync_driver/fake_sync_client.h" | 43 #include "components/sync_driver/fake_sync_client.h" |
| 29 #include "components/sync_driver/sync_frontend.h" | 44 #include "components/sync_driver/sync_frontend.h" |
| 30 #include "components/sync_driver/sync_prefs.h" | 45 #include "components/sync_driver/sync_prefs.h" |
| 31 #include "components/syncable_prefs/pref_service_syncable.h" | 46 #include "components/syncable_prefs/pref_service_syncable.h" |
| 32 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 47 #include "components/syncable_prefs/testing_pref_service_syncable.h" |
| 33 #include "google/cacheinvalidation/include/types.h" | 48 #include "google/cacheinvalidation/include/types.h" |
| 34 #include "google_apis/gaia/gaia_constants.h" | 49 #include "google_apis/gaia/gaia_constants.h" |
| 35 #include "net/url_request/test_url_fetcher_factory.h" | 50 #include "net/url_request/test_url_fetcher_factory.h" |
| 36 #include "net/url_request/url_request_context_getter.h" | 51 #include "net/url_request/url_request_context_getter.h" |
| 37 #include "sync/internal_api/public/base/model_type.h" | |
| 38 #include "sync/internal_api/public/engine/model_safe_worker.h" | |
| 39 #include "sync/internal_api/public/engine/passive_model_worker.h" | |
| 40 #include "sync/internal_api/public/http_bridge_network_resources.h" | |
| 41 #include "sync/internal_api/public/network_resources.h" | |
| 42 #include "sync/internal_api/public/sessions/commit_counters.h" | |
| 43 #include "sync/internal_api/public/sessions/status_counters.h" | |
| 44 #include "sync/internal_api/public/sessions/update_counters.h" | |
| 45 #include "sync/internal_api/public/sync_manager_factory.h" | |
| 46 #include "sync/internal_api/public/test/fake_sync_manager.h" | |
| 47 #include "sync/internal_api/public/util/experiments.h" | |
| 48 #include "sync/protocol/encryption.pb.h" | |
| 49 #include "sync/protocol/sync_protocol_error.h" | |
| 50 #include "sync/test/callback_counter.h" | |
| 51 #include "sync/util/test_unrecoverable_error_handler.h" | |
| 52 #include "testing/gmock/include/gmock/gmock.h" | 52 #include "testing/gmock/include/gmock/gmock.h" |
| 53 #include "testing/gtest/include/gtest/gtest.h" | 53 #include "testing/gtest/include/gtest/gtest.h" |
| 54 #include "url/gurl.h" | 54 #include "url/gurl.h" |
| 55 | 55 |
| 56 using syncer::FakeSyncManager; | 56 using syncer::FakeSyncManager; |
| 57 using syncer::SyncManager; | 57 using syncer::SyncManager; |
| 58 using ::testing::InvokeWithoutArgs; | 58 using ::testing::InvokeWithoutArgs; |
| 59 using ::testing::StrictMock; | 59 using ::testing::StrictMock; |
| 60 using ::testing::_; | 60 using ::testing::_; |
| 61 | 61 |
| (...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 backend_->StopSyncingForShutdown(); | 853 backend_->StopSyncingForShutdown(); |
| 854 // Verify that call to DeactivateNonBlockingDataType doesn't assert. | 854 // Verify that call to DeactivateNonBlockingDataType doesn't assert. |
| 855 backend_->DeactivateNonBlockingDataType(syncer::AUTOFILL); | 855 backend_->DeactivateNonBlockingDataType(syncer::AUTOFILL); |
| 856 backend_->Shutdown(syncer::STOP_SYNC); | 856 backend_->Shutdown(syncer::STOP_SYNC); |
| 857 backend_.reset(); | 857 backend_.reset(); |
| 858 } | 858 } |
| 859 | 859 |
| 860 } // namespace | 860 } // namespace |
| 861 | 861 |
| 862 } // namespace browser_sync | 862 } // namespace browser_sync |
| OLD | NEW |