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

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

Issue 1780573006: Deprecate FLAG_quic_no_unencrypted_fec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116180343
Patch Set: 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_flags.h » ('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_connection.h" 5 #include "net/quic/quic_connection.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 EXPECT_CALL(visitor_, HasOpenDynamicStreams()) 687 EXPECT_CALL(visitor_, HasOpenDynamicStreams())
688 .WillRepeatedly(Return(false)); 688 .WillRepeatedly(Return(false));
689 EXPECT_CALL(visitor_, OnCongestionWindowChange(_)).Times(AnyNumber()); 689 EXPECT_CALL(visitor_, OnCongestionWindowChange(_)).Times(AnyNumber());
690 690
691 EXPECT_CALL(*loss_algorithm_, GetLossTimeout()) 691 EXPECT_CALL(*loss_algorithm_, GetLossTimeout())
692 .WillRepeatedly(Return(QuicTime::Zero())); 692 .WillRepeatedly(Return(QuicTime::Zero()));
693 EXPECT_CALL(*loss_algorithm_, DetectLosses(_, _, _, _)).Times(AnyNumber()); 693 EXPECT_CALL(*loss_algorithm_, DetectLosses(_, _, _, _)).Times(AnyNumber());
694 // TODO(ianswett): Fix QuicConnectionTests so they don't attempt to write 694 // TODO(ianswett): Fix QuicConnectionTests so they don't attempt to write
695 // non-crypto stream data at ENCRYPTION_NONE. 695 // non-crypto stream data at ENCRYPTION_NONE.
696 FLAGS_quic_never_write_unencrypted_data = false; 696 FLAGS_quic_never_write_unencrypted_data = false;
697 FLAGS_quic_no_unencrypted_fec = false;
698 } 697 }
699 698
700 QuicVersion version() { return GetParam().version; } 699 QuicVersion version() { return GetParam().version; }
701 700
702 QuicAckFrame* outgoing_ack() { 701 QuicAckFrame* outgoing_ack() {
703 QuicConnectionPeer::PopulateAckFrame(&connection_, &ack_); 702 QuicConnectionPeer::PopulateAckFrame(&connection_, &ack_);
704 return &ack_; 703 return &ack_;
705 } 704 }
706 705
707 QuicStopWaitingFrame* stop_waiting() { 706 QuicStopWaitingFrame* stop_waiting() {
(...skipping 3955 matching lines...) Expand 10 before | Expand all | Expand 10 after
4663 // result in multiple attempts to close the connection - it will be marked as 4662 // result in multiple attempts to close the connection - it will be marked as
4664 // disconnected after the first call. 4663 // disconnected after the first call.
4665 EXPECT_CALL(visitor_, OnConnectionClosed(_, _)).Times(1); 4664 EXPECT_CALL(visitor_, OnConnectionClosed(_, _)).Times(1);
4666 connection_.SendConnectionCloseWithDetails(QUIC_NO_ERROR, "no reason"); 4665 connection_.SendConnectionCloseWithDetails(QUIC_NO_ERROR, "no reason");
4667 connection_.SendConnectionCloseWithDetails(QUIC_NO_ERROR, "no reason"); 4666 connection_.SendConnectionCloseWithDetails(QUIC_NO_ERROR, "no reason");
4668 } 4667 }
4669 4668
4670 } // namespace 4669 } // namespace
4671 } // namespace test 4670 } // namespace test
4672 } // namespace net 4671 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698