| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 | 444 |
| 445 // Sync profile against which changes to individual profiles are verified. We | 445 // Sync profile against which changes to individual profiles are verified. We |
| 446 // don't need a corresponding verifier sync client because the contents of the | 446 // don't need a corresponding verifier sync client because the contents of the |
| 447 // verifier profile are strictly local, and are not meant to be synced. | 447 // verifier profile are strictly local, and are not meant to be synced. |
| 448 Profile* verifier_; | 448 Profile* verifier_; |
| 449 | 449 |
| 450 // Indicates whether changes to a profile should also change the verifier | 450 // Indicates whether changes to a profile should also change the verifier |
| 451 // profile or not. | 451 // profile or not. |
| 452 bool use_verifier_; | 452 bool use_verifier_; |
| 453 | 453 |
| 454 // Indicates whether or not notifications were explicitly enabled/disabled. | |
| 455 // Defaults to true. | |
| 456 bool notifications_enabled_; | |
| 457 | |
| 458 // Indicates the need to create Gaia user account at runtime. This can only be | 454 // Indicates the need to create Gaia user account at runtime. This can only be |
| 459 // set if tests are run against external servers with support for user | 455 // set if tests are run against external servers with support for user |
| 460 // creation via http requests. | 456 // creation via http requests. |
| 461 bool create_gaia_account_at_runtime_; | 457 bool create_gaia_account_at_runtime_; |
| 462 | 458 |
| 463 // Sync integration tests need to make live DNS requests for access to | 459 // Sync integration tests need to make live DNS requests for access to |
| 464 // GAIA and sync server URLs under google.com. We use a scoped version | 460 // GAIA and sync server URLs under google.com. We use a scoped version |
| 465 // to override the default resolver while the test is active. | 461 // to override the default resolver while the test is active. |
| 466 std::unique_ptr<net::ScopedDefaultHostResolverProc> | 462 std::unique_ptr<net::ScopedDefaultHostResolverProc> |
| 467 mock_host_resolver_override_; | 463 mock_host_resolver_override_; |
| 468 | 464 |
| 469 // Used to start and stop the local test server. | 465 // Used to start and stop the local test server. |
| 470 base::Process test_server_; | 466 base::Process test_server_; |
| 471 | 467 |
| 472 // Fake URLFetcher factory used to mock out GAIA signin. | 468 // Fake URLFetcher factory used to mock out GAIA signin. |
| 473 std::unique_ptr<net::FakeURLFetcherFactory> fake_factory_; | 469 std::unique_ptr<net::FakeURLFetcherFactory> fake_factory_; |
| 474 | 470 |
| 475 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. | 471 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. |
| 476 std::unique_ptr<net::URLFetcherImplFactory> factory_; | 472 std::unique_ptr<net::URLFetcherImplFactory> factory_; |
| 477 | 473 |
| 478 // The contents to be written to a profile's Preferences file before the | 474 // The contents to be written to a profile's Preferences file before the |
| 479 // Profile object is created. If empty, no preexisting file will be written. | 475 // Profile object is created. If empty, no preexisting file will be written. |
| 480 std::string preexisting_preferences_file_contents_; | 476 std::string preexisting_preferences_file_contents_; |
| 481 | 477 |
| 482 DISALLOW_COPY_AND_ASSIGN(SyncTest); | 478 DISALLOW_COPY_AND_ASSIGN(SyncTest); |
| 483 }; | 479 }; |
| 484 | 480 |
| 485 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 481 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
| OLD | NEW |