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_profile_sync_service.h" | 5 #include "chrome/browser/sync/test_profile_sync_service.h" |
6 | 6 |
7 #include "chrome/browser/signin/signin_manager.h" | 7 #include "chrome/browser/signin/signin_manager.h" |
8 #include "chrome/browser/sync/glue/data_type_controller.h" | 8 #include "chrome/browser/sync/glue/data_type_controller.h" |
9 #include "chrome/browser/sync/glue/sync_backend_host.h" | 9 #include "chrome/browser/sync/glue/sync_backend_host.h" |
10 #include "chrome/browser/sync/profile_sync_components_factory.h" | 10 #include "chrome/browser/sync/profile_sync_components_factory.h" |
11 #include "chrome/browser/sync/test/test_http_bridge_factory.h" | 11 #include "chrome/browser/sync/test/test_http_bridge_factory.h" |
12 #include "chrome/common/chrome_notification_types.h" | 12 #include "chrome/common/chrome_notification_types.h" |
13 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 13 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
14 #include "sync/internal_api/public/test/test_user_share.h" | 14 #include "sync/internal_api/public/test/test_user_share.h" |
15 #include "sync/internal_api/public/user_share.h" | 15 #include "sync/internal_api/public/user_share.h" |
16 #include "sync/js/js_reply_handler.h" | 16 #include "sync/js/js_reply_handler.h" |
17 #include "sync/protocol/encryption.pb.h" | 17 #include "sync/protocol/encryption.pb.h" |
18 #include "sync/syncable/directory.h" | 18 #include "sync/syncable/directory.h" |
19 | 19 |
20 using syncer::InternalComponentsFactory; | 20 using syncer::InternalComponentsFactory; |
21 using syncer::ModelSafeRoutingInfo; | 21 using syncer::ModelSafeRoutingInfo; |
22 using syncer::TestInternalComponentsFactory; | 22 using syncer::TestInternalComponentsFactory; |
23 using syncer::sessions::ModelNeutralState; | 23 using syncer::sessions::ModelNeutralState; |
24 using syncer::sessions::SyncSessionSnapshot; | 24 using syncer::sessions::SyncSessionSnapshot; |
25 using syncer::sessions::SyncSourceInfo; | 25 using syncer::sessions::SyncSourceInfo; |
26 using syncer::UserShare; | 26 using syncer::UserShare; |
27 using syncer::syncable::Directory; | 27 using syncer::syncable::Directory; |
28 using syncer::NIGORI; | 28 using syncer::NIGORI; |
| 29 using syncer::DEVICE_INFO; |
29 | 30 |
30 namespace browser_sync { | 31 namespace browser_sync { |
31 | 32 |
32 SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest( | 33 SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest( |
33 Profile* profile, | 34 Profile* profile, |
34 const base::WeakPtr<SyncPrefs>& sync_prefs, | 35 const base::WeakPtr<SyncPrefs>& sync_prefs, |
35 const base::WeakPtr<InvalidatorStorage>& invalidator_storage, | 36 const base::WeakPtr<InvalidatorStorage>& invalidator_storage, |
36 syncer::TestIdFactory& id_factory, | 37 syncer::TestIdFactory& id_factory, |
37 base::Closure& callback, | 38 base::Closure& callback, |
38 bool set_initial_sync_ended_on_init, | 39 bool set_initial_sync_ended_on_init, |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 profile(), | 235 profile(), |
235 sync_prefs_.AsWeakPtr(), | 236 sync_prefs_.AsWeakPtr(), |
236 invalidator_storage_.AsWeakPtr(), | 237 invalidator_storage_.AsWeakPtr(), |
237 id_factory_, | 238 id_factory_, |
238 callback_, | 239 callback_, |
239 set_initial_sync_ended_on_init_, | 240 set_initial_sync_ended_on_init_, |
240 synchronous_backend_initialization_, | 241 synchronous_backend_initialization_, |
241 fail_initial_download_, | 242 fail_initial_download_, |
242 storage_option_)); | 243 storage_option_)); |
243 } | 244 } |
OLD | NEW |