| 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/macros.h" | 10 #include "base/macros.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 const ModelSafeRoutingInfo& new_routing_info, | 88 const ModelSafeRoutingInfo& new_routing_info, |
| 89 const base::Closure& ready_task, | 89 const base::Closure& ready_task, |
| 90 const base::Closure& retry_task) override; | 90 const base::Closure& retry_task) override; |
| 91 void OnIncomingInvalidation( | 91 void OnIncomingInvalidation( |
| 92 syncer::ModelType type, | 92 syncer::ModelType type, |
| 93 std::unique_ptr<InvalidationInterface> interface) override; | 93 std::unique_ptr<InvalidationInterface> interface) override; |
| 94 void SetInvalidatorEnabled(bool invalidator_enabled) override; | 94 void SetInvalidatorEnabled(bool invalidator_enabled) override; |
| 95 void AddObserver(Observer* observer) override; | 95 void AddObserver(Observer* observer) override; |
| 96 void RemoveObserver(Observer* observer) override; | 96 void RemoveObserver(Observer* observer) override; |
| 97 SyncStatus GetDetailedStatus() const override; | 97 SyncStatus GetDetailedStatus() const override; |
| 98 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) override; |
| 98 void SaveChanges() override; | 99 void SaveChanges() override; |
| 99 void ShutdownOnSyncThread(ShutdownReason reason) override; | 100 void ShutdownOnSyncThread(ShutdownReason reason) override; |
| 100 UserShare* GetUserShare() override; | 101 UserShare* GetUserShare() override; |
| 101 std::unique_ptr<syncer_v2::ModelTypeConnector> GetModelTypeConnectorProxy() | 102 std::unique_ptr<syncer_v2::ModelTypeConnector> GetModelTypeConnectorProxy() |
| 102 override; | 103 override; |
| 103 const std::string cache_guid() override; | 104 const std::string cache_guid() override; |
| 104 bool ReceivedExperiment(Experiments* experiments) override; | 105 bool ReceivedExperiment(Experiments* experiments) override; |
| 105 bool HasUnsyncedItems() override; | 106 bool HasUnsyncedItems() override; |
| 106 SyncEncryptionHandler* GetEncryptionHandler() override; | 107 SyncEncryptionHandler* GetEncryptionHandler() override; |
| 107 ScopedVector<syncer::ProtocolEvent> GetBufferedProtocolEvents() override; | 108 ScopedVector<syncer::ProtocolEvent> GetBufferedProtocolEvents() override; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 151 |
| 151 // Number of invalidations received since startup. | 152 // Number of invalidations received since startup. |
| 152 int num_invalidations_received_; | 153 int num_invalidations_received_; |
| 153 | 154 |
| 154 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 155 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
| 155 }; | 156 }; |
| 156 | 157 |
| 157 } // namespace syncer | 158 } // namespace syncer |
| 158 | 159 |
| 159 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 160 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
| OLD | NEW |