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

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

Issue 1659733003: Remove VisitorShim and move shim behavior into QuicConnection. No (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@112975672
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_session.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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 EXPECT_CALL(*send_algorithm_, HasReliableBandwidthEstimate()) 714 EXPECT_CALL(*send_algorithm_, HasReliableBandwidthEstimate())
715 .Times(AnyNumber()); 715 .Times(AnyNumber());
716 EXPECT_CALL(*send_algorithm_, BandwidthEstimate()) 716 EXPECT_CALL(*send_algorithm_, BandwidthEstimate())
717 .Times(AnyNumber()) 717 .Times(AnyNumber())
718 .WillRepeatedly(Return(QuicBandwidth::Zero())); 718 .WillRepeatedly(Return(QuicBandwidth::Zero()));
719 EXPECT_CALL(*send_algorithm_, InSlowStart()).Times(AnyNumber()); 719 EXPECT_CALL(*send_algorithm_, InSlowStart()).Times(AnyNumber());
720 EXPECT_CALL(*send_algorithm_, InRecovery()).Times(AnyNumber()); 720 EXPECT_CALL(*send_algorithm_, InRecovery()).Times(AnyNumber());
721 EXPECT_CALL(visitor_, WillingAndAbleToWrite()).Times(AnyNumber()); 721 EXPECT_CALL(visitor_, WillingAndAbleToWrite()).Times(AnyNumber());
722 EXPECT_CALL(visitor_, HasPendingHandshake()).Times(AnyNumber()); 722 EXPECT_CALL(visitor_, HasPendingHandshake()).Times(AnyNumber());
723 EXPECT_CALL(visitor_, OnCanWrite()).Times(AnyNumber()); 723 EXPECT_CALL(visitor_, OnCanWrite()).Times(AnyNumber());
724 EXPECT_CALL(visitor_, PostProcessAfterData()).Times(AnyNumber());
724 EXPECT_CALL(visitor_, HasOpenDynamicStreams()) 725 EXPECT_CALL(visitor_, HasOpenDynamicStreams())
725 .WillRepeatedly(Return(false)); 726 .WillRepeatedly(Return(false));
726 EXPECT_CALL(visitor_, OnCongestionWindowChange(_)).Times(AnyNumber()); 727 EXPECT_CALL(visitor_, OnCongestionWindowChange(_)).Times(AnyNumber());
727 728
728 EXPECT_CALL(*loss_algorithm_, GetLossTimeout()) 729 EXPECT_CALL(*loss_algorithm_, GetLossTimeout())
729 .WillRepeatedly(Return(QuicTime::Zero())); 730 .WillRepeatedly(Return(QuicTime::Zero()));
730 if (FLAGS_quic_general_loss_algorithm) { 731 if (FLAGS_quic_general_loss_algorithm) {
731 EXPECT_CALL(*loss_algorithm_, DetectLosses(_, _, _, _)) 732 EXPECT_CALL(*loss_algorithm_, DetectLosses(_, _, _, _))
732 .Times(AnyNumber()); 733 .Times(AnyNumber());
733 } else { 734 } else {
(...skipping 4948 matching lines...) Expand 10 before | Expand all | Expand 10 after
5682 QuicStreamFrame stream_frame(1u, false, 0u, StringPiece()); 5683 QuicStreamFrame stream_frame(1u, false, 0u, StringPiece());
5683 EXPECT_DFATAL(ProcessFramePacket(QuicFrame(&stream_frame)), 5684 EXPECT_DFATAL(ProcessFramePacket(QuicFrame(&stream_frame)),
5684 "Received a packet with multipath flag on when multipath is " 5685 "Received a packet with multipath flag on when multipath is "
5685 "not enabled."); 5686 "not enabled.");
5686 EXPECT_FALSE(connection_.connected()); 5687 EXPECT_FALSE(connection_.connected());
5687 } 5688 }
5688 5689
5689 } // namespace 5690 } // namespace
5690 } // namespace test 5691 } // namespace test
5691 } // namespace net 5692 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698