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 "chrome/browser/sync/test/integration/sync_test.h" | 5 #include "chrome/browser/sync/test/integration/sync_test.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "base/values.h" | 25 #include "base/values.h" |
26 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 26 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
27 #include "chrome/browser/chrome_notification_types.h" | 27 #include "chrome/browser/chrome_notification_types.h" |
28 #include "chrome/browser/history/history_service_factory.h" | 28 #include "chrome/browser/history/history_service_factory.h" |
29 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" | 29 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" |
30 #include "chrome/browser/lifetime/application_lifetime.h" | 30 #include "chrome/browser/lifetime/application_lifetime.h" |
31 #include "chrome/browser/profiles/profile_manager.h" | 31 #include "chrome/browser/profiles/profile_manager.h" |
32 #include "chrome/browser/search_engines/template_url_service_factory.h" | 32 #include "chrome/browser/search_engines/template_url_service_factory.h" |
33 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 33 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
34 #include "chrome/browser/signin/signin_manager_factory.h" | 34 #include "chrome/browser/signin/signin_manager_factory.h" |
35 #include "chrome/browser/sync/profile_sync_service.h" | |
36 #include "chrome/browser/sync/profile_sync_service_factory.h" | 35 #include "chrome/browser/sync/profile_sync_service_factory.h" |
37 #include "chrome/browser/sync/test/integration/fake_server_invalidation_service.
h" | 36 #include "chrome/browser/sync/test/integration/fake_server_invalidation_service.
h" |
38 #include "chrome/browser/sync/test/integration/p2p_invalidation_forwarder.h" | 37 #include "chrome/browser/sync/test/integration/p2p_invalidation_forwarder.h" |
39 #include "chrome/browser/sync/test/integration/p2p_sync_refresher.h" | 38 #include "chrome/browser/sync/test/integration/p2p_sync_refresher.h" |
40 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 39 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
41 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" | 40 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" |
42 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" | 41 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" |
43 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" | 42 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" |
44 #include "chrome/browser/ui/browser.h" | 43 #include "chrome/browser/ui/browser.h" |
45 #include "chrome/browser/ui/browser_finder.h" | 44 #include "chrome/browser/ui/browser_finder.h" |
46 #include "chrome/browser/ui/host_desktop.h" | 45 #include "chrome/browser/ui/host_desktop.h" |
47 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 46 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
48 #include "chrome/browser/ui/views/profiles/profile_chooser_view.h" | 47 #include "chrome/browser/ui/views/profiles/profile_chooser_view.h" |
49 #include "chrome/browser/ui/webui/signin/login_ui_service.h" | 48 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
50 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 49 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
51 #include "chrome/common/chrome_constants.h" | 50 #include "chrome/common/chrome_constants.h" |
52 #include "chrome/common/chrome_paths.h" | 51 #include "chrome/common/chrome_paths.h" |
53 #include "chrome/common/chrome_switches.h" | 52 #include "chrome/common/chrome_switches.h" |
54 #include "chrome/test/base/search_test_utils.h" | 53 #include "chrome/test/base/search_test_utils.h" |
55 #include "chrome/test/base/testing_browser_process.h" | 54 #include "chrome/test/base/testing_browser_process.h" |
56 #include "chrome/test/base/ui_test_utils.h" | 55 #include "chrome/test/base/ui_test_utils.h" |
57 #include "components/bookmarks/test/bookmark_test_helpers.h" | 56 #include "components/bookmarks/test/bookmark_test_helpers.h" |
| 57 #include "components/browser_sync/browser/profile_sync_service.h" |
58 #include "components/google/core/browser/google_url_tracker.h" | 58 #include "components/google/core/browser/google_url_tracker.h" |
59 #include "components/invalidation/impl/invalidation_switches.h" | 59 #include "components/invalidation/impl/invalidation_switches.h" |
60 #include "components/invalidation/impl/p2p_invalidation_service.h" | 60 #include "components/invalidation/impl/p2p_invalidation_service.h" |
61 #include "components/invalidation/impl/p2p_invalidator.h" | 61 #include "components/invalidation/impl/p2p_invalidator.h" |
62 #include "components/invalidation/impl/profile_invalidation_provider.h" | 62 #include "components/invalidation/impl/profile_invalidation_provider.h" |
63 #include "components/invalidation/public/invalidation_service.h" | 63 #include "components/invalidation/public/invalidation_service.h" |
64 #include "components/keyed_service/core/keyed_service.h" | 64 #include "components/keyed_service/core/keyed_service.h" |
65 #include "components/os_crypt/os_crypt.h" | 65 #include "components/os_crypt/os_crypt.h" |
66 #include "components/search_engines/template_url_service.h" | 66 #include "components/search_engines/template_url_service.h" |
67 #include "components/signin/core/browser/profile_identity_provider.h" | 67 #include "components/signin/core/browser/profile_identity_provider.h" |
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 | 1110 |
1111 void SyncTest::TriggerSyncForModelTypes(int index, | 1111 void SyncTest::TriggerSyncForModelTypes(int index, |
1112 syncer::ModelTypeSet model_types) { | 1112 syncer::ModelTypeSet model_types) { |
1113 GetSyncService(index)->TriggerRefresh(model_types); | 1113 GetSyncService(index)->TriggerRefresh(model_types); |
1114 } | 1114 } |
1115 | 1115 |
1116 void SyncTest::SetPreexistingPreferencesFileContents( | 1116 void SyncTest::SetPreexistingPreferencesFileContents( |
1117 const std::string& contents) { | 1117 const std::string& contents) { |
1118 preexisting_preferences_file_contents_ = contents; | 1118 preexisting_preferences_file_contents_ = contents; |
1119 } | 1119 } |
OLD | NEW |