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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // account state is initially clean. | 90 // account state is initially clean. |
91 IN_PROCESS_FAKE_SERVER, // The fake Sync server (FakeServer) running | 91 IN_PROCESS_FAKE_SERVER, // The fake Sync server (FakeServer) running |
92 // in-process (bypassing HTTP calls). This | 92 // in-process (bypassing HTTP calls). This |
93 // ServerType will eventually replace | 93 // ServerType will eventually replace |
94 // LOCAL_PYTHON_SERVER. | 94 // LOCAL_PYTHON_SERVER. |
95 }; | 95 }; |
96 | 96 |
97 // A SyncTest must be associated with a particular test type. | 97 // A SyncTest must be associated with a particular test type. |
98 explicit SyncTest(TestType test_type); | 98 explicit SyncTest(TestType test_type); |
99 | 99 |
100 virtual ~SyncTest(); | 100 ~SyncTest() override; |
101 | 101 |
102 // Validates command line parameters and creates a local python test server if | 102 // Validates command line parameters and creates a local python test server if |
103 // specified. | 103 // specified. |
104 virtual void SetUp() override; | 104 void SetUp() override; |
105 | 105 |
106 // Brings down local python test server if one was created. | 106 // Brings down local python test server if one was created. |
107 virtual void TearDown() override; | 107 void TearDown() override; |
108 | 108 |
109 // Sets up command line flags required for sync tests. | 109 // Sets up command line flags required for sync tests. |
110 void SetUpCommandLine(base::CommandLine* cl) override; | 110 void SetUpCommandLine(base::CommandLine* cl) override; |
111 | 111 |
112 // Used to get the number of sync clients used by a test. | 112 // Used to get the number of sync clients used by a test. |
113 int num_clients() WARN_UNUSED_RESULT { return num_clients_; } | 113 int num_clients() WARN_UNUSED_RESULT { return num_clients_; } |
114 | 114 |
115 // Returns a pointer to a particular sync profile. Callee owns the object | 115 // Returns a pointer to a particular sync profile. Callee owns the object |
116 // and manages its lifetime. | 116 // and manages its lifetime. |
117 Profile* GetProfile(int index) WARN_UNUSED_RESULT; | 117 Profile* GetProfile(int index) WARN_UNUSED_RESULT; |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 // Fake URLFetcher factory used to mock out GAIA signin. | 381 // Fake URLFetcher factory used to mock out GAIA signin. |
382 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_; | 382 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_; |
383 | 383 |
384 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. | 384 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. |
385 scoped_ptr<net::URLFetcherImplFactory> factory_; | 385 scoped_ptr<net::URLFetcherImplFactory> factory_; |
386 | 386 |
387 DISALLOW_COPY_AND_ASSIGN(SyncTest); | 387 DISALLOW_COPY_AND_ASSIGN(SyncTest); |
388 }; | 388 }; |
389 | 389 |
390 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 390 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
OLD | NEW |