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/abstract_profile_sync_service_test.h" | 8 #include "chrome/browser/sync/abstract_profile_sync_service_test.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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 void SyncBackendHostForProfileSyncTest::EmitOnNotificationsEnabled() { | 149 void SyncBackendHostForProfileSyncTest::EmitOnNotificationsEnabled() { |
150 frontend()->OnNotificationsEnabled(); | 150 frontend()->OnNotificationsEnabled(); |
151 } | 151 } |
152 | 152 |
153 void SyncBackendHostForProfileSyncTest::EmitOnNotificationsDisabled( | 153 void SyncBackendHostForProfileSyncTest::EmitOnNotificationsDisabled( |
154 syncer::NotificationsDisabledReason reason) { | 154 syncer::NotificationsDisabledReason reason) { |
155 frontend()->OnNotificationsDisabled(reason); | 155 frontend()->OnNotificationsDisabled(reason); |
156 } | 156 } |
157 | 157 |
158 void SyncBackendHostForProfileSyncTest::EmitOnIncomingNotification( | 158 void SyncBackendHostForProfileSyncTest::EmitOnIncomingNotification( |
159 const syncer::ObjectIdPayloadMap& id_payloads, | 159 const syncer::ObjectIdStateMap& id_state_map, |
160 const syncer::IncomingNotificationSource source) { | 160 const syncer::IncomingNotificationSource source) { |
161 frontend()->OnIncomingNotification(id_payloads, source); | 161 frontend()->OnIncomingNotification(id_state_map, source); |
162 } | 162 } |
163 | 163 |
164 } // namespace browser_sync | 164 } // namespace browser_sync |
165 | 165 |
166 syncer::TestIdFactory* TestProfileSyncService::id_factory() { | 166 syncer::TestIdFactory* TestProfileSyncService::id_factory() { |
167 return &id_factory_; | 167 return &id_factory_; |
168 } | 168 } |
169 | 169 |
170 browser_sync::SyncBackendHostForProfileSyncTest* | 170 browser_sync::SyncBackendHostForProfileSyncTest* |
171 TestProfileSyncService::GetBackendForTest() { | 171 TestProfileSyncService::GetBackendForTest() { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 profile(), | 238 profile(), |
239 sync_prefs_.AsWeakPtr(), | 239 sync_prefs_.AsWeakPtr(), |
240 invalidator_storage_.AsWeakPtr(), | 240 invalidator_storage_.AsWeakPtr(), |
241 id_factory_, | 241 id_factory_, |
242 callback_, | 242 callback_, |
243 set_initial_sync_ended_on_init_, | 243 set_initial_sync_ended_on_init_, |
244 synchronous_backend_initialization_, | 244 synchronous_backend_initialization_, |
245 fail_initial_download_, | 245 fail_initial_download_, |
246 storage_option_)); | 246 storage_option_)); |
247 } | 247 } |
OLD | NEW |