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

Side by Side Diff: net/quic/quic_chromium_client_session_test.cc

Issue 1784903003: Remove FEC from send path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@114770052
Patch Set: Restore accidentally removed OnRttChanged call Created 4 years, 9 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 | net/quic/quic_chromium_client_stream_test.cc » ('j') | 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 #include "net/quic/quic_chromium_client_session.h" 5 #include "net/quic/quic_chromium_client_session.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 361
362 // Migrate session. 362 // Migrate session.
363 EXPECT_TRUE(session_->MigrateToSocket( 363 EXPECT_TRUE(session_->MigrateToSocket(
364 std::move(new_socket), std::move(new_reader), std::move(new_writer))); 364 std::move(new_socket), std::move(new_reader), std::move(new_writer)));
365 365
366 // Write data to session. 366 // Write data to session.
367 struct iovec iov[1]; 367 struct iovec iov[1];
368 iov[0].iov_base = data; 368 iov[0].iov_base = data;
369 iov[0].iov_len = 4; 369 iov[0].iov_len = 4;
370 session_->WritevData(5, QuicIOVector(iov, arraysize(iov), 4), 0, false, 370 session_->WritevData(5, QuicIOVector(iov, arraysize(iov), 4), 0, false,
371 MAY_FEC_PROTECT, nullptr); 371 nullptr);
372 372
373 EXPECT_TRUE(socket_data.AllReadDataConsumed()); 373 EXPECT_TRUE(socket_data.AllReadDataConsumed());
374 EXPECT_TRUE(socket_data.AllWriteDataConsumed()); 374 EXPECT_TRUE(socket_data.AllWriteDataConsumed());
375 } 375 }
376 376
377 TEST_P(QuicChromiumClientSessionTest, MigrateToSocketMaxReaders) { 377 TEST_P(QuicChromiumClientSessionTest, MigrateToSocketMaxReaders) {
378 Initialize(); 378 Initialize();
379 CompleteCryptoHandshake(); 379 CompleteCryptoHandshake();
380 380
381 for (size_t i = 0; i < kMaxReadersPerQuicSession; ++i) { 381 for (size_t i = 0; i < kMaxReadersPerQuicSession; ++i) {
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 session_->connection()->SendPing(); 521 session_->connection()->SendPing();
522 EXPECT_FALSE(session_->connection()->connected()); 522 EXPECT_FALSE(session_->connection()->connected());
523 523
524 EXPECT_TRUE(socket_data.AllReadDataConsumed()); 524 EXPECT_TRUE(socket_data.AllReadDataConsumed());
525 EXPECT_TRUE(socket_data.AllWriteDataConsumed()); 525 EXPECT_TRUE(socket_data.AllWriteDataConsumed());
526 } 526 }
527 527
528 } // namespace 528 } // namespace
529 } // namespace test 529 } // namespace test
530 } // namespace net 530 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_chromium_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698