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

Side by Side Diff: net/quic/test_tools/crypto_test_utils.h

Issue 2676343004: Remove two undefined ProofSourceForTesting. (Closed)
Patch Set: Created 3 years, 10 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_
6 #define NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ 6 #define NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_
7 7
8 #include <cstdarg> 8 #include <cstdarg>
9 #include <cstddef> 9 #include <cstddef>
10 #include <cstdint> 10 #include <cstdint>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 PacketSavingConnection* server_conn, 132 PacketSavingConnection* server_conn,
133 QuicCryptoStream* server, 133 QuicCryptoStream* server,
134 size_t server_i); 134 size_t server_i);
135 135
136 // Returns the value for the tag |tag| in the tag value map of |message|. 136 // Returns the value for the tag |tag| in the tag value map of |message|.
137 std::string GetValueForTag(const CryptoHandshakeMessage& message, QuicTag tag); 137 std::string GetValueForTag(const CryptoHandshakeMessage& message, QuicTag tag);
138 138
139 // Returns a new |ProofSource| that serves up test certificates. 139 // Returns a new |ProofSource| that serves up test certificates.
140 std::unique_ptr<ProofSource> ProofSourceForTesting(); 140 std::unique_ptr<ProofSource> ProofSourceForTesting();
141 141
142 // Identical to |ProofSourceForTesting|, with the addition of setting
143 // the |emit_expect_ct_header| field on the test certificates
144 // to be the value of |send_expect_ct_header|.
145 std::unique_ptr<ProofSource> ProofSourceForTesting(bool send_expect_ct_header);
146
147 // Identical to |ProofSourceForTesting| but permitting the caller to specify
148 // the certs that will be loaded.
149 std::unique_ptr<ProofSource> ProofSourceForTesting(
150 const std::vector<std::string>& certs);
151
152 // Returns a new |ProofVerifier| that uses the QUIC testing root CA. 142 // Returns a new |ProofVerifier| that uses the QUIC testing root CA.
153 std::unique_ptr<ProofVerifier> ProofVerifierForTesting(); 143 std::unique_ptr<ProofVerifier> ProofVerifierForTesting();
154 144
155 // Returns a hash of the leaf test certificate. 145 // Returns a hash of the leaf test certificate.
156 uint64_t LeafCertHashForTesting(); 146 uint64_t LeafCertHashForTesting();
157 147
158 // Returns a |ProofVerifyContext| that must be used with the verifier 148 // Returns a |ProofVerifyContext| that must be used with the verifier
159 // returned by |ProofVerifierForTesting|. 149 // returned by |ProofVerifierForTesting|.
160 ProofVerifyContext* ProofVerifyContextForTesting(); 150 ProofVerifyContext* ProofVerifyContextForTesting();
161 151
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // Return a CHLO PUBS in hexadecimal. 226 // Return a CHLO PUBS in hexadecimal.
237 std::string GenerateClientPublicValuesHex(); 227 std::string GenerateClientPublicValuesHex();
238 228
239 } // namespace crypto_test_utils 229 } // namespace crypto_test_utils
240 230
241 } // namespace test 231 } // namespace test
242 232
243 } // namespace net 233 } // namespace net
244 234
245 #endif // NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ 235 #endif // NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698