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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 | 206 |
207 // Whether to disable TLS session caching. When session caching is | 207 // Whether to disable TLS session caching. When session caching is |
208 // disabled, the server will generate a new Session ID for every connection. | 208 // disabled, the server will generate an empty session ID in the |
wtc
2014/08/07 23:25:31
Nit: generate => "return" or "use"
| |
209 // ServerHello. | |
209 bool disable_session_cache; | 210 bool disable_session_cache; |
210 }; | 211 }; |
211 | 212 |
212 // Pass as the 'host' parameter during construction to server on 127.0.0.1 | 213 // Pass as the 'host' parameter during construction to server on 127.0.0.1 |
213 static const char kLocalhost[]; | 214 static const char kLocalhost[]; |
214 | 215 |
215 // Initialize a TestServer listening on a specific host (IP or hostname). | 216 // Initialize a TestServer listening on a specific host (IP or hostname). |
216 BaseTestServer(Type type, const std::string& host); | 217 BaseTestServer(Type type, const std::string& host); |
217 | 218 |
218 // Initialize a TestServer with a specific set of SSLOptions for HTTPS or WSS. | 219 // Initialize a TestServer with a specific set of SSLOptions for HTTPS or WSS. |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
322 bool ws_basic_auth_; | 323 bool ws_basic_auth_; |
323 | 324 |
324 scoped_ptr<ScopedPortException> allowed_port_; | 325 scoped_ptr<ScopedPortException> allowed_port_; |
325 | 326 |
326 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 327 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
327 }; | 328 }; |
328 | 329 |
329 } // namespace net | 330 } // namespace net |
330 | 331 |
331 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 332 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
OLD | NEW |