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

Side by Side Diff: chrome/browser/sync/test/integration/sync_test.h

Issue 13197004: Draft: InvalidationService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Passes tests Created 7 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
7 7
8 #include "chrome/test/base/in_process_browser_test.h" 8 #include "chrome/test/base/in_process_browser_test.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // reflected in the verifier profile. Note: Not all datatypes use this. 129 // reflected in the verifier profile. Note: Not all datatypes use this.
130 // TODO(rsimha): Hook up all datatypes to this mechanism. 130 // TODO(rsimha): Hook up all datatypes to this mechanism.
131 void DisableVerifier(); 131 void DisableVerifier();
132 132
133 // Initializes sync clients and profiles but does not sync any of them. 133 // Initializes sync clients and profiles but does not sync any of them.
134 virtual bool SetupClients() WARN_UNUSED_RESULT; 134 virtual bool SetupClients() WARN_UNUSED_RESULT;
135 135
136 // Initializes sync clients and profiles if required and syncs each of them. 136 // Initializes sync clients and profiles if required and syncs each of them.
137 virtual bool SetupSync() WARN_UNUSED_RESULT; 137 virtual bool SetupSync() WARN_UNUSED_RESULT;
138 138
139 // Restarts the sync service for the profile at |index|. This is equivalent to
140 // closing and reopening all browser windows for the profile.
141 virtual void RestartSyncService(int index);
142
143 // Enable outgoing network connections for the given profile. 139 // Enable outgoing network connections for the given profile.
144 virtual void EnableNetwork(Profile* profile); 140 virtual void EnableNetwork(Profile* profile);
145 141
146 // Disable outgoing network connections for the given profile. 142 // Disable outgoing network connections for the given profile.
147 virtual void DisableNetwork(Profile* profile); 143 virtual void DisableNetwork(Profile* profile);
148 144
149 // Encrypts the datatype |type| for profile |index|. 145 // Encrypts the datatype |type| for profile |index|.
150 bool EnableEncryption(int index, syncer::ModelType type); 146 bool EnableEncryption(int index, syncer::ModelType type);
151 147
152 // Checks if the datatype |type| is encrypted for profile |index|. 148 // Checks if the datatype |type| is encrypted for profile |index|.
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 scoped_ptr<net::URLFetcherImplFactory> factory_; 358 scoped_ptr<net::URLFetcherImplFactory> factory_;
363 359
364 // Number of default entries (as determined by the existing entries at setup 360 // Number of default entries (as determined by the existing entries at setup
365 // time on client 0). 361 // time on client 0).
366 size_t number_of_default_sync_items_; 362 size_t number_of_default_sync_items_;
367 363
368 DISALLOW_COPY_AND_ASSIGN(SyncTest); 364 DISALLOW_COPY_AND_ASSIGN(SyncTest);
369 }; 365 };
370 366
371 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 367 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698