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 "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 csync { |
| 11 |
10 FakeSyncableService::FakeSyncableService() | 12 FakeSyncableService::FakeSyncableService() |
11 : syncing_(false), | 13 : syncing_(false), |
12 type_(syncable::UNSPECIFIED) {} | 14 type_(syncable::UNSPECIFIED) {} |
13 | 15 |
14 FakeSyncableService::~FakeSyncableService() {} | 16 FakeSyncableService::~FakeSyncableService() {} |
15 | 17 |
16 void FakeSyncableService::set_merge_data_and_start_syncing_error( | 18 void FakeSyncableService::set_merge_data_and_start_syncing_error( |
17 const SyncError& error) { | 19 const SyncError& error) { |
18 merge_data_and_start_syncing_error_ = error; | 20 merge_data_and_start_syncing_error_ = error; |
19 } | 21 } |
(...skipping 29 matching lines...) Expand all Loading... |
49 SyncDataList FakeSyncableService::GetAllSyncData( | 51 SyncDataList FakeSyncableService::GetAllSyncData( |
50 syncable::ModelType type) const { | 52 syncable::ModelType type) const { |
51 return SyncDataList(); | 53 return SyncDataList(); |
52 } | 54 } |
53 | 55 |
54 SyncError FakeSyncableService::ProcessSyncChanges( | 56 SyncError FakeSyncableService::ProcessSyncChanges( |
55 const tracked_objects::Location& from_here, | 57 const tracked_objects::Location& from_here, |
56 const SyncChangeList& change_list) { | 58 const SyncChangeList& change_list) { |
57 return process_sync_changes_error_; | 59 return process_sync_changes_error_; |
58 } | 60 } |
| 61 |
| 62 } // namespace csync |
OLD | NEW |