Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: chrome/browser/sync/test_profile_sync_service.cc

Issue 10837214: Refactor ModelTypePayloadMap and ObjectIdPayloadMap to StateMaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.h ('k') | sync/engine/download_updates_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698