| 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/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/signin/signin_manager.h" | 8 #include "chrome/browser/signin/signin_manager.h" |
| 9 #include "chrome/browser/signin/signin_manager_factory.h" | 9 #include "chrome/browser/signin/signin_manager_factory.h" |
| 10 #include "chrome/browser/sync/glue/data_type_controller.h" | 10 #include "chrome/browser/sync/glue/data_type_controller.h" |
| 11 #include "chrome/browser/sync/glue/sync_backend_host.h" | 11 #include "chrome/browser/sync/glue/sync_backend_host.h" |
| 12 #include "chrome/browser/sync/profile_sync_components_factory.h" | 12 #include "chrome/browser/sync/profile_sync_components_factory.h" |
| 13 #include "chrome/browser/sync/test/test_http_bridge_factory.h" | 13 #include "chrome/browser/sync/test/test_http_bridge_factory.h" |
| 14 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 14 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
| 15 #include "sync/internal_api/public/test/test_user_share.h" | 15 #include "sync/internal_api/public/test/test_user_share.h" |
| 16 #include "sync/internal_api/public/user_share.h" | 16 #include "sync/internal_api/public/user_share.h" |
| 17 #include "sync/js/js_reply_handler.h" | 17 #include "sync/js/js_reply_handler.h" |
| 18 #include "sync/protocol/encryption.pb.h" | 18 #include "sync/protocol/encryption.pb.h" |
| 19 #include "sync/syncable/directory.h" | 19 #include "sync/syncable/directory.h" |
| 20 | 20 |
| 21 using syncer::InternalComponentsFactory; | 21 using syncer::InternalComponentsFactory; |
| 22 using syncer::ModelSafeRoutingInfo; | 22 using syncer::ModelSafeRoutingInfo; |
| 23 using syncer::TestInternalComponentsFactory; | 23 using syncer::TestInternalComponentsFactory; |
| 24 using syncer::sessions::ModelNeutralState; | 24 using syncer::sessions::ModelNeutralState; |
| 25 using syncer::sessions::SyncSessionSnapshot; | 25 using syncer::sessions::SyncSessionSnapshot; |
| 26 using syncer::sessions::SyncSourceInfo; | |
| 27 using syncer::UserShare; | 26 using syncer::UserShare; |
| 28 using syncer::syncable::Directory; | 27 using syncer::syncable::Directory; |
| 29 using syncer::DEVICE_INFO; | 28 using syncer::DEVICE_INFO; |
| 30 using syncer::EXPERIMENTS; | 29 using syncer::EXPERIMENTS; |
| 31 using syncer::NIGORI; | 30 using syncer::NIGORI; |
| 32 using syncer::PRIORITY_PREFERENCES; | 31 using syncer::PRIORITY_PREFERENCES; |
| 33 | 32 |
| 34 namespace browser_sync { | 33 namespace browser_sync { |
| 35 | 34 |
| 36 SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest( | 35 SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest( |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 } | 323 } |
| 325 | 324 |
| 326 BrowserContextKeyedService* FakeOAuth2TokenService::BuildTokenService( | 325 BrowserContextKeyedService* FakeOAuth2TokenService::BuildTokenService( |
| 327 content::BrowserContext* context) { | 326 content::BrowserContext* context) { |
| 328 Profile* profile = static_cast<Profile*>(context); | 327 Profile* profile = static_cast<Profile*>(context); |
| 329 | 328 |
| 330 FakeOAuth2TokenService* service = new FakeOAuth2TokenService(); | 329 FakeOAuth2TokenService* service = new FakeOAuth2TokenService(); |
| 331 service->Initialize(profile); | 330 service->Initialize(profile); |
| 332 return service; | 331 return service; |
| 333 } | 332 } |
| OLD | NEW |