| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Sets up command line flags required for sync tests. | 123 // Sets up command line flags required for sync tests. |
| 124 void SetUpCommandLine(base::CommandLine* cl) override; | 124 void SetUpCommandLine(base::CommandLine* cl) override; |
| 125 | 125 |
| 126 // Used to get the number of sync clients used by a test. | 126 // Used to get the number of sync clients used by a test. |
| 127 int num_clients() WARN_UNUSED_RESULT { return num_clients_; } | 127 int num_clients() WARN_UNUSED_RESULT { return num_clients_; } |
| 128 | 128 |
| 129 // Returns a pointer to a particular sync profile. Callee owns the object | 129 // Returns a pointer to a particular sync profile. Callee owns the object |
| 130 // and manages its lifetime. | 130 // and manages its lifetime. |
| 131 Profile* GetProfile(int index) WARN_UNUSED_RESULT; | 131 Profile* GetProfile(int index) WARN_UNUSED_RESULT; |
| 132 | 132 |
| 133 // Returns a list of all profiles including the verifier if available. Callee |
| 134 // owns the objects and manages its lifetime. |
| 135 std::vector<Profile*> GetAllProfiles(); |
| 136 |
| 133 // Returns a pointer to a particular browser. Callee owns the object | 137 // Returns a pointer to a particular browser. Callee owns the object |
| 134 // and manages its lifetime. | 138 // and manages its lifetime. |
| 135 Browser* GetBrowser(int index) WARN_UNUSED_RESULT; | 139 Browser* GetBrowser(int index) WARN_UNUSED_RESULT; |
| 136 | 140 |
| 137 // Returns a pointer to a particular sync client. Callee owns the object | 141 // Returns a pointer to a particular sync client. Callee owns the object |
| 138 // and manages its lifetime. | 142 // and manages its lifetime. |
| 139 ProfileSyncServiceHarness* GetClient(int index) WARN_UNUSED_RESULT; | 143 ProfileSyncServiceHarness* GetClient(int index) WARN_UNUSED_RESULT; |
| 140 | 144 |
| 141 // Returns a reference to the collection of sync clients. Callee owns the | 145 // Returns a reference to the collection of sync clients. Callee owns the |
| 142 // object and manages its lifetime. | 146 // object and manages its lifetime. |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 scoped_ptr<net::URLFetcherImplFactory> factory_; | 455 scoped_ptr<net::URLFetcherImplFactory> factory_; |
| 452 | 456 |
| 453 // The contents to be written to a profile's Preferences file before the | 457 // The contents to be written to a profile's Preferences file before the |
| 454 // Profile object is created. If empty, no preexisting file will be written. | 458 // Profile object is created. If empty, no preexisting file will be written. |
| 455 std::string preexisting_preferences_file_contents_; | 459 std::string preexisting_preferences_file_contents_; |
| 456 | 460 |
| 457 DISALLOW_COPY_AND_ASSIGN(SyncTest); | 461 DISALLOW_COPY_AND_ASSIGN(SyncTest); |
| 458 }; | 462 }; |
| 459 | 463 |
| 460 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 464 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
| OLD | NEW |