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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_utils.cc ('k') | net/quic/test_tools/quic_config_peer.h » ('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 5661676c3f588c6738be8db9e0aaf0cf817c1048..d6238bdd7ce0f793974106c5995ec89ef019a643 100644
--- a/net/quic/test_tools/crypto_test_utils.cc
+++ b/net/quic/test_tools/crypto_test_utils.cc
@@ -199,7 +199,7 @@ int CryptoTestUtils::HandshakeWithFakeServer(
server_session.SetCryptoStream(&server);
// The client's handshake must have been started already.
- CHECK_NE(0u, client_conn->packets_.size());
+ CHECK_NE(0u, client_conn->encrypted_packets_.size());
CommunicateHandshakeMessages(client_conn, client, server_conn, &server);
@@ -244,7 +244,7 @@ int CryptoTestUtils::HandshakeWithFakeClient(
client_session.SetCryptoStream(&client);
client.CryptoConnect();
- CHECK_EQ(1u, client_conn->packets_.size());
+ CHECK_EQ(1u, client_conn->encrypted_packets_.size());
CommunicateHandshakeMessagesAndRunCallbacks(
client_conn, &client, server_conn, server, async_channel_id_source);
@@ -295,17 +295,17 @@ void CryptoTestUtils::CommunicateHandshakeMessagesAndRunCallbacks(
CallbackSource* callback_source) {
size_t a_i = 0, b_i = 0;
while (!a->handshake_confirmed()) {
- ASSERT_GT(a_conn->packets_.size(), a_i);
- LOG(INFO) << "Processing " << a_conn->packets_.size() - a_i
- << " packets a->b";
+ ASSERT_GT(a_conn->encrypted_packets_.size(), a_i);
+ VLOG(1) << "Processing " << a_conn->encrypted_packets_.size() - a_i
+ << " packets a->b";
MovePackets(a_conn, &a_i, b, b_conn);
if (callback_source) {
callback_source->RunPendingCallbacks();
}
- ASSERT_GT(b_conn->packets_.size(), b_i);
- LOG(INFO) << "Processing " << b_conn->packets_.size() - b_i
- << " packets b->a";
+ ASSERT_GT(b_conn->encrypted_packets_.size(), b_i);
+ VLOG(1) << "Processing " << b_conn->encrypted_packets_.size() - b_i
+ << " packets b->a";
MovePackets(b_conn, &b_i, a, a_conn);
if (callback_source) {
callback_source->RunPendingCallbacks();
@@ -321,18 +321,18 @@ pair<size_t, size_t> CryptoTestUtils::AdvanceHandshake(
PacketSavingConnection* b_conn,
QuicCryptoStream* b,
size_t b_i) {
- LOG(INFO) << "Processing " << a_conn->packets_.size() - a_i
- << " packets a->b";
+ VLOG(1) << "Processing " << a_conn->encrypted_packets_.size() - a_i
+ << " packets a->b";
MovePackets(a_conn, &a_i, b, b_conn);
- LOG(INFO) << "Processing " << b_conn->packets_.size() - b_i
- << " packets b->a";
- if (b_conn->packets_.size() - b_i == 2) {
- LOG(INFO) << "here";
+ VLOG(1) << "Processing " << b_conn->encrypted_packets_.size() - b_i
+ << " packets b->a";
+ if (b_conn->encrypted_packets_.size() - b_i == 2) {
+ VLOG(1) << "here";
}
MovePackets(b_conn, &b_i, a, a_conn);
- return make_pair(a_i, b_i);
+ return std::make_pair(a_i, b_i);
}
// static
« no previous file with comments | « net/quic/quic_utils.cc ('k') | net/quic/test_tools/quic_config_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698