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

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

Issue 451743002: Pass args to SyncManager::Init via a struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use scoped_ptr instead of raw pointer. Created 6 years, 4 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.cc ('k') | sync/internal_api/sync_backup_manager.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Posts a method to update the invalidator state on the sync thread. 71 // Posts a method to update the invalidator state on the sync thread.
72 virtual void SetInvalidatorEnabled(bool invalidator_enabled) OVERRIDE; 72 virtual void SetInvalidatorEnabled(bool invalidator_enabled) OVERRIDE;
73 73
74 // Block until the sync thread has finished processing any pending messages. 74 // Block until the sync thread has finished processing any pending messages.
75 void WaitForSyncThread(); 75 void WaitForSyncThread();
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 virtual void Init( 80 virtual void Init(InitArgs* args) OVERRIDE;
81 const base::FilePath& database_location,
82 const WeakHandle<JsEventHandler>& event_handler,
83 const GURL& service_url,
84 scoped_ptr<HttpPostProviderFactory> post_factory,
85 const std::vector<scoped_refptr<ModelSafeWorker> >& workers,
86 ExtensionsActivity* extensions_activity,
87 ChangeDelegate* change_delegate,
88 const SyncCredentials& credentials,
89 const std::string& invalidator_client_id,
90 const std::string& restored_key_for_bootstrapping,
91 const std::string& restored_keystore_key_for_bootstrapping,
92 InternalComponentsFactory* internal_components_factory,
93 Encryptor* encryptor,
94 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler,
95 ReportUnrecoverableErrorFunction report_unrecoverable_error_function,
96 CancelationSignal* cancelation_signal) OVERRIDE;
97 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; 81 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE;
98 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 82 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
99 ModelTypeSet types) OVERRIDE; 83 ModelTypeSet types) OVERRIDE;
100 virtual bool PurgePartiallySyncedTypes() OVERRIDE; 84 virtual bool PurgePartiallySyncedTypes() OVERRIDE;
101 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; 85 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE;
102 virtual void StartSyncingNormally( 86 virtual void StartSyncingNormally(
103 const ModelSafeRoutingInfo& routing_info) OVERRIDE; 87 const ModelSafeRoutingInfo& routing_info) OVERRIDE;
104 virtual void ConfigureSyncer( 88 virtual void ConfigureSyncer(
105 ConfigureReason reason, 89 ConfigureReason reason,
106 ModelTypeSet to_download, 90 ModelTypeSet to_download,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 TestUserShare test_user_share_; 149 TestUserShare test_user_share_;
166 150
167 NullSyncContextProxy null_sync_context_proxy_; 151 NullSyncContextProxy null_sync_context_proxy_;
168 152
169 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 153 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
170 }; 154 };
171 155
172 } // namespace syncer 156 } // namespace syncer
173 157
174 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 158 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sync_manager.cc ('k') | sync/internal_api/sync_backup_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698