| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 CERT_EXPIRED, | 58 CERT_EXPIRED, |
| 59 // Cross-signed certificate to test PKIX path building. Contains an | 59 // Cross-signed certificate to test PKIX path building. Contains an |
| 60 // intermediate cross-signed by an unknown root, while the client (via | 60 // intermediate cross-signed by an unknown root, while the client (via |
| 61 // TestRootStore) is expected to have a self-signed version of the | 61 // TestRootStore) is expected to have a self-signed version of the |
| 62 // intermediate. | 62 // intermediate. |
| 63 CERT_CHAIN_WRONG_ROOT, | 63 CERT_CHAIN_WRONG_ROOT, |
| 64 | 64 |
| 65 // Causes the testserver to use a hostname that is a domain | 65 // Causes the testserver to use a hostname that is a domain |
| 66 // instead of an IP. | 66 // instead of an IP. |
| 67 CERT_COMMON_NAME_IS_DOMAIN, | 67 CERT_COMMON_NAME_IS_DOMAIN, |
| 68 |
| 69 // This server has a valid certificate for "example.com". |
| 70 CERT_EXAMPLE_DOMAIN, |
| 71 |
| 72 // This server has a valid certificate for "www.example.com". |
| 73 CERT_WWW_EXAMPLE_DOMAIN, |
| 68 }; | 74 }; |
| 69 | 75 |
| 70 // OCSPStatus enumerates the types of OCSP response that the testserver | 76 // OCSPStatus enumerates the types of OCSP response that the testserver |
| 71 // can produce. | 77 // can produce. |
| 72 enum OCSPStatus { | 78 enum OCSPStatus { |
| 73 OCSP_OK, | 79 OCSP_OK, |
| 74 OCSP_REVOKED, | 80 OCSP_REVOKED, |
| 75 OCSP_INVALID, | 81 OCSP_INVALID, |
| 76 OCSP_UNAUTHORIZED, | 82 OCSP_UNAUTHORIZED, |
| 77 OCSP_UNKNOWN, | 83 OCSP_UNKNOWN, |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 bool no_anonymous_ftp_user_; | 346 bool no_anonymous_ftp_user_; |
| 341 | 347 |
| 342 scoped_ptr<ScopedPortException> allowed_port_; | 348 scoped_ptr<ScopedPortException> allowed_port_; |
| 343 | 349 |
| 344 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 350 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
| 345 }; | 351 }; |
| 346 | 352 |
| 347 } // namespace net | 353 } // namespace net |
| 348 | 354 |
| 349 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 355 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
| OLD | NEW |