| 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 | 7 #pragma once |
| 8 | 8 |
| 9 #include "sync/api/syncable_service.h" | 9 #include "sync/api/syncable_service.h" |
| 10 | 10 |
| 11 namespace csync { |
| 12 |
| 11 class SyncErrorFactory; | 13 class SyncErrorFactory; |
| 12 | 14 |
| 13 // A fake SyncableService that can return arbitrary values and maintains the | 15 // A fake SyncableService that can return arbitrary values and maintains the |
| 14 // syncing status. | 16 // syncing status. |
| 15 class FakeSyncableService : public SyncableService { | 17 class FakeSyncableService : public SyncableService { |
| 16 public: | 18 public: |
| 17 FakeSyncableService(); | 19 FakeSyncableService(); |
| 18 virtual ~FakeSyncableService(); | 20 virtual ~FakeSyncableService(); |
| 19 | 21 |
| 20 // Setters for SyncableService implementation results. | 22 // Setters for SyncableService implementation results. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 38 const SyncChangeList& change_list) OVERRIDE; | 40 const SyncChangeList& change_list) OVERRIDE; |
| 39 | 41 |
| 40 private: | 42 private: |
| 41 scoped_ptr<SyncChangeProcessor> sync_processor_; | 43 scoped_ptr<SyncChangeProcessor> sync_processor_; |
| 42 SyncError merge_data_and_start_syncing_error_; | 44 SyncError merge_data_and_start_syncing_error_; |
| 43 SyncError process_sync_changes_error_; | 45 SyncError process_sync_changes_error_; |
| 44 bool syncing_; | 46 bool syncing_; |
| 45 syncable::ModelType type_; | 47 syncable::ModelType type_; |
| 46 }; | 48 }; |
| 47 | 49 |
| 50 } // namespace csync |
| 51 |
| 48 #endif // SYNC_API_FAKE_SYNCABLE_SERVICE_H_ | 52 #endif // SYNC_API_FAKE_SYNCABLE_SERVICE_H_ |
| OLD | NEW |