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

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

Issue 442403003: Update SyncManager::Init to use a GURL for the sync server URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix sync_client.cc too. 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
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"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "sync/internal_api/public/sync_manager.h" 12 #include "sync/internal_api/public/sync_manager.h"
13 #include "sync/internal_api/public/test/null_sync_context_proxy.h" 13 #include "sync/internal_api/public/test/null_sync_context_proxy.h"
14 #include "sync/internal_api/public/test/test_user_share.h" 14 #include "sync/internal_api/public/test/test_user_share.h"
15 15
16 class GURL;
17
16 namespace base { 18 namespace base {
17 class SequencedTaskRunner; 19 class SequencedTaskRunner;
18 } 20 }
19 21
20 namespace syncer { 22 namespace syncer {
21 23
22 class FakeSyncEncryptionHandler; 24 class FakeSyncEncryptionHandler;
23 25
24 class FakeSyncManager : public SyncManager { 26 class FakeSyncManager : public SyncManager {
25 public: 27 public:
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 73
72 // Block until the sync thread has finished processing any pending messages. 74 // Block until the sync thread has finished processing any pending messages.
73 void WaitForSyncThread(); 75 void WaitForSyncThread();
74 76
75 // SyncManager implementation. 77 // SyncManager implementation.
76 // 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
77 // loop for purposes of callbacks. 79 // loop for purposes of callbacks.
78 virtual void Init( 80 virtual void Init(
79 const base::FilePath& database_location, 81 const base::FilePath& database_location,
80 const WeakHandle<JsEventHandler>& event_handler, 82 const WeakHandle<JsEventHandler>& event_handler,
81 const std::string& sync_server_and_path, 83 const GURL& service_url,
82 int sync_server_port,
83 bool use_ssl,
84 scoped_ptr<HttpPostProviderFactory> post_factory, 84 scoped_ptr<HttpPostProviderFactory> post_factory,
85 const std::vector<scoped_refptr<ModelSafeWorker> >& workers, 85 const std::vector<scoped_refptr<ModelSafeWorker> >& workers,
86 ExtensionsActivity* extensions_activity, 86 ExtensionsActivity* extensions_activity,
87 ChangeDelegate* change_delegate, 87 ChangeDelegate* change_delegate,
88 const SyncCredentials& credentials, 88 const SyncCredentials& credentials,
89 const std::string& invalidator_client_id, 89 const std::string& invalidator_client_id,
90 const std::string& restored_key_for_bootstrapping, 90 const std::string& restored_key_for_bootstrapping,
91 const std::string& restored_keystore_key_for_bootstrapping, 91 const std::string& restored_keystore_key_for_bootstrapping,
92 InternalComponentsFactory* internal_components_factory, 92 InternalComponentsFactory* internal_components_factory,
93 Encryptor* encryptor, 93 Encryptor* encryptor,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 TestUserShare test_user_share_; 165 TestUserShare test_user_share_;
166 166
167 NullSyncContextProxy null_sync_context_proxy_; 167 NullSyncContextProxy null_sync_context_proxy_;
168 168
169 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 169 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
170 }; 170 };
171 171
172 } // namespace syncer 172 } // namespace syncer
173 173
174 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 174 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698