OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 syncable::ModelTypeBitSet sync_ended; | 139 syncable::ModelTypeBitSet sync_ended; |
140 ModelSafeRoutingInfo enabled_types; | 140 ModelSafeRoutingInfo enabled_types; |
141 GetModelSafeRoutingInfo(&enabled_types); | 141 GetModelSafeRoutingInfo(&enabled_types); |
142 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT]; | 142 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT]; |
143 for (ModelSafeRoutingInfo::const_iterator i = enabled_types.begin(); | 143 for (ModelSafeRoutingInfo::const_iterator i = enabled_types.begin(); |
144 i != enabled_types.end(); ++i) { | 144 i != enabled_types.end(); ++i) { |
145 sync_ended.set(i->first); | 145 sync_ended.set(i->first); |
146 } | 146 } |
147 core_->HandleSyncCycleCompletedOnFrontendLoop(new SyncSessionSnapshot( | 147 core_->HandleSyncCycleCompletedOnFrontendLoop(new SyncSessionSnapshot( |
148 SyncerStatus(), ErrorCounters(), 0, false, | 148 SyncerStatus(), ErrorCounters(), 0, false, |
149 sync_ended, download_progress_markers, false, false, 0, 0, false)); | 149 sync_ended, download_progress_markers, false, false, 0, 0, false, |
| 150 SyncSourceInfo())); |
150 } | 151 } |
151 | 152 |
152 virtual sync_api::HttpPostProviderFactory* MakeHttpBridgeFactory( | 153 virtual sync_api::HttpPostProviderFactory* MakeHttpBridgeFactory( |
153 URLRequestContextGetter* getter) { | 154 URLRequestContextGetter* getter) { |
154 return new browser_sync::TestHttpBridgeFactory; | 155 return new browser_sync::TestHttpBridgeFactory; |
155 } | 156 } |
156 | 157 |
157 virtual void InitCore(const Core::DoInitializeOptions& options) { | 158 virtual void InitCore(const Core::DoInitializeOptions& options) { |
158 std::wstring user = L"testuser"; | 159 std::wstring user = L"testuser"; |
159 core_loop()->PostTask(FROM_HERE, | 160 core_loop()->PostTask(FROM_HERE, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 bool synchronous_sync_configuration_; | 267 bool synchronous_sync_configuration_; |
267 bool set_expect_resume_expectations_; | 268 bool set_expect_resume_expectations_; |
268 int num_expected_resumes_; | 269 int num_expected_resumes_; |
269 int num_expected_pauses_; | 270 int num_expected_pauses_; |
270 | 271 |
271 scoped_ptr<Task> initial_condition_setup_task_; | 272 scoped_ptr<Task> initial_condition_setup_task_; |
272 bool set_initial_sync_ended_on_init_; | 273 bool set_initial_sync_ended_on_init_; |
273 }; | 274 }; |
274 | 275 |
275 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 276 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |