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

Unified Diff: net/quic/test_tools/crypto_test_utils.cc

Issue 346323002: net: Implement ChannelIDSourceChromium, which is based on Chromium's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebase Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/test_tools/crypto_test_utils.h ('k') | net/quic/test_tools/crypto_test_utils_chromium.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/crypto_test_utils.cc
===================================================================
--- net/quic/test_tools/crypto_test_utils.cc (revision 280648)
+++ net/quic/test_tools/crypto_test_utils.cc (working copy)
@@ -170,16 +170,20 @@
client_session.config()->SetDefaults();
crypto_config.SetDefaults();
- // TODO(rtenneti): Enable testing of ProofVerifier.
- // if (!options.dont_verify_certs) {
- // crypto_config.SetProofVerifier(ProofVerifierForTesting());
- // }
+ if (!options.dont_verify_certs) {
+ // TODO(wtc): replace this with ProofVerifierForTesting() when we have
+ // a working ProofSourceForTesting().
+ crypto_config.SetProofVerifier(FakeProofVerifierForTesting());
+ }
+ bool is_https = false;
if (options.channel_id_enabled) {
+ is_https = true;
crypto_config.SetChannelIDSource(ChannelIDSourceForTesting());
}
- QuicServerId server_id(kServerHostname, kServerPort, false,
+ QuicServerId server_id(kServerHostname, kServerPort, is_https,
PRIVACY_MODE_DISABLED);
- QuicCryptoClientStream client(server_id, &client_session, NULL,
+ QuicCryptoClientStream client(server_id, &client_session,
+ ProofVerifyContextForTesting(),
&crypto_config);
client_session.SetCryptoStream(&client);
« no previous file with comments | « net/quic/test_tools/crypto_test_utils.h ('k') | net/quic/test_tools/crypto_test_utils_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698