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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 // Whether to make the OCSP server unavailable. This does not affect the | 271 // Whether to make the OCSP server unavailable. This does not affect the |
272 // stapled OCSP response. | 272 // stapled OCSP response. |
273 bool ocsp_server_unavailable; | 273 bool ocsp_server_unavailable; |
274 | 274 |
275 // List of protocols to advertise in NPN extension. NPN is not supported if | 275 // List of protocols to advertise in NPN extension. NPN is not supported if |
276 // list is empty. Note that regardless of what protocol is negotiated, the | 276 // list is empty. Note that regardless of what protocol is negotiated, the |
277 // test server will continue to speak HTTP/1.1. | 277 // test server will continue to speak HTTP/1.1. |
278 std::vector<std::string> npn_protocols; | 278 std::vector<std::string> npn_protocols; |
279 | 279 |
| 280 // List of supported ALPN protocols. |
| 281 std::vector<std::string> alpn_protocols; |
| 282 |
280 // Whether to send a fatal alert immediately after completing the handshake. | 283 // Whether to send a fatal alert immediately after completing the handshake. |
281 bool alert_after_handshake; | 284 bool alert_after_handshake; |
282 | 285 |
283 // If true, disables channel ID on the server. | 286 // If true, disables channel ID on the server. |
284 bool disable_channel_id; | 287 bool disable_channel_id; |
285 | 288 |
286 // If true, disables extended master secret tls extension. | 289 // If true, disables extended master secret tls extension. |
287 bool disable_extended_master_secret; | 290 bool disable_extended_master_secret; |
288 | 291 |
289 // List of token binding params that the server supports and will negotiate. | 292 // List of token binding params that the server supports and will negotiate. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 bool no_anonymous_ftp_user_; | 417 bool no_anonymous_ftp_user_; |
415 | 418 |
416 std::unique_ptr<ScopedPortException> allowed_port_; | 419 std::unique_ptr<ScopedPortException> allowed_port_; |
417 | 420 |
418 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 421 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
419 }; | 422 }; |
420 | 423 |
421 } // namespace net | 424 } // namespace net |
422 | 425 |
423 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 426 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
OLD | NEW |