| 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_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 virtual bool PurgePartiallySyncedTypes() OVERRIDE; | 93 virtual bool PurgePartiallySyncedTypes() OVERRIDE; |
| 94 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; | 94 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; |
| 95 virtual void UpdateEnabledTypes(ModelTypeSet types) OVERRIDE; | 95 virtual void UpdateEnabledTypes(ModelTypeSet types) OVERRIDE; |
| 96 virtual void RegisterInvalidationHandler( | 96 virtual void RegisterInvalidationHandler( |
| 97 InvalidationHandler* handler) OVERRIDE; | 97 InvalidationHandler* handler) OVERRIDE; |
| 98 virtual void UpdateRegisteredInvalidationIds( | 98 virtual void UpdateRegisteredInvalidationIds( |
| 99 InvalidationHandler* handler, | 99 InvalidationHandler* handler, |
| 100 const ObjectIdSet& ids) OVERRIDE; | 100 const ObjectIdSet& ids) OVERRIDE; |
| 101 virtual void UnregisterInvalidationHandler( | 101 virtual void UnregisterInvalidationHandler( |
| 102 InvalidationHandler* handler) OVERRIDE; | 102 InvalidationHandler* handler) OVERRIDE; |
| 103 virtual void AcknowledgeInvalidation( |
| 104 const invalidation::ObjectId& id, |
| 105 const syncer::AckHandle& ack_handle) OVERRIDE; |
| 103 virtual void StartSyncingNormally( | 106 virtual void StartSyncingNormally( |
| 104 const ModelSafeRoutingInfo& routing_info) OVERRIDE; | 107 const ModelSafeRoutingInfo& routing_info) OVERRIDE; |
| 105 virtual void ConfigureSyncer( | 108 virtual void ConfigureSyncer( |
| 106 ConfigureReason reason, | 109 ConfigureReason reason, |
| 107 ModelTypeSet types_to_config, | 110 ModelTypeSet types_to_config, |
| 108 const ModelSafeRoutingInfo& new_routing_info, | 111 const ModelSafeRoutingInfo& new_routing_info, |
| 109 const base::Closure& ready_task, | 112 const base::Closure& ready_task, |
| 110 const base::Closure& retry_task) OVERRIDE; | 113 const base::Closure& retry_task) OVERRIDE; |
| 111 virtual void AddObserver(Observer* observer) OVERRIDE; | 114 virtual void AddObserver(Observer* observer) OVERRIDE; |
| 112 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 115 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 InvalidatorRegistrar registrar_; | 151 InvalidatorRegistrar registrar_; |
| 149 | 152 |
| 150 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; | 153 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; |
| 151 | 154 |
| 152 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 155 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
| 153 }; | 156 }; |
| 154 | 157 |
| 155 } // namespace syncer | 158 } // namespace syncer |
| 156 | 159 |
| 157 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 160 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| OLD | NEW |