Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: net/test/spawned_test_server/base_test_server.h

Issue 2388393002: Add unittests of HTTPS loading that requires AIA fetching. (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // Container for various options to control how the HTTPS or WSS server is 52 // Container for various options to control how the HTTPS or WSS server is
53 // initialized. 53 // initialized.
54 struct SSLOptions { 54 struct SSLOptions {
55 enum ServerCertificate { 55 enum ServerCertificate {
56 CERT_OK, 56 CERT_OK,
57 57
58 // CERT_AUTO causes the testserver to generate a test certificate issued 58 // CERT_AUTO causes the testserver to generate a test certificate issued
59 // by "Testing CA" (see net/data/ssl/certificates/ocsp-test-root.pem). 59 // by "Testing CA" (see net/data/ssl/certificates/ocsp-test-root.pem).
60 CERT_AUTO, 60 CERT_AUTO,
61 // Generate an intermediate cert issued by "Testing CA", and generate a
62 // test certificate issued by that intermediate with an AIA record for
63 // retrieving the intermediate.
64 CERT_AUTO_AIA_INTERMEDIATE,
61 65
62 CERT_MISMATCHED_NAME, 66 CERT_MISMATCHED_NAME,
63 CERT_EXPIRED, 67 CERT_EXPIRED,
64 // Cross-signed certificate to test PKIX path building. Contains an 68 // Cross-signed certificate to test PKIX path building. Contains an
65 // intermediate cross-signed by an unknown root, while the client (via 69 // intermediate cross-signed by an unknown root, while the client (via
66 // TestRootStore) is expected to have a self-signed version of the 70 // TestRootStore) is expected to have a self-signed version of the
67 // intermediate. 71 // intermediate.
68 CERT_CHAIN_WRONG_ROOT, 72 CERT_CHAIN_WRONG_ROOT,
69 73
70 // Causes the testserver to use a hostname that is a domain 74 // Causes the testserver to use a hostname that is a domain
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 bool no_anonymous_ftp_user_; 421 bool no_anonymous_ftp_user_;
418 422
419 std::unique_ptr<ScopedPortException> allowed_port_; 423 std::unique_ptr<ScopedPortException> allowed_port_;
420 424
421 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); 425 DISALLOW_COPY_AND_ASSIGN(BaseTestServer);
422 }; 426 };
423 427
424 } // namespace net 428 } // namespace net
425 429
426 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ 430 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_
OLDNEW
« no previous file with comments | « net/data/ssl/certificates/ocsp-test-root.pem ('k') | net/test/spawned_test_server/base_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698