Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Side by Side Diff: components/browser_sync/profile_sync_service_unittest.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/profile_sync_service.h" 5 #include "components/browser_sync/profile_sync_service.h"
6 6
7 #include <memory>
8 #include <utility> 7 #include <utility>
9 #include <vector>
10 8
11 #include "base/callback.h" 9 #include "base/callback.h"
12 #include "base/command_line.h" 10 #include "base/command_line.h"
13 #include "base/compiler_specific.h"
14 #include "base/feature_list.h" 11 #include "base/feature_list.h"
15 #include "base/location.h"
16 #include "base/run_loop.h" 12 #include "base/run_loop.h"
17 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
18 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
19 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
20 #include "base/test/scoped_feature_list.h" 16 #include "base/test/scoped_feature_list.h"
21 #include "base/test/sequenced_worker_pool_owner.h" 17 #include "base/test/sequenced_worker_pool_owner.h"
22 #include "base/threading/thread_task_runner_handle.h" 18 #include "base/threading/thread_task_runner_handle.h"
23 #include "base/values.h" 19 #include "base/values.h"
24 #include "build/build_config.h"
25 #include "components/browser_sync/browser_sync_switches.h" 20 #include "components/browser_sync/browser_sync_switches.h"
26 #include "components/browser_sync/profile_sync_test_util.h" 21 #include "components/browser_sync/profile_sync_test_util.h"
27 #include "components/invalidation/impl/profile_invalidation_provider.h" 22 #include "components/invalidation/impl/profile_invalidation_provider.h"
28 #include "components/invalidation/public/invalidation_service.h" 23 #include "components/invalidation/public/invalidation_service.h"
29 #include "components/signin/core/browser/account_tracker_service.h" 24 #include "components/signin/core/browser/account_tracker_service.h"
30 #include "components/signin/core/browser/fake_signin_manager.h" 25 #include "components/signin/core/browser/fake_signin_manager.h"
31 #include "components/strings/grit/components_strings.h" 26 #include "components/strings/grit/components_strings.h"
32 #include "components/sync/driver/data_type_manager.h"
33 #include "components/sync/driver/data_type_manager_observer.h"
34 #include "components/sync/driver/fake_data_type_controller.h" 27 #include "components/sync/driver/fake_data_type_controller.h"
35 #include "components/sync/driver/glue/sync_backend_host_mock.h" 28 #include "components/sync/driver/glue/sync_backend_host_mock.h"
36 #include "components/sync/driver/pref_names.h" 29 #include "components/sync/driver/pref_names.h"
37 #include "components/sync/driver/sync_api_component_factory_mock.h" 30 #include "components/sync/driver/sync_api_component_factory_mock.h"
38 #include "components/sync/driver/sync_driver_switches.h" 31 #include "components/sync/driver/sync_driver_switches.h"
39 #include "components/sync/driver/sync_prefs.h"
40 #include "components/sync/driver/sync_service_observer.h" 32 #include "components/sync/driver/sync_service_observer.h"
41 #include "components/sync/driver/sync_util.h" 33 #include "components/sync/driver/sync_util.h"
42 #include "components/syncable_prefs/testing_pref_service_syncable.h" 34 #include "components/syncable_prefs/testing_pref_service_syncable.h"
43 #include "components/version_info/version_info.h"
44 #include "components/version_info/version_info_values.h" 35 #include "components/version_info/version_info_values.h"
45 #include "google_apis/gaia/gaia_constants.h" 36 #include "google_apis/gaia/gaia_constants.h"
46 #include "testing/gmock/include/gmock/gmock.h" 37 #include "testing/gmock/include/gmock/gmock.h"
47 #include "testing/gtest/include/gtest/gtest.h" 38 #include "testing/gtest/include/gtest/gtest.h"
48 #include "ui/base/l10n/l10n_util.h" 39 #include "ui/base/l10n/l10n_util.h"
49 40
50 using syncer::SyncBackendHostMock; 41 using syncer::SyncBackendHostMock;
51 using testing::Return; 42 using testing::Return;
52 43
53 namespace browser_sync { 44 namespace browser_sync {
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 // dereferenced in OnSyncCycleCompleted. The fix is to use find() to check if 946 // dereferenced in OnSyncCycleCompleted. The fix is to use find() to check if
956 // entry for sessions exists in map. 947 // entry for sessions exists in map.
957 TEST_F(ProfileSyncServiceTest, ValidPointersInDTCMap) { 948 TEST_F(ProfileSyncServiceTest, ValidPointersInDTCMap) {
958 CreateService(ProfileSyncService::AUTO_START); 949 CreateService(ProfileSyncService::AUTO_START);
959 service()->OnSessionRestoreComplete(); 950 service()->OnSessionRestoreComplete();
960 service()->OnSyncCycleCompleted(); 951 service()->OnSyncCycleCompleted();
961 } 952 }
962 953
963 } // namespace 954 } // namespace
964 } // namespace browser_sync 955 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/browser_sync/profile_sync_service_startup_unittest.cc ('k') | components/sync/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698