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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 // SyncManager implementation. | 77 // SyncManager implementation. |
78 // Note: we treat whatever message loop this is called from as the sync | 78 // Note: we treat whatever message loop this is called from as the sync |
79 // loop for purposes of callbacks. | 79 // loop for purposes of callbacks. |
80 void Init(InitArgs* args) override; | 80 void Init(InitArgs* args) override; |
81 ModelTypeSet InitialSyncEndedTypes() override; | 81 ModelTypeSet InitialSyncEndedTypes() override; |
82 ModelTypeSet GetTypesWithEmptyProgressMarkerToken( | 82 ModelTypeSet GetTypesWithEmptyProgressMarkerToken( |
83 ModelTypeSet types) override; | 83 ModelTypeSet types) override; |
84 bool PurgePartiallySyncedTypes() override; | 84 bool PurgePartiallySyncedTypes() override; |
85 void UpdateCredentials(const SyncCredentials& credentials) override; | 85 void UpdateCredentials(const SyncCredentials& credentials) override; |
86 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info, | 86 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info) override; |
87 base::Time last_poll_time) override; | |
88 void ConfigureSyncer(ConfigureReason reason, | 87 void ConfigureSyncer(ConfigureReason reason, |
89 ModelTypeSet to_download, | 88 ModelTypeSet to_download, |
90 ModelTypeSet to_purge, | 89 ModelTypeSet to_purge, |
91 ModelTypeSet to_journal, | 90 ModelTypeSet to_journal, |
92 ModelTypeSet to_unapply, | 91 ModelTypeSet to_unapply, |
93 const ModelSafeRoutingInfo& new_routing_info, | 92 const ModelSafeRoutingInfo& new_routing_info, |
94 const base::Closure& ready_task, | 93 const base::Closure& ready_task, |
95 const base::Closure& retry_task) override; | 94 const base::Closure& retry_task) override; |
96 void AddObserver(Observer* observer) override; | 95 void AddObserver(Observer* observer) override; |
97 void RemoveObserver(Observer* observer) override; | 96 void RemoveObserver(Observer* observer) override; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 TestUserShare test_user_share_; | 146 TestUserShare test_user_share_; |
148 | 147 |
149 NullSyncContextProxy null_sync_context_proxy_; | 148 NullSyncContextProxy null_sync_context_proxy_; |
150 | 149 |
151 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 150 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
152 }; | 151 }; |
153 | 152 |
154 } // namespace syncer | 153 } // namespace syncer |
155 | 154 |
156 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 155 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
OLD | NEW |