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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // stay in this state until shut down. | 212 // stay in this state until shut down. |
213 void TriggerXmppAuthError(); | 213 void TriggerXmppAuthError(); |
214 | 214 |
215 // Triggers the creation the Synced Bookmarks folder on the server. | 215 // Triggers the creation the Synced Bookmarks folder on the server. |
216 void TriggerCreateSyncedBookmarks(); | 216 void TriggerCreateSyncedBookmarks(); |
217 | 217 |
218 // Returns the FakeServer being used for the test or NULL if FakeServer is | 218 // Returns the FakeServer being used for the test or NULL if FakeServer is |
219 // not being used. | 219 // not being used. |
220 fake_server::FakeServer* GetFakeServer() const; | 220 fake_server::FakeServer* GetFakeServer() const; |
221 | 221 |
| 222 // Triggers a sync for the given |model_types| for the Profile at |index|. |
| 223 void TriggerSyncForModelTypes(int index, syncer::ModelTypeSet model_types); |
| 224 |
222 protected: | 225 protected: |
223 // Add custom switches needed for running the test. | 226 // Add custom switches needed for running the test. |
224 virtual void AddTestSwitches(base::CommandLine* cl); | 227 virtual void AddTestSwitches(base::CommandLine* cl); |
225 | 228 |
226 // Append the command line switches to enable experimental types that aren't | 229 // Append the command line switches to enable experimental types that aren't |
227 // on by default yet. | 230 // on by default yet. |
228 virtual void AddOptionalTypesToCommandLine(base::CommandLine* cl); | 231 virtual void AddOptionalTypesToCommandLine(base::CommandLine* cl); |
229 | 232 |
230 // BrowserTestBase override. Destroys all the sync clients and sync | 233 // BrowserTestBase override. Destroys all the sync clients and sync |
231 // profiles created by a test. | 234 // profiles created by a test. |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 scoped_ptr<net::URLFetcherImplFactory> factory_; | 409 scoped_ptr<net::URLFetcherImplFactory> factory_; |
407 | 410 |
408 // The contents to be written to a profile's Preferences file before the | 411 // The contents to be written to a profile's Preferences file before the |
409 // Profile object is created. If empty, no preexisting file will be written. | 412 // Profile object is created. If empty, no preexisting file will be written. |
410 std::string preexisting_preferences_file_contents_; | 413 std::string preexisting_preferences_file_contents_; |
411 | 414 |
412 DISALLOW_COPY_AND_ASSIGN(SyncTest); | 415 DISALLOW_COPY_AND_ASSIGN(SyncTest); |
413 }; | 416 }; |
414 | 417 |
415 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 418 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
OLD | NEW |