OLD | NEW |
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // Default is to return true. Test should override this if they require | 183 // Default is to return true. Test should override this if they require |
184 // different behavior. | 184 // different behavior. |
185 virtual bool TestUsesSelfNotifications(); | 185 virtual bool TestUsesSelfNotifications(); |
186 | 186 |
187 // Kicks off encryption for profile |index|. | 187 // Kicks off encryption for profile |index|. |
188 bool EnableEncryption(int index); | 188 bool EnableEncryption(int index); |
189 | 189 |
190 // Checks if encryption is complete for profile |index|. | 190 // Checks if encryption is complete for profile |index|. |
191 bool IsEncryptionComplete(int index); | 191 bool IsEncryptionComplete(int index); |
192 | 192 |
| 193 // Waits until IsEncryptionComplete returns true or a timeout is reached. |
| 194 bool AwaitEncryptionComplete(int index); |
| 195 |
193 // Blocks until all sync clients have completed their mutual sync cycles. | 196 // Blocks until all sync clients have completed their mutual sync cycles. |
194 // Returns true if a quiescent state was successfully reached. | 197 // Returns true if a quiescent state was successfully reached. |
195 bool AwaitQuiescence(); | 198 bool AwaitQuiescence(); |
196 | 199 |
197 // Returns true if the server being used supports controlling | 200 // Returns true if the server being used supports controlling |
198 // notifications. | 201 // notifications. |
199 bool ServerSupportsNotificationControl() const; | 202 bool ServerSupportsNotificationControl() const; |
200 | 203 |
201 // Disable notifications on the server. This operation is available | 204 // Disable notifications on the server. This operation is available |
202 // only if ServerSupportsNotificationControl() returned true. | 205 // only if ServerSupportsNotificationControl() returned true. |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 // Fake URLFetcher factory used to mock out GAIA signin. | 416 // Fake URLFetcher factory used to mock out GAIA signin. |
414 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_; | 417 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_; |
415 | 418 |
416 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. | 419 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. |
417 scoped_ptr<net::URLFetcherImplFactory> factory_; | 420 scoped_ptr<net::URLFetcherImplFactory> factory_; |
418 | 421 |
419 DISALLOW_COPY_AND_ASSIGN(SyncTest); | 422 DISALLOW_COPY_AND_ASSIGN(SyncTest); |
420 }; | 423 }; |
421 | 424 |
422 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 425 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
OLD | NEW |