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

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

Issue 10826193: Remove SyncManager::Init() return value (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CreateDirectory assertion Created 8 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.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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // Posts a method to enable notifications on the sync thread. 60 // Posts a method to enable notifications on the sync thread.
61 void EnableNotifications(); 61 void EnableNotifications();
62 62
63 // Posts a method to disable notifications on the sync thread. 63 // Posts a method to disable notifications on the sync thread.
64 void DisableNotifications(NotificationsDisabledReason reason); 64 void DisableNotifications(NotificationsDisabledReason reason);
65 65
66 // SyncManager implementation. 66 // SyncManager implementation.
67 // Note: we treat whatever message loop this is called from as the sync 67 // Note: we treat whatever message loop this is called from as the sync
68 // loop for purposes of callbacks. 68 // loop for purposes of callbacks.
69 virtual bool Init( 69 virtual void Init(
70 const FilePath& database_location, 70 const FilePath& database_location,
71 const WeakHandle<JsEventHandler>& event_handler, 71 const WeakHandle<JsEventHandler>& event_handler,
72 const std::string& sync_server_and_path, 72 const std::string& sync_server_and_path,
73 int sync_server_port, 73 int sync_server_port,
74 bool use_ssl, 74 bool use_ssl,
75 const scoped_refptr<base::TaskRunner>& blocking_task_runner, 75 const scoped_refptr<base::TaskRunner>& blocking_task_runner,
76 scoped_ptr<HttpPostProviderFactory> post_factory, 76 scoped_ptr<HttpPostProviderFactory> post_factory,
77 const std::vector<ModelSafeWorker*>& workers, 77 const std::vector<ModelSafeWorker*>& workers,
78 ExtensionsActivityMonitor* extensions_activity_monitor, 78 ExtensionsActivityMonitor* extensions_activity_monitor,
79 ChangeDelegate* change_delegate, 79 ChangeDelegate* change_delegate,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 // Faked notifier state. 152 // Faked notifier state.
153 SyncNotifierHelper notifier_helper_; 153 SyncNotifierHelper notifier_helper_;
154 154
155 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 155 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
156 }; 156 };
157 157
158 } // namespace syncer 158 } // namespace syncer
159 159
160 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 160 #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