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

Side by Side Diff: sync/internal_api/test/fake_sync_manager.cc

Issue 10878015: [Sync] Move keystore key handling to SyncEncryptionHandlerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 3 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
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/protocol/client_debug_info.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "sync/internal_api/public/test/fake_sync_manager.h" 5 #include "sync/internal_api/public/test/fake_sync_manager.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 void FakeSyncManager::RemoveObserver(Observer* observer) { 223 void FakeSyncManager::RemoveObserver(Observer* observer) {
224 observers_.RemoveObserver(observer); 224 observers_.RemoveObserver(observer);
225 } 225 }
226 226
227 SyncStatus FakeSyncManager::GetDetailedStatus() const { 227 SyncStatus FakeSyncManager::GetDetailedStatus() const {
228 NOTIMPLEMENTED(); 228 NOTIMPLEMENTED();
229 return SyncStatus(); 229 return SyncStatus();
230 } 230 }
231 231
232 bool FakeSyncManager::GetKeystoreKeyBootstrapToken(std::string* token) {
233 return false;
234 }
235
236 void FakeSyncManager::SaveChanges() { 232 void FakeSyncManager::SaveChanges() {
237 // Do nothing. 233 // Do nothing.
238 } 234 }
239 235
240 void FakeSyncManager::StopSyncingForShutdown(const base::Closure& callback) { 236 void FakeSyncManager::StopSyncingForShutdown(const base::Closure& callback) {
241 if (!sync_task_runner_->PostTask(FROM_HERE, callback)) { 237 if (!sync_task_runner_->PostTask(FROM_HERE, callback)) {
242 NOTREACHED(); 238 NOTREACHED();
243 } 239 }
244 } 240 }
245 241
(...skipping 30 matching lines...) Expand all
276 registrar_.EmitOnNotificationsEnabled(); 272 registrar_.EmitOnNotificationsEnabled();
277 } 273 }
278 274
279 void FakeSyncManager::DisableNotificationsOnSyncThread( 275 void FakeSyncManager::DisableNotificationsOnSyncThread(
280 NotificationsDisabledReason reason) { 276 NotificationsDisabledReason reason) {
281 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); 277 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread());
282 registrar_.EmitOnNotificationsDisabled(reason); 278 registrar_.EmitOnNotificationsDisabled(reason);
283 } 279 }
284 280
285 } // namespace syncer 281 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/protocol/client_debug_info.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698