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

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

Issue 10911073: NOT FOR COMMIT: Add DeviceInfo type and ChangeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Introduce SyncedDeviceTracker (the ChangeProcessor) 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
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/location.h" 10 #include "base/location.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 } 98 }
99 run_loop.Run(); 99 run_loop.Run();
100 } 100 }
101 101
102 void FakeSyncManager::Init( 102 void FakeSyncManager::Init(
103 const FilePath& database_location, 103 const FilePath& database_location,
104 const WeakHandle<JsEventHandler>& event_handler, 104 const WeakHandle<JsEventHandler>& event_handler,
105 const std::string& sync_server_and_path, 105 const std::string& sync_server_and_path,
106 int sync_server_port, 106 int sync_server_port,
107 bool use_ssl, 107 bool use_ssl,
108 const scoped_refptr<base::TaskRunner>& blocking_task_runner,
109 scoped_ptr<HttpPostProviderFactory> post_factory, 108 scoped_ptr<HttpPostProviderFactory> post_factory,
110 const std::vector<ModelSafeWorker*>& workers, 109 const std::vector<ModelSafeWorker*>& workers,
111 ExtensionsActivityMonitor* extensions_activity_monitor, 110 ExtensionsActivityMonitor* extensions_activity_monitor,
112 ChangeDelegate* change_delegate, 111 ChangeDelegate* change_delegate,
113 const SyncCredentials& credentials, 112 const SyncCredentials& credentials,
114 scoped_ptr<Invalidator> invalidator, 113 scoped_ptr<Invalidator> invalidator,
115 const std::string& restored_key_for_bootstrapping, 114 const std::string& restored_key_for_bootstrapping,
116 const std::string& restored_keystore_key_for_bootstrapping, 115 const std::string& restored_keystore_key_for_bootstrapping,
117 scoped_ptr<InternalComponentsFactory> internal_components_factory, 116 scoped_ptr<InternalComponentsFactory> internal_components_factory,
118 Encryptor* encryptor, 117 Encryptor* encryptor,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 registrar_.EmitOnNotificationsEnabled(); 271 registrar_.EmitOnNotificationsEnabled();
273 } 272 }
274 273
275 void FakeSyncManager::DisableNotificationsOnSyncThread( 274 void FakeSyncManager::DisableNotificationsOnSyncThread(
276 NotificationsDisabledReason reason) { 275 NotificationsDisabledReason reason) {
277 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); 276 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread());
278 registrar_.EmitOnNotificationsDisabled(reason); 277 registrar_.EmitOnNotificationsDisabled(reason);
279 } 278 }
280 279
281 } // namespace syncer 280 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698