Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ | 5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ |
| 6 #define CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ | 6 #define CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/test/in_process_browser_test.h" | 9 #include "chrome/test/in_process_browser_test.h" |
| 10 | 10 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 167 bool IsTestServerRunning(); | 167 bool IsTestServerRunning(); |
| 168 | 168 |
| 169 // Used to disable and enable network connectivity by providing and | 169 // Used to disable and enable network connectivity by providing and |
| 170 // clearing an invalid proxy configuration. | 170 // clearing an invalid proxy configuration. |
| 171 void SetProxyConfig(URLRequestContextGetter* context, | 171 void SetProxyConfig(URLRequestContextGetter* context, |
| 172 const net::ProxyConfig& proxy_config); | 172 const net::ProxyConfig& proxy_config); |
| 173 | 173 |
| 174 // Test server of type sync, started on demand. | 174 // Test server of type sync, started on demand. |
| 175 net::TestServer sync_server_; | 175 net::TestServer sync_server_; |
| 176 | 176 |
| 177 // Helper class to whitelist the notificition port. | |
|
akalin
2010/12/09 19:10:31
notificition -> notification
Bernhard Bauer
2010/12/10 14:47:04
Done.
| |
| 178 scoped_ptr<net::ScopedPortException> xmpp_port_; | |
| 179 | |
| 177 // Used to differentiate between single-client, two-client, multi-client and | 180 // Used to differentiate between single-client, two-client, multi-client and |
| 178 // many-client tests. | 181 // many-client tests. |
| 179 TestType test_type_; | 182 TestType test_type_; |
| 180 | 183 |
| 181 // Number of sync clients that will be created by a test. | 184 // Number of sync clients that will be created by a test. |
| 182 int num_clients_; | 185 int num_clients_; |
| 183 | 186 |
| 184 // Collection of sync profiles used by a test. A sync profile maintains sync | 187 // Collection of sync profiles used by a test. A sync profile maintains sync |
| 185 // data contained within its own subdirectory under the chrome user data | 188 // data contained within its own subdirectory under the chrome user data |
| 186 // directory. | 189 // directory. |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 201 // to override the default resolver while the test is active. | 204 // to override the default resolver while the test is active. |
| 202 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_; | 205 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_; |
| 203 | 206 |
| 204 // Used to start and stop the local test server. | 207 // Used to start and stop the local test server. |
| 205 base::ProcessHandle test_server_handle_; | 208 base::ProcessHandle test_server_handle_; |
| 206 | 209 |
| 207 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); | 210 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); |
| 208 }; | 211 }; |
| 209 | 212 |
| 210 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ | 213 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ |
| OLD | NEW |