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 COMPONENTS_SYNC_API_FAKE_SYNCABLE_SERVICE_H_ | 5 #ifndef COMPONENTS_SYNC_API_FAKE_SYNCABLE_SERVICE_H_ |
6 #define COMPONENTS_SYNC_API_FAKE_SYNCABLE_SERVICE_H_ | 6 #define COMPONENTS_SYNC_API_FAKE_SYNCABLE_SERVICE_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "components/sync/api/syncable_service.h" | 10 #include "components/sync/api/syncable_service.h" |
9 | 11 |
10 namespace syncer { | 12 namespace syncer { |
11 | 13 |
12 class SyncErrorFactory; | 14 class SyncErrorFactory; |
13 | 15 |
14 // A fake SyncableService that can return arbitrary values and maintains the | 16 // A fake SyncableService that can return arbitrary values and maintains the |
15 // syncing status. | 17 // syncing status. |
16 class FakeSyncableService : public SyncableService { | 18 class FakeSyncableService : public SyncableService { |
17 public: | 19 public: |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 SyncError process_sync_changes_error_; | 55 SyncError process_sync_changes_error_; |
54 bool syncing_; | 56 bool syncing_; |
55 ModelType type_; | 57 ModelType type_; |
56 std::unique_ptr<AttachmentStore> attachment_store_; | 58 std::unique_ptr<AttachmentStore> attachment_store_; |
57 std::unique_ptr<AttachmentService> attachment_service_; | 59 std::unique_ptr<AttachmentService> attachment_service_; |
58 }; | 60 }; |
59 | 61 |
60 } // namespace syncer | 62 } // namespace syncer |
61 | 63 |
62 #endif // COMPONENTS_SYNC_API_FAKE_SYNCABLE_SERVICE_H_ | 64 #endif // COMPONENTS_SYNC_API_FAKE_SYNCABLE_SERVICE_H_ |
OLD | NEW |