| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 148     // negotiates an intolerant TLS version in order to test version fallback. | 148     // negotiates an intolerant TLS version in order to test version fallback. | 
| 149     TLSIntolerantLevel tls_intolerant; | 149     TLSIntolerantLevel tls_intolerant; | 
| 150 | 150 | 
| 151     // fallback_scsv_enabled, if true, causes the server to process the | 151     // fallback_scsv_enabled, if true, causes the server to process the | 
| 152     // TLS_FALLBACK_SCSV cipher suite. This cipher suite is sent by Chrome | 152     // TLS_FALLBACK_SCSV cipher suite. This cipher suite is sent by Chrome | 
| 153     // when performing TLS version fallback in response to an SSL handshake | 153     // when performing TLS version fallback in response to an SSL handshake | 
| 154     // failure. If this option is enabled then the server will reject fallback | 154     // failure. If this option is enabled then the server will reject fallback | 
| 155     // connections. | 155     // connections. | 
| 156     bool fallback_scsv_enabled; | 156     bool fallback_scsv_enabled; | 
| 157 | 157 | 
| 158     // (Fake) SignedCertificateTimestampList (as a raw binary string) to send in |  | 
| 159     // a TLS extension. |  | 
| 160     // Temporary glue for testing: validation of SCTs is application-controlled | 158     // Temporary glue for testing: validation of SCTs is application-controlled | 
| 161     // and can be appropriately mocked out, so sending fake data here does not | 159     // and can be appropriately mocked out, so sending fake data here does not | 
| 162     // affect handshaking behaviour. | 160     // affect handshaking behaviour. | 
| 163     // TODO(ekasper): replace with valid SCT files for test certs. | 161     // TODO(ekasper): replace with valid SCT files for test certs. | 
| 164     std::string signed_cert_timestamps; | 162     // (Fake) SignedCertificateTimestampList (as a raw binary string) to send in | 
|  | 163     // a TLS extension. | 
|  | 164     std::string signed_cert_timestamps_tls_ext; | 
|  | 165 | 
|  | 166     // Whether to staple the OCSP response. | 
|  | 167     bool staple_ocsp_response; | 
| 165   }; | 168   }; | 
| 166 | 169 | 
| 167   // Pass as the 'host' parameter during construction to server on 127.0.0.1 | 170   // Pass as the 'host' parameter during construction to server on 127.0.0.1 | 
| 168   static const char kLocalhost[]; | 171   static const char kLocalhost[]; | 
| 169 | 172 | 
| 170   // Initialize a TestServer listening on a specific host (IP or hostname). | 173   // Initialize a TestServer listening on a specific host (IP or hostname). | 
| 171   BaseTestServer(Type type,  const std::string& host); | 174   BaseTestServer(Type type,  const std::string& host); | 
| 172 | 175 | 
| 173   // Initialize a TestServer with a specific set of SSLOptions for HTTPS or WSS. | 176   // Initialize a TestServer with a specific set of SSLOptions for HTTPS or WSS. | 
| 174   explicit BaseTestServer(Type type, const SSLOptions& ssl_options); | 177   explicit BaseTestServer(Type type, const SSLOptions& ssl_options); | 
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 268   bool log_to_console_; | 271   bool log_to_console_; | 
| 269 | 272 | 
| 270   scoped_ptr<ScopedPortException> allowed_port_; | 273   scoped_ptr<ScopedPortException> allowed_port_; | 
| 271 | 274 | 
| 272   DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 275   DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 
| 273 }; | 276 }; | 
| 274 | 277 | 
| 275 }  // namespace net | 278 }  // namespace net | 
| 276 | 279 | 
| 277 #endif  // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 280 #endif  // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 
| OLD | NEW | 
|---|