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

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

Issue 303933002: WTC: Started port of patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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
Index: net/quic/test_tools/crypto_test_utils.cc
===================================================================
--- net/quic/test_tools/crypto_test_utils.cc (revision 271770)
+++ net/quic/test_tools/crypto_test_utils.cc (working copy)
@@ -175,7 +175,7 @@
// crypto_config.SetProofVerifier(ProofVerifierForTesting());
// }
if (options.channel_id_enabled) {
- crypto_config.SetChannelIDSigner(ChannelIDSignerForTesting());
+ crypto_config.SetChannelIDSource(ChannelIDSourceForTesting());
}
QuicServerId server_id(kServerHostname, kServerPort, false,
PRIVACY_MODE_DISABLED);
@@ -191,9 +191,11 @@
CompareClientAndServerKeys(&client, server);
if (options.channel_id_enabled) {
- EXPECT_EQ(
- crypto_config.channel_id_signer()->GetKeyForHostname(kServerHostname),
- server->crypto_negotiated_params().channel_id);
+ scoped_ptr<ChannelIDKey> channel_id_key;
+ EXPECT_TRUE(crypto_config.channel_id_source()->GetChannelIDKey(
+ kServerHostname, &channel_id_key));
+ EXPECT_EQ(channel_id_key->SerializeKey(),
+ server->crypto_negotiated_params().channel_id);
}
return client.num_sent_client_hellos();

Powered by Google App Engine
This is Rietveld 408576698