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 #ifndef SYNC_API_FAKE_SYNCABLE_SERVICE_H_ | 5 #ifndef SYNC_API_FAKE_SYNCABLE_SERVICE_H_ |
6 #define SYNC_API_FAKE_SYNCABLE_SERVICE_H_ | 6 #define SYNC_API_FAKE_SYNCABLE_SERVICE_H_ |
7 #pragma once | |
8 | 7 |
9 #include "sync/api/syncable_service.h" | 8 #include "sync/api/syncable_service.h" |
10 | 9 |
11 namespace syncer { | 10 namespace syncer { |
12 | 11 |
13 class SyncErrorFactory; | 12 class SyncErrorFactory; |
14 | 13 |
15 // A fake SyncableService that can return arbitrary values and maintains the | 14 // A fake SyncableService that can return arbitrary values and maintains the |
16 // syncing status. | 15 // syncing status. |
17 class FakeSyncableService : public SyncableService { | 16 class FakeSyncableService : public SyncableService { |
(...skipping 25 matching lines...) Expand all Loading... |
43 scoped_ptr<SyncChangeProcessor> sync_processor_; | 42 scoped_ptr<SyncChangeProcessor> sync_processor_; |
44 SyncError merge_data_and_start_syncing_error_; | 43 SyncError merge_data_and_start_syncing_error_; |
45 SyncError process_sync_changes_error_; | 44 SyncError process_sync_changes_error_; |
46 bool syncing_; | 45 bool syncing_; |
47 syncer::ModelType type_; | 46 syncer::ModelType type_; |
48 }; | 47 }; |
49 | 48 |
50 } // namespace syncer | 49 } // namespace syncer |
51 | 50 |
52 #endif // SYNC_API_FAKE_SYNCABLE_SERVICE_H_ | 51 #endif // SYNC_API_FAKE_SYNCABLE_SERVICE_H_ |
OLD | NEW |