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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
54 // by "Testing CA" (see net/data/ssl/certificates/ocsp-test-root.pem). | 54 // by "Testing CA" (see net/data/ssl/certificates/ocsp-test-root.pem). |
55 CERT_AUTO, | 55 CERT_AUTO, |
56 | 56 |
57 CERT_MISMATCHED_NAME, | 57 CERT_MISMATCHED_NAME, |
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 | |
65 // Causes the testserver to use a hostname that is a domain | |
66 // instead of an IP. | |
67 CERT_COMMON_NAME_IS_DOMAIN, | |
Ryan Sleevi
2015/04/04 00:35:24
So unlike 57-63, this isn't an error case.
How ab
estark
2015/04/06 16:41:13
Done.
| |
64 }; | 68 }; |
65 | 69 |
66 // OCSPStatus enumerates the types of OCSP response that the testserver | 70 // OCSPStatus enumerates the types of OCSP response that the testserver |
67 // can produce. | 71 // can produce. |
68 enum OCSPStatus { | 72 enum OCSPStatus { |
69 OCSP_OK, | 73 OCSP_OK, |
70 OCSP_REVOKED, | 74 OCSP_REVOKED, |
71 OCSP_INVALID, | 75 OCSP_INVALID, |
72 OCSP_UNAUTHORIZED, | 76 OCSP_UNAUTHORIZED, |
73 OCSP_UNKNOWN, | 77 OCSP_UNKNOWN, |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
327 bool ws_basic_auth_; | 331 bool ws_basic_auth_; |
328 | 332 |
329 scoped_ptr<ScopedPortException> allowed_port_; | 333 scoped_ptr<ScopedPortException> allowed_port_; |
330 | 334 |
331 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 335 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
332 }; | 336 }; |
333 | 337 |
334 } // namespace net | 338 } // namespace net |
335 | 339 |
336 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 340 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
OLD | NEW |