| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 KEY_EXCHANGE_RSA = (1 << 0), | 84 KEY_EXCHANGE_RSA = (1 << 0), |
| 85 KEY_EXCHANGE_DHE_RSA = (1 << 1), | 85 KEY_EXCHANGE_DHE_RSA = (1 << 1), |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 // Bitmask of bulk encryption algorithms that the test server supports | 88 // Bitmask of bulk encryption algorithms that the test server supports |
| 89 // and that can be selectively enabled or disabled. | 89 // and that can be selectively enabled or disabled. |
| 90 enum BulkCipher { | 90 enum BulkCipher { |
| 91 // Special value used to indicate that any algorithm the server supports | 91 // Special value used to indicate that any algorithm the server supports |
| 92 // is acceptable. Preferred over explicitly OR-ing all ciphers. | 92 // is acceptable. Preferred over explicitly OR-ing all ciphers. |
| 93 BULK_CIPHER_ANY = 0, | 93 BULK_CIPHER_ANY = 0, |
| 94 | 94 |
| 95 BULK_CIPHER_RC4 = (1 << 0), | 95 BULK_CIPHER_RC4 = (1 << 0), |
| 96 BULK_CIPHER_AES128 = (1 << 1), | 96 BULK_CIPHER_AES128 = (1 << 1), |
| 97 BULK_CIPHER_AES256 = (1 << 2), | 97 BULK_CIPHER_AES256 = (1 << 2), |
| 98 | 98 |
| 99 // NOTE: 3DES support in the Python test server has external | 99 // NOTE: 3DES support in the Python test server has external |
| 100 // dependencies and not be available on all machines. Clients may not | 100 // dependencies and not be available on all machines. Clients may not |
| 101 // be able to connect if only 3DES is specified. | 101 // be able to connect if only 3DES is specified. |
| 102 BULK_CIPHER_3DES = (1 << 3), | 102 BULK_CIPHER_3DES = (1 << 3), |
| 103 |
| 104 BULK_CIPHER_AES128GCM = (1 << 4), |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 // NOTE: the values of these enumerators are passed to the the Python test | 107 // NOTE: the values of these enumerators are passed to the the Python test |
| 106 // server. Do not change them. | 108 // server. Do not change them. |
| 107 enum TLSIntolerantLevel { | 109 enum TLSIntolerantLevel { |
| 108 TLS_INTOLERANT_NONE = 0, | 110 TLS_INTOLERANT_NONE = 0, |
| 109 TLS_INTOLERANT_ALL = 1, // Intolerant of all TLS versions. | 111 TLS_INTOLERANT_ALL = 1, // Intolerant of all TLS versions. |
| 110 TLS_INTOLERANT_TLS1_1 = 2, // Intolerant of TLS 1.1 or higher. | 112 TLS_INTOLERANT_TLS1_1 = 2, // Intolerant of TLS 1.1 or higher. |
| 111 TLS_INTOLERANT_TLS1_2 = 3, // Intolerant of TLS 1.2 or higher. | 113 TLS_INTOLERANT_TLS1_2 = 3, // Intolerant of TLS 1.2 or higher. |
| 112 }; | 114 }; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 bool ws_basic_auth_; | 329 bool ws_basic_auth_; |
| 328 | 330 |
| 329 scoped_ptr<ScopedPortException> allowed_port_; | 331 scoped_ptr<ScopedPortException> allowed_port_; |
| 330 | 332 |
| 331 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 333 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
| 332 }; | 334 }; |
| 333 | 335 |
| 334 } // namespace net | 336 } // namespace net |
| 335 | 337 |
| 336 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 338 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
| OLD | NEW |