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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 CERT_EXPIRED, | 60 CERT_EXPIRED, |
61 // Cross-signed certificate to test PKIX path building. Contains an | 61 // Cross-signed certificate to test PKIX path building. Contains an |
62 // intermediate cross-signed by an unknown root, while the client (via | 62 // intermediate cross-signed by an unknown root, while the client (via |
63 // TestRootStore) is expected to have a self-signed version of the | 63 // TestRootStore) is expected to have a self-signed version of the |
64 // intermediate. | 64 // intermediate. |
65 CERT_CHAIN_WRONG_ROOT, | 65 CERT_CHAIN_WRONG_ROOT, |
66 | 66 |
67 // Causes the testserver to use a hostname that is a domain | 67 // Causes the testserver to use a hostname that is a domain |
68 // instead of an IP. | 68 // instead of an IP. |
69 CERT_COMMON_NAME_IS_DOMAIN, | 69 CERT_COMMON_NAME_IS_DOMAIN, |
| 70 |
| 71 // A certificate with invalid notBefore and notAfter times. Windows' |
| 72 // certificate library will not parse this certificate. |
| 73 CERT_BAD_VALIDITY, |
70 }; | 74 }; |
71 | 75 |
72 // OCSPStatus enumerates the types of OCSP response that the testserver | 76 // OCSPStatus enumerates the types of OCSP response that the testserver |
73 // can produce. | 77 // can produce. |
74 enum OCSPStatus { | 78 enum OCSPStatus { |
75 OCSP_OK, | 79 OCSP_OK, |
76 OCSP_REVOKED, | 80 OCSP_REVOKED, |
77 OCSP_INVALID, | 81 OCSP_INVALID, |
78 OCSP_UNAUTHORIZED, | 82 OCSP_UNAUTHORIZED, |
79 OCSP_UNKNOWN, | 83 OCSP_UNKNOWN, |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 bool no_anonymous_ftp_user_; | 349 bool no_anonymous_ftp_user_; |
346 | 350 |
347 scoped_ptr<ScopedPortException> allowed_port_; | 351 scoped_ptr<ScopedPortException> allowed_port_; |
348 | 352 |
349 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 353 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
350 }; | 354 }; |
351 | 355 |
352 } // namespace net | 356 } // namespace net |
353 | 357 |
354 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 358 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
OLD | NEW |