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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 | 202 |
203 // Whether to staple the OCSP response. | 203 // Whether to staple the OCSP response. |
204 bool staple_ocsp_response; | 204 bool staple_ocsp_response; |
205 | 205 |
206 // Whether to make the OCSP server unavailable. This does not affect the | 206 // Whether to make the OCSP server unavailable. This does not affect the |
207 // stapled OCSP response. | 207 // stapled OCSP response. |
208 bool ocsp_server_unavailable; | 208 bool ocsp_server_unavailable; |
209 | 209 |
210 // Whether to enable NPN support. | 210 // Whether to enable NPN support. |
211 bool enable_npn; | 211 bool enable_npn; |
| 212 |
| 213 // Whether to send a fatal alert immediately after completing the handshake. |
| 214 bool alert_after_handshake; |
212 }; | 215 }; |
213 | 216 |
214 // Pass as the 'host' parameter during construction to server on 127.0.0.1 | 217 // Pass as the 'host' parameter during construction to server on 127.0.0.1 |
215 static const char kLocalhost[]; | 218 static const char kLocalhost[]; |
216 | 219 |
217 // Initialize a TestServer listening on a specific host (IP or hostname). | 220 // Initialize a TestServer listening on a specific host (IP or hostname). |
218 BaseTestServer(Type type, const std::string& host); | 221 BaseTestServer(Type type, const std::string& host); |
219 | 222 |
220 // Initialize a TestServer with a specific set of SSLOptions for HTTPS or WSS. | 223 // Initialize a TestServer with a specific set of SSLOptions for HTTPS or WSS. |
221 BaseTestServer(Type type, const SSLOptions& ssl_options); | 224 BaseTestServer(Type type, const SSLOptions& ssl_options); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 bool ws_basic_auth_; | 327 bool ws_basic_auth_; |
325 | 328 |
326 scoped_ptr<ScopedPortException> allowed_port_; | 329 scoped_ptr<ScopedPortException> allowed_port_; |
327 | 330 |
328 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 331 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
329 }; | 332 }; |
330 | 333 |
331 } // namespace net | 334 } // namespace net |
332 | 335 |
333 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 336 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
OLD | NEW |