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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #include "components/invalidation/impl/invalidation_switches.h" | 56 #include "components/invalidation/impl/invalidation_switches.h" |
57 #include "components/invalidation/impl/p2p_invalidation_service.h" | 57 #include "components/invalidation/impl/p2p_invalidation_service.h" |
58 #include "components/invalidation/impl/p2p_invalidator.h" | 58 #include "components/invalidation/impl/p2p_invalidator.h" |
59 #include "components/invalidation/impl/profile_invalidation_provider.h" | 59 #include "components/invalidation/impl/profile_invalidation_provider.h" |
60 #include "components/invalidation/public/invalidation_service.h" | 60 #include "components/invalidation/public/invalidation_service.h" |
61 #include "components/keyed_service/core/keyed_service.h" | 61 #include "components/keyed_service/core/keyed_service.h" |
62 #include "components/os_crypt/os_crypt.h" | 62 #include "components/os_crypt/os_crypt.h" |
63 #include "components/search_engines/template_url_service.h" | 63 #include "components/search_engines/template_url_service.h" |
64 #include "components/signin/core/browser/profile_identity_provider.h" | 64 #include "components/signin/core/browser/profile_identity_provider.h" |
65 #include "components/signin/core/browser/signin_manager.h" | 65 #include "components/signin/core/browser/signin_manager.h" |
66 #include "components/sync_driver/invalidation_helper.h" | |
67 #include "components/sync_driver/sync_driver_switches.h" | 66 #include "components/sync_driver/sync_driver_switches.h" |
68 #include "content/public/browser/notification_service.h" | 67 #include "content/public/browser/notification_service.h" |
69 #include "content/public/browser/web_contents.h" | 68 #include "content/public/browser/web_contents.h" |
70 #include "content/public/test/test_browser_thread.h" | 69 #include "content/public/test/test_browser_thread.h" |
71 #include "google_apis/gaia/gaia_urls.h" | 70 #include "google_apis/gaia/gaia_urls.h" |
72 #include "net/base/escape.h" | 71 #include "net/base/escape.h" |
73 #include "net/base/load_flags.h" | 72 #include "net/base/load_flags.h" |
74 #include "net/base/network_change_notifier.h" | 73 #include "net/base/network_change_notifier.h" |
75 #include "net/base/port_util.h" | 74 #include "net/base/port_util.h" |
76 #include "net/cookies/cookie_monster.h" | 75 #include "net/cookies/cookie_monster.h" |
77 #include "net/test/spawned_test_server/spawned_test_server.h" | 76 #include "net/test/spawned_test_server/spawned_test_server.h" |
78 #include "net/url_request/test_url_fetcher_factory.h" | 77 #include "net/url_request/test_url_fetcher_factory.h" |
79 #include "net/url_request/url_fetcher.h" | 78 #include "net/url_request/url_fetcher.h" |
80 #include "net/url_request/url_fetcher_delegate.h" | 79 #include "net/url_request/url_fetcher_delegate.h" |
81 #include "net/url_request/url_request_context.h" | 80 #include "net/url_request/url_request_context.h" |
82 #include "net/url_request/url_request_context_getter.h" | 81 #include "net/url_request/url_request_context_getter.h" |
83 #include "sync/engine/sync_scheduler_impl.h" | 82 #include "sync/engine/sync_scheduler_impl.h" |
84 #include "sync/protocol/sync.pb.h" | 83 #include "sync/protocol/sync.pb.h" |
85 #include "sync/test/fake_server/fake_server.h" | 84 #include "sync/test/fake_server/fake_server.h" |
86 #include "sync/test/fake_server/fake_server_network_resources.h" | 85 #include "sync/test/fake_server/fake_server_network_resources.h" |
| 86 #include "sync/util/invalidation_helper.h" |
87 #include "url/gurl.h" | 87 #include "url/gurl.h" |
88 | 88 |
89 #if defined(OS_CHROMEOS) | 89 #if defined(OS_CHROMEOS) |
90 #include "chromeos/chromeos_switches.h" | 90 #include "chromeos/chromeos_switches.h" |
91 #endif | 91 #endif |
92 | 92 |
93 using content::BrowserThread; | 93 using content::BrowserThread; |
94 | 94 |
95 namespace switches { | 95 namespace switches { |
96 const char kPasswordFileForTest[] = "password-file-for-test"; | 96 const char kPasswordFileForTest[] = "password-file-for-test"; |
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1062 content::NotificationService::current()->Notify( | 1062 content::NotificationService::current()->Notify( |
1063 chrome::NOTIFICATION_SYNC_REFRESH_LOCAL, | 1063 chrome::NOTIFICATION_SYNC_REFRESH_LOCAL, |
1064 content::Source<Profile>(GetProfile(index)), | 1064 content::Source<Profile>(GetProfile(index)), |
1065 content::Details<const syncer::ModelTypeSet>(&model_types)); | 1065 content::Details<const syncer::ModelTypeSet>(&model_types)); |
1066 } | 1066 } |
1067 | 1067 |
1068 void SyncTest::SetPreexistingPreferencesFileContents( | 1068 void SyncTest::SetPreexistingPreferencesFileContents( |
1069 const std::string& contents) { | 1069 const std::string& contents) { |
1070 preexisting_preferences_file_contents_ = contents; | 1070 preexisting_preferences_file_contents_ = contents; |
1071 } | 1071 } |
OLD | NEW |