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/browser_sync/browser/profile_sync_service.h" | 5 #include "components/browser_sync/browser/profile_sync_service.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "base/threading/thread_task_runner_handle.h" | 22 #include "base/threading/thread_task_runner_handle.h" |
23 #include "base/values.h" | 23 #include "base/values.h" |
24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
25 #include "components/browser_sync/browser/profile_sync_test_util.h" | 25 #include "components/browser_sync/browser/profile_sync_test_util.h" |
26 #include "components/browser_sync/common/browser_sync_switches.h" | 26 #include "components/browser_sync/common/browser_sync_switches.h" |
27 #include "components/invalidation/impl/profile_invalidation_provider.h" | 27 #include "components/invalidation/impl/profile_invalidation_provider.h" |
28 #include "components/invalidation/public/invalidation_service.h" | 28 #include "components/invalidation/public/invalidation_service.h" |
29 #include "components/signin/core/browser/account_tracker_service.h" | 29 #include "components/signin/core/browser/account_tracker_service.h" |
30 #include "components/signin/core/browser/fake_signin_manager.h" | 30 #include "components/signin/core/browser/fake_signin_manager.h" |
31 #include "components/strings/grit/components_strings.h" | 31 #include "components/strings/grit/components_strings.h" |
32 #include "components/sync_driver/data_type_manager.h" | 32 #include "components/sync/driver/data_type_manager.h" |
33 #include "components/sync_driver/data_type_manager_observer.h" | 33 #include "components/sync/driver/data_type_manager_observer.h" |
34 #include "components/sync_driver/fake_data_type_controller.h" | 34 #include "components/sync/driver/fake_data_type_controller.h" |
35 #include "components/sync_driver/glue/sync_backend_host_mock.h" | 35 #include "components/sync/driver/glue/sync_backend_host_mock.h" |
36 #include "components/sync_driver/pref_names.h" | 36 #include "components/sync/driver/pref_names.h" |
37 #include "components/sync_driver/sync_api_component_factory_mock.h" | 37 #include "components/sync/driver/sync_api_component_factory_mock.h" |
38 #include "components/sync_driver/sync_driver_switches.h" | 38 #include "components/sync/driver/sync_driver_switches.h" |
39 #include "components/sync_driver/sync_prefs.h" | 39 #include "components/sync/driver/sync_prefs.h" |
40 #include "components/sync_driver/sync_service_observer.h" | 40 #include "components/sync/driver/sync_service_observer.h" |
41 #include "components/sync_driver/sync_util.h" | 41 #include "components/sync/driver/sync_util.h" |
42 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 42 #include "components/syncable_prefs/testing_pref_service_syncable.h" |
43 #include "components/version_info/version_info.h" | 43 #include "components/version_info/version_info.h" |
44 #include "components/version_info/version_info_values.h" | 44 #include "components/version_info/version_info_values.h" |
45 #include "google_apis/gaia/gaia_constants.h" | 45 #include "google_apis/gaia/gaia_constants.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 "ui/base/l10n/l10n_util.h" | 48 #include "ui/base/l10n/l10n_util.h" |
49 | 49 |
50 using testing::Return; | 50 using testing::Return; |
51 | 51 |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 // dereferenced in OnSyncCycleCompleted. The fix is to use find() to check if | 965 // dereferenced in OnSyncCycleCompleted. The fix is to use find() to check if |
966 // entry for sessions exists in map. | 966 // entry for sessions exists in map. |
967 TEST_F(ProfileSyncServiceTest, ValidPointersInDTCMap) { | 967 TEST_F(ProfileSyncServiceTest, ValidPointersInDTCMap) { |
968 CreateService(ProfileSyncService::AUTO_START); | 968 CreateService(ProfileSyncService::AUTO_START); |
969 service()->OnSessionRestoreComplete(); | 969 service()->OnSessionRestoreComplete(); |
970 service()->OnSyncCycleCompleted(); | 970 service()->OnSyncCycleCompleted(); |
971 } | 971 } |
972 | 972 |
973 } // namespace | 973 } // namespace |
974 } // namespace browser_sync | 974 } // namespace browser_sync |
OLD | NEW |