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

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

Issue 437683002: Wire sync shutdown reason from PSS all the way down to sync manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « sync/internal_api/sync_rollback_manager_unittest.cc ('k') | sync/sync.gyp » ('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/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 SyncStatus FakeSyncManager::GetDetailedStatus() const { 196 SyncStatus FakeSyncManager::GetDetailedStatus() const {
197 NOTIMPLEMENTED(); 197 NOTIMPLEMENTED();
198 return SyncStatus(); 198 return SyncStatus();
199 } 199 }
200 200
201 void FakeSyncManager::SaveChanges() { 201 void FakeSyncManager::SaveChanges() {
202 // Do nothing. 202 // Do nothing.
203 } 203 }
204 204
205 void FakeSyncManager::ShutdownOnSyncThread() { 205 void FakeSyncManager::ShutdownOnSyncThread(ShutdownReason reason) {
206 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); 206 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread());
207 test_user_share_.TearDown(); 207 test_user_share_.TearDown();
208 } 208 }
209 209
210 UserShare* FakeSyncManager::GetUserShare() { 210 UserShare* FakeSyncManager::GetUserShare() {
211 return test_user_share_.user_share(); 211 return test_user_share_.user_share();
212 } 212 }
213 213
214 syncer::SyncContextProxy* FakeSyncManager::GetSyncContextProxy() { 214 syncer::SyncContextProxy* FakeSyncManager::GetSyncContextProxy() {
215 return &null_sync_context_proxy_; 215 return &null_sync_context_proxy_;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { 268 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() {
269 return last_refresh_request_types_; 269 return last_refresh_request_types_;
270 } 270 }
271 271
272 void FakeSyncManager::SetInvalidatorEnabled(bool invalidator_enabled) { 272 void FakeSyncManager::SetInvalidatorEnabled(bool invalidator_enabled) {
273 // Do nothing. 273 // Do nothing.
274 } 274 }
275 275
276 } // namespace syncer 276 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_rollback_manager_unittest.cc ('k') | sync/sync.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698