| 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 "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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |