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

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

Issue 10905045: [Sync] Pass ModelTypeSet by value everywhere (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 3 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 Encryptor* encryptor, 88 Encryptor* encryptor,
89 UnrecoverableErrorHandler* unrecoverable_error_handler, 89 UnrecoverableErrorHandler* unrecoverable_error_handler,
90 ReportUnrecoverableErrorFunction 90 ReportUnrecoverableErrorFunction
91 report_unrecoverable_error_function) OVERRIDE; 91 report_unrecoverable_error_function) OVERRIDE;
92 virtual void ThrowUnrecoverableError() OVERRIDE; 92 virtual void ThrowUnrecoverableError() OVERRIDE;
93 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; 93 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE;
94 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 94 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
95 ModelTypeSet types) OVERRIDE; 95 ModelTypeSet types) OVERRIDE;
96 virtual bool PurgePartiallySyncedTypes() OVERRIDE; 96 virtual bool PurgePartiallySyncedTypes() OVERRIDE;
97 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; 97 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE;
98 virtual void UpdateEnabledTypes(const ModelTypeSet& types) OVERRIDE; 98 virtual void UpdateEnabledTypes(ModelTypeSet types) OVERRIDE;
99 virtual void RegisterInvalidationHandler( 99 virtual void RegisterInvalidationHandler(
100 InvalidationHandler* handler) OVERRIDE; 100 InvalidationHandler* handler) OVERRIDE;
101 virtual void UpdateRegisteredInvalidationIds( 101 virtual void UpdateRegisteredInvalidationIds(
102 InvalidationHandler* handler, 102 InvalidationHandler* handler,
103 const ObjectIdSet& ids) OVERRIDE; 103 const ObjectIdSet& ids) OVERRIDE;
104 virtual void UnregisterInvalidationHandler( 104 virtual void UnregisterInvalidationHandler(
105 InvalidationHandler* handler) OVERRIDE; 105 InvalidationHandler* handler) OVERRIDE;
106 virtual void StartSyncingNormally( 106 virtual void StartSyncingNormally(
107 const ModelSafeRoutingInfo& routing_info) OVERRIDE; 107 const ModelSafeRoutingInfo& routing_info) OVERRIDE;
108 virtual void ConfigureSyncer( 108 virtual void ConfigureSyncer(
109 ConfigureReason reason, 109 ConfigureReason reason,
110 const ModelTypeSet& types_to_config, 110 ModelTypeSet types_to_config,
111 const ModelSafeRoutingInfo& new_routing_info, 111 const ModelSafeRoutingInfo& new_routing_info,
112 const base::Closure& ready_task, 112 const base::Closure& ready_task,
113 const base::Closure& retry_task) OVERRIDE; 113 const base::Closure& retry_task) OVERRIDE;
114 virtual void AddObserver(Observer* observer) OVERRIDE; 114 virtual void AddObserver(Observer* observer) OVERRIDE;
115 virtual void RemoveObserver(Observer* observer) OVERRIDE; 115 virtual void RemoveObserver(Observer* observer) OVERRIDE;
116 virtual SyncStatus GetDetailedStatus() const OVERRIDE; 116 virtual SyncStatus GetDetailedStatus() const OVERRIDE;
117 virtual void SaveChanges() OVERRIDE; 117 virtual void SaveChanges() OVERRIDE;
118 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE; 118 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE;
119 virtual void ShutdownOnSyncThread() OVERRIDE; 119 virtual void ShutdownOnSyncThread() OVERRIDE;
120 virtual UserShare* GetUserShare() OVERRIDE; 120 virtual UserShare* GetUserShare() OVERRIDE;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 InvalidatorRegistrar registrar_; 152 InvalidatorRegistrar registrar_;
153 153
154 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; 154 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_;
155 155
156 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 156 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
157 }; 157 };
158 158
159 } // namespace syncer 159 } // namespace syncer
160 160
161 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 161 #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