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

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

Issue 17552014: [Sync] Have SBH tell SyncManager which types to purge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dchecks Created 7 years, 6 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 | Annotate | Revision Log
« 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 virtual void UnregisterInvalidationHandler( 108 virtual void UnregisterInvalidationHandler(
109 InvalidationHandler* handler) OVERRIDE; 109 InvalidationHandler* handler) OVERRIDE;
110 virtual void AcknowledgeInvalidation( 110 virtual void AcknowledgeInvalidation(
111 const invalidation::ObjectId& id, 111 const invalidation::ObjectId& id,
112 const syncer::AckHandle& ack_handle) OVERRIDE; 112 const syncer::AckHandle& ack_handle) OVERRIDE;
113 virtual void StartSyncingNormally( 113 virtual void StartSyncingNormally(
114 const ModelSafeRoutingInfo& routing_info) OVERRIDE; 114 const ModelSafeRoutingInfo& routing_info) OVERRIDE;
115 virtual void ConfigureSyncer( 115 virtual void ConfigureSyncer(
116 ConfigureReason reason, 116 ConfigureReason reason,
117 ModelTypeSet to_download, 117 ModelTypeSet to_download,
118 ModelTypeSet to_purge,
118 ModelTypeSet to_journal, 119 ModelTypeSet to_journal,
119 ModelTypeSet to_unapply, 120 ModelTypeSet to_unapply,
120 ModelTypeSet to_ignore,
121 const ModelSafeRoutingInfo& new_routing_info, 121 const ModelSafeRoutingInfo& new_routing_info,
122 const base::Closure& ready_task, 122 const base::Closure& ready_task,
123 const base::Closure& retry_task) OVERRIDE; 123 const base::Closure& retry_task) OVERRIDE;
124 virtual void AddObserver(Observer* observer) OVERRIDE; 124 virtual void AddObserver(Observer* observer) OVERRIDE;
125 virtual void RemoveObserver(Observer* observer) OVERRIDE; 125 virtual void RemoveObserver(Observer* observer) OVERRIDE;
126 virtual SyncStatus GetDetailedStatus() const OVERRIDE; 126 virtual SyncStatus GetDetailedStatus() const OVERRIDE;
127 virtual void SaveChanges() OVERRIDE; 127 virtual void SaveChanges() OVERRIDE;
128 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE; 128 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE;
129 virtual void ShutdownOnSyncThread() OVERRIDE; 129 virtual void ShutdownOnSyncThread() OVERRIDE;
130 virtual UserShare* GetUserShare() OVERRIDE; 130 virtual UserShare* GetUserShare() OVERRIDE;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; 170 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_;
171 171
172 TestUserShare test_user_share_; 172 TestUserShare test_user_share_;
173 173
174 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 174 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
175 }; 175 };
176 176
177 } // namespace syncer 177 } // namespace syncer
178 178
179 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 179 #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