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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 348 |
349 // Helper method used to clear any fake responses that might have been set for | 349 // Helper method used to clear any fake responses that might have been set for |
350 // various gaia URLs, cancel any outstanding URL requests, and return to using | 350 // various gaia URLs, cancel any outstanding URL requests, and return to using |
351 // the default URLFetcher creation mechanism. | 351 // the default URLFetcher creation mechanism. |
352 void ClearMockGaiaResponses(); | 352 void ClearMockGaiaResponses(); |
353 | 353 |
354 // Decide which sync server implementation to run against based on the type | 354 // Decide which sync server implementation to run against based on the type |
355 // of test being run and command line args passed in. | 355 // of test being run and command line args passed in. |
356 void DecideServerType(); | 356 void DecideServerType(); |
357 | 357 |
| 358 // Sets up the client-side invalidations infrastructure depending on the |
| 359 // value of |server_type_|. |
| 360 void InitializeInvalidations(int index); |
| 361 |
358 // Python sync test server, started on demand. | 362 // Python sync test server, started on demand. |
359 syncer::LocalSyncTestServer sync_server_; | 363 syncer::LocalSyncTestServer sync_server_; |
360 | 364 |
361 // Helper class to whitelist the notification port. | 365 // Helper class to whitelist the notification port. |
362 scoped_ptr<net::ScopedPortException> xmpp_port_; | 366 scoped_ptr<net::ScopedPortException> xmpp_port_; |
363 | 367 |
364 // Used to differentiate between single-client, two-client, multi-client and | 368 // Used to differentiate between single-client, two-client, multi-client and |
365 // many-client tests. | 369 // many-client tests. |
366 TestType test_type_; | 370 TestType test_type_; |
367 | 371 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 // Fake URLFetcher factory used to mock out GAIA signin. | 419 // Fake URLFetcher factory used to mock out GAIA signin. |
416 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_; | 420 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_; |
417 | 421 |
418 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. | 422 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. |
419 scoped_ptr<net::URLFetcherImplFactory> factory_; | 423 scoped_ptr<net::URLFetcherImplFactory> factory_; |
420 | 424 |
421 DISALLOW_COPY_AND_ASSIGN(SyncTest); | 425 DISALLOW_COPY_AND_ASSIGN(SyncTest); |
422 }; | 426 }; |
423 | 427 |
424 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 428 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
OLD | NEW |