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

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

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format Created 3 years, 8 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/quartc/quartc_stream_test.cc ('k') | net/quic/test_tools/quic_connection_peer.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
diff --git a/net/quic/test_tools/crypto_test_utils.cc b/net/quic/test_tools/crypto_test_utils.cc
index 8d28de7803235d8bece788751533552e8b4823dd..08b29490d9d7ab206fc2ae697f3bc103c5a504e2 100644
--- a/net/quic/test_tools/crypto_test_utils.cc
+++ b/net/quic/test_tools/crypto_test_utils.cc
@@ -403,8 +403,8 @@ int HandshakeWithFakeServer(QuicConfig* server_quic_config,
CHECK_NE(0u, client_conn->encrypted_packets_.size());
CommunicateHandshakeMessages(client_conn, client, server_conn,
- server_session.GetCryptoStream());
- CompareClientAndServerKeys(client, server_session.GetCryptoStream());
+ server_session.GetMutableCryptoStream());
+ CompareClientAndServerKeys(client, server_session.GetMutableCryptoStream());
return client->num_sent_client_hellos();
}
@@ -438,15 +438,15 @@ int HandshakeWithFakeClient(MockQuicConnectionHelper* helper,
EXPECT_CALL(client_session, OnProofValid(testing::_))
.Times(testing::AnyNumber());
- client_session.GetCryptoStream()->CryptoConnect();
+ client_session.GetMutableCryptoStream()->CryptoConnect();
CHECK_EQ(1u, client_conn->encrypted_packets_.size());
CommunicateHandshakeMessagesAndRunCallbacks(
- client_conn, client_session.GetCryptoStream(), server_conn, server,
+ client_conn, client_session.GetMutableCryptoStream(), server_conn, server,
async_channel_id_source);
if (server->handshake_confirmed() && server->encryption_established()) {
- CompareClientAndServerKeys(client_session.GetCryptoStream(), server);
+ CompareClientAndServerKeys(client_session.GetMutableCryptoStream(), server);
if (options.channel_id_enabled) {
std::unique_ptr<ChannelIDKey> channel_id_key;
« no previous file with comments | « net/quic/quartc/quartc_stream_test.cc ('k') | net/quic/test_tools/quic_connection_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698