Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: sync/internal_api/public/test/fake_sync_manager.h

Issue 1144443004: Revert of [Sync] Refactoring polling to be reliable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sync/internal_api/public/sync_manager.h ('k') | sync/internal_api/sync_manager_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sync_manager.h ('k') | sync/internal_api/sync_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698