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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 void SyncBackendHostForProfileSyncTest::EmitOnNotificationsEnabled() { | 144 void SyncBackendHostForProfileSyncTest::EmitOnNotificationsEnabled() { |
145 frontend()->OnNotificationsEnabled(); | 145 frontend()->OnNotificationsEnabled(); |
146 } | 146 } |
147 | 147 |
148 void SyncBackendHostForProfileSyncTest::EmitOnNotificationsDisabled( | 148 void SyncBackendHostForProfileSyncTest::EmitOnNotificationsDisabled( |
149 syncer::NotificationsDisabledReason reason) { | 149 syncer::NotificationsDisabledReason reason) { |
150 frontend()->OnNotificationsDisabled(reason); | 150 frontend()->OnNotificationsDisabled(reason); |
151 } | 151 } |
152 | 152 |
153 void SyncBackendHostForProfileSyncTest::EmitOnIncomingNotification( | 153 void SyncBackendHostForProfileSyncTest::EmitOnIncomingNotification( |
154 const syncer::ObjectIdPayloadMap& id_payloads, | 154 const syncer::ObjectIdStateMap& id_state_map, |
155 const syncer::IncomingNotificationSource source) { | 155 const syncer::IncomingNotificationSource source) { |
156 frontend()->OnIncomingNotification(id_payloads, source); | 156 frontend()->OnIncomingNotification(id_state_map, source); |
157 } | 157 } |
158 | 158 |
159 } // namespace browser_sync | 159 } // namespace browser_sync |
160 | 160 |
161 syncer::TestIdFactory* TestProfileSyncService::id_factory() { | 161 syncer::TestIdFactory* TestProfileSyncService::id_factory() { |
162 return &id_factory_; | 162 return &id_factory_; |
163 } | 163 } |
164 | 164 |
165 browser_sync::SyncBackendHostForProfileSyncTest* | 165 browser_sync::SyncBackendHostForProfileSyncTest* |
166 TestProfileSyncService::GetBackendForTest() { | 166 TestProfileSyncService::GetBackendForTest() { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 profile(), | 237 profile(), |
238 sync_prefs_.AsWeakPtr(), | 238 sync_prefs_.AsWeakPtr(), |
239 invalidator_storage_.AsWeakPtr(), | 239 invalidator_storage_.AsWeakPtr(), |
240 id_factory_, | 240 id_factory_, |
241 callback_, | 241 callback_, |
242 set_initial_sync_ended_on_init_, | 242 set_initial_sync_ended_on_init_, |
243 synchronous_backend_initialization_, | 243 synchronous_backend_initialization_, |
244 fail_initial_download_, | 244 fail_initial_download_, |
245 storage_option_)); | 245 storage_option_)); |
246 } | 246 } |
OLD | NEW |