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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 212 |
213 // Whether to disable TLS session caching. When session caching is | 213 // Whether to disable TLS session caching. When session caching is |
214 // disabled, the server will use an empty session ID in the | 214 // disabled, the server will use an empty session ID in the |
215 // ServerHello. | 215 // ServerHello. |
216 bool disable_session_cache; | 216 bool disable_session_cache; |
| 217 |
| 218 // Whether to send a fatal alert immediately after completing the handshake. |
| 219 bool alert_after_handshake; |
217 }; | 220 }; |
218 | 221 |
219 // Pass as the 'host' parameter during construction to server on 127.0.0.1 | 222 // Pass as the 'host' parameter during construction to server on 127.0.0.1 |
220 static const char kLocalhost[]; | 223 static const char kLocalhost[]; |
221 | 224 |
222 // Initialize a TestServer listening on a specific host (IP or hostname). | 225 // Initialize a TestServer listening on a specific host (IP or hostname). |
223 BaseTestServer(Type type, const std::string& host); | 226 BaseTestServer(Type type, const std::string& host); |
224 | 227 |
225 // Initialize a TestServer with a specific set of SSLOptions for HTTPS or WSS. | 228 // Initialize a TestServer with a specific set of SSLOptions for HTTPS or WSS. |
226 BaseTestServer(Type type, const SSLOptions& ssl_options); | 229 BaseTestServer(Type type, const SSLOptions& ssl_options); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 bool ws_basic_auth_; | 332 bool ws_basic_auth_; |
330 | 333 |
331 scoped_ptr<ScopedPortException> allowed_port_; | 334 scoped_ptr<ScopedPortException> allowed_port_; |
332 | 335 |
333 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 336 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
334 }; | 337 }; |
335 | 338 |
336 } // namespace net | 339 } // namespace net |
337 | 340 |
338 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 341 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
OLD | NEW |