| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/sync/abstract_profile_sync_service_test.h" | 7 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" |
| 8 #include "chrome/browser/sync/engine/syncapi.h" | 8 #include "chrome/browser/sync/engine/syncapi.h" |
| 9 #include "chrome/browser/sync/glue/data_type_controller.h" | 9 #include "chrome/browser/sync/glue/data_type_controller.h" |
| 10 #include "chrome/browser/sync/glue/sync_backend_host.h" | 10 #include "chrome/browser/sync/glue/sync_backend_host.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 ModelSafeRoutingInfo enabled_types; | 59 ModelSafeRoutingInfo enabled_types; |
| 60 GetModelSafeRoutingInfo(&enabled_types); | 60 GetModelSafeRoutingInfo(&enabled_types); |
| 61 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT]; | 61 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT]; |
| 62 for (ModelSafeRoutingInfo::const_iterator i = enabled_types.begin(); | 62 for (ModelSafeRoutingInfo::const_iterator i = enabled_types.begin(); |
| 63 i != enabled_types.end(); ++i) { | 63 i != enabled_types.end(); ++i) { |
| 64 sync_ended.set(i->first); | 64 sync_ended.set(i->first); |
| 65 } | 65 } |
| 66 core_->HandleSyncCycleCompletedOnFrontendLoop(new SyncSessionSnapshot( | 66 core_->HandleSyncCycleCompletedOnFrontendLoop(new SyncSessionSnapshot( |
| 67 SyncerStatus(), ErrorCounters(), 0, false, | 67 SyncerStatus(), ErrorCounters(), 0, false, |
| 68 sync_ended, download_progress_markers, false, false, 0, 0, 0, false, | 68 sync_ended, download_progress_markers, false, false, 0, 0, 0, false, |
| 69 SyncSourceInfo())); | 69 SyncSourceInfo(), 0)); |
| 70 } | 70 } |
| 71 | 71 |
| 72 sync_api::HttpPostProviderFactory* | 72 sync_api::HttpPostProviderFactory* |
| 73 SyncBackendHostForProfileSyncTest::MakeHttpBridgeFactory( | 73 SyncBackendHostForProfileSyncTest::MakeHttpBridgeFactory( |
| 74 net::URLRequestContextGetter* getter) { | 74 net::URLRequestContextGetter* getter) { |
| 75 return new browser_sync::TestHttpBridgeFactory; | 75 return new browser_sync::TestHttpBridgeFactory; |
| 76 } | 76 } |
| 77 | 77 |
| 78 void SyncBackendHostForProfileSyncTest::InitCore( | 78 void SyncBackendHostForProfileSyncTest::InitCore( |
| 79 const Core::DoInitializeOptions& options) { | 79 const Core::DoInitializeOptions& options) { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 void TestProfileSyncService::CreateBackend() { | 256 void TestProfileSyncService::CreateBackend() { |
| 257 backend_.reset(new browser_sync::SyncBackendHostForProfileSyncTest( | 257 backend_.reset(new browser_sync::SyncBackendHostForProfileSyncTest( |
| 258 profile(), | 258 profile(), |
| 259 set_initial_sync_ended_on_init_, | 259 set_initial_sync_ended_on_init_, |
| 260 synchronous_backend_initialization_)); | 260 synchronous_backend_initialization_)); |
| 261 } | 261 } |
| 262 | 262 |
| 263 std::string TestProfileSyncService::GetLsidForAuthBootstraping() { | 263 std::string TestProfileSyncService::GetLsidForAuthBootstraping() { |
| 264 return "foo"; | 264 return "foo"; |
| 265 } | 265 } |
| OLD | NEW |