Chromium Code Reviews| 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 NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 5 #ifndef NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
| 6 #define NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 6 #define NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 196 // TODO(ekasper): replace with valid SCT files for test certs. | 196 // TODO(ekasper): replace with valid SCT files for test certs. |
| 197 // (Fake) SignedCertificateTimestampList (as a raw binary string) to send in | 197 // (Fake) SignedCertificateTimestampList (as a raw binary string) to send in |
| 198 // a TLS extension. | 198 // a TLS extension. |
| 199 std::string signed_cert_timestamps_tls_ext; | 199 std::string signed_cert_timestamps_tls_ext; |
| 200 | 200 |
| 201 // Whether to staple the OCSP response. | 201 // Whether to staple the OCSP response. |
| 202 bool staple_ocsp_response; | 202 bool staple_ocsp_response; |
| 203 | 203 |
| 204 // Whether to enable NPN support. | 204 // Whether to enable NPN support. |
| 205 bool enable_npn; | 205 bool enable_npn; |
| 206 | |
| 207 // Tells the server to use a session cache of None. | |
| 208 bool none_session_cache; | |
|
Ryan Sleevi
2014/08/06 01:31:30
This isn't really descriptive in the context of ju
mshelley
2014/08/06 03:09:31
Done.
| |
| 206 }; | 209 }; |
| 207 | 210 |
| 208 // Pass as the 'host' parameter during construction to server on 127.0.0.1 | 211 // Pass as the 'host' parameter during construction to server on 127.0.0.1 |
| 209 static const char kLocalhost[]; | 212 static const char kLocalhost[]; |
| 210 | 213 |
| 211 // Initialize a TestServer listening on a specific host (IP or hostname). | 214 // Initialize a TestServer listening on a specific host (IP or hostname). |
| 212 BaseTestServer(Type type, const std::string& host); | 215 BaseTestServer(Type type, const std::string& host); |
| 213 | 216 |
| 214 // Initialize a TestServer with a specific set of SSLOptions for HTTPS or WSS. | 217 // Initialize a TestServer with a specific set of SSLOptions for HTTPS or WSS. |
| 215 BaseTestServer(Type type, const SSLOptions& ssl_options); | 218 BaseTestServer(Type type, const SSLOptions& ssl_options); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 318 bool ws_basic_auth_; | 321 bool ws_basic_auth_; |
| 319 | 322 |
| 320 scoped_ptr<ScopedPortException> allowed_port_; | 323 scoped_ptr<ScopedPortException> allowed_port_; |
| 321 | 324 |
| 322 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 325 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
| 323 }; | 326 }; |
| 324 | 327 |
| 325 } // namespace net | 328 } // namespace net |
| 326 | 329 |
| 327 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 330 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
| OLD | NEW |