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 and has | |
70 // 127.0.0.1 as its host name. | |
palmer
2015/07/27 23:56:18
Do you mean "...127.0.0.1 as its IP address"? The
Bhanu Dev
2015/07/30 02:39:10
The server's actual hostname is "127.0.0.1". A |Mo
| |
71 CERT_EXAMPLE_DOMAIN, | |
72 | |
73 // This server has a valid certificate for www.example.com and | |
74 // has 127.0.0.1 as its host name. | |
palmer
2015/07/27 23:56:18
As above.
Bhanu Dev
2015/07/30 02:39:11
Done.
| |
75 CERT_WWW_EXAMPLE_DOMAIN, | |
68 }; | 76 }; |
69 | 77 |
70 // OCSPStatus enumerates the types of OCSP response that the testserver | 78 // OCSPStatus enumerates the types of OCSP response that the testserver |
71 // can produce. | 79 // can produce. |
72 enum OCSPStatus { | 80 enum OCSPStatus { |
73 OCSP_OK, | 81 OCSP_OK, |
74 OCSP_REVOKED, | 82 OCSP_REVOKED, |
75 OCSP_INVALID, | 83 OCSP_INVALID, |
76 OCSP_UNAUTHORIZED, | 84 OCSP_UNAUTHORIZED, |
77 OCSP_UNKNOWN, | 85 OCSP_UNKNOWN, |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
340 bool no_anonymous_ftp_user_; | 348 bool no_anonymous_ftp_user_; |
341 | 349 |
342 scoped_ptr<ScopedPortException> allowed_port_; | 350 scoped_ptr<ScopedPortException> allowed_port_; |
343 | 351 |
344 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 352 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
345 }; | 353 }; |
346 | 354 |
347 } // namespace net | 355 } // namespace net |
348 | 356 |
349 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 357 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
OLD | NEW |