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

Side by Side Diff: sync/internal_api/test/fake_sync_manager.cc

Issue 12092091: Separate sync and invalidation client IDs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
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 #include "sync/internal_api/public/test/fake_sync_manager.h" 5 #include "sync/internal_api/public/test/fake_sync_manager.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const WeakHandle<JsEventHandler>& event_handler, 91 const WeakHandle<JsEventHandler>& event_handler,
92 const std::string& sync_server_and_path, 92 const std::string& sync_server_and_path,
93 int sync_server_port, 93 int sync_server_port,
94 bool use_ssl, 94 bool use_ssl,
95 scoped_ptr<HttpPostProviderFactory> post_factory, 95 scoped_ptr<HttpPostProviderFactory> post_factory,
96 const std::vector<ModelSafeWorker*>& workers, 96 const std::vector<ModelSafeWorker*>& workers,
97 ExtensionsActivityMonitor* extensions_activity_monitor, 97 ExtensionsActivityMonitor* extensions_activity_monitor,
98 ChangeDelegate* change_delegate, 98 ChangeDelegate* change_delegate,
99 const SyncCredentials& credentials, 99 const SyncCredentials& credentials,
100 scoped_ptr<Invalidator> invalidator, 100 scoped_ptr<Invalidator> invalidator,
101 const std::string& invalidator_client_id,
101 const std::string& restored_key_for_bootstrapping, 102 const std::string& restored_key_for_bootstrapping,
102 const std::string& restored_keystore_key_for_bootstrapping, 103 const std::string& restored_keystore_key_for_bootstrapping,
103 scoped_ptr<InternalComponentsFactory> internal_components_factory, 104 scoped_ptr<InternalComponentsFactory> internal_components_factory,
104 Encryptor* encryptor, 105 Encryptor* encryptor,
105 UnrecoverableErrorHandler* unrecoverable_error_handler, 106 UnrecoverableErrorHandler* unrecoverable_error_handler,
106 ReportUnrecoverableErrorFunction 107 ReportUnrecoverableErrorFunction
107 report_unrecoverable_error_function) { 108 report_unrecoverable_error_function) {
108 sync_task_runner_ = base::ThreadTaskRunnerHandle::Get(); 109 sync_task_runner_ = base::ThreadTaskRunnerHandle::Get();
109 PurgePartiallySyncedTypes(); 110 PurgePartiallySyncedTypes();
110 111
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 InvalidatorState state) { 287 InvalidatorState state) {
287 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); 288 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread());
288 registrar_.UpdateInvalidatorState(state); 289 registrar_.UpdateInvalidatorState(state);
289 } 290 }
290 291
291 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { 292 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() {
292 return last_refresh_request_types_; 293 return last_refresh_request_types_;
293 } 294 }
294 295
295 } // namespace syncer 296 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/internal_api/test/test_internal_components_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698