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

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

Issue 315823002: sync: Refactor TwoClientPreferencesSyncTest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Default is to return true. Test should override this if they require 192 // Default is to return true. Test should override this if they require
193 // different behavior. 193 // different behavior.
194 virtual bool TestUsesSelfNotifications(); 194 virtual bool TestUsesSelfNotifications();
195 195
196 // Kicks off encryption for profile |index|. 196 // Kicks off encryption for profile |index|.
197 bool EnableEncryption(int index); 197 bool EnableEncryption(int index);
198 198
199 // Checks if encryption is complete for profile |index|. 199 // Checks if encryption is complete for profile |index|.
200 bool IsEncryptionComplete(int index); 200 bool IsEncryptionComplete(int index);
201 201
202 // Waits until IsEncryptionComplete returns true or a timeout is reached.
203 bool AwaitEncryptionComplete(int index);
204
202 // Blocks until all sync clients have completed their mutual sync cycles. 205 // Blocks until all sync clients have completed their mutual sync cycles.
203 // Returns true if a quiescent state was successfully reached. 206 // Returns true if a quiescent state was successfully reached.
204 bool AwaitQuiescence(); 207 bool AwaitQuiescence();
205 208
206 // Returns true if the server being used supports controlling 209 // Returns true if the server being used supports controlling
207 // notifications. 210 // notifications.
208 bool ServerSupportsNotificationControl() const; 211 bool ServerSupportsNotificationControl() const;
209 212
210 // Disable notifications on the server. This operation is available 213 // Disable notifications on the server. This operation is available
211 // only if ServerSupportsNotificationControl() returned true. 214 // only if ServerSupportsNotificationControl() returned true.
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // Fake URLFetcher factory used to mock out GAIA signin. 431 // Fake URLFetcher factory used to mock out GAIA signin.
429 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_; 432 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_;
430 433
431 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. 434 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|.
432 scoped_ptr<net::URLFetcherImplFactory> factory_; 435 scoped_ptr<net::URLFetcherImplFactory> factory_;
433 436
434 DISALLOW_COPY_AND_ASSIGN(SyncTest); 437 DISALLOW_COPY_AND_ASSIGN(SyncTest);
435 }; 438 };
436 439
437 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 440 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698