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

Side by Side Diff: sync/api/fake_syncable_service.cc

Issue 1002263005: [Sync] Introduce AttachmentStoreForSync class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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
« no previous file with comments | « sync/api/fake_syncable_service.h ('k') | sync/api/syncable_service.h » ('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/api/fake_syncable_service.h" 5 #include "sync/api/fake_syncable_service.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "sync/api/sync_error_factory.h" 8 #include "sync/api/sync_error_factory.h"
9 9
10 namespace syncer { 10 namespace syncer {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 SyncDataList FakeSyncableService::GetAllSyncData(ModelType type) const { 63 SyncDataList FakeSyncableService::GetAllSyncData(ModelType type) const {
64 return SyncDataList(); 64 return SyncDataList();
65 } 65 }
66 66
67 SyncError FakeSyncableService::ProcessSyncChanges( 67 SyncError FakeSyncableService::ProcessSyncChanges(
68 const tracked_objects::Location& from_here, 68 const tracked_objects::Location& from_here,
69 const SyncChangeList& change_list) { 69 const SyncChangeList& change_list) {
70 return process_sync_changes_error_; 70 return process_sync_changes_error_;
71 } 71 }
72 72
73 scoped_ptr<AttachmentStore> FakeSyncableService::GetAttachmentStoreForSync() { 73 scoped_ptr<AttachmentStoreForSync>
74 FakeSyncableService::GetAttachmentStoreForSync() {
74 return attachment_store_ ? attachment_store_->CreateAttachmentStoreForSync() 75 return attachment_store_ ? attachment_store_->CreateAttachmentStoreForSync()
75 : scoped_ptr<AttachmentStore>(); 76 : scoped_ptr<AttachmentStoreForSync>();
76 } 77 }
77 78
78 void FakeSyncableService::SetAttachmentService( 79 void FakeSyncableService::SetAttachmentService(
79 scoped_ptr<AttachmentService> attachment_service) { 80 scoped_ptr<AttachmentService> attachment_service) {
80 attachment_service_ = attachment_service.Pass(); 81 attachment_service_ = attachment_service.Pass();
81 } 82 }
82 83
83 } // namespace syncer 84 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/api/fake_syncable_service.h ('k') | sync/api/syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698