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

Side by Side Diff: net/quic/test_tools/quic_test_utils.h

Issue 1435553004: Add OnConnectionMigration method to QuicSentPacketManager. Add OnConnectionMigration interface to S… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106845785
Patch Set: Created 5 years, 1 month 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_sent_packet_manager.cc ('k') | no next file » | 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 // Common utilities for Quic tests 5 // Common utilities for Quic tests
6 6
7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 QuicByteCount bytes_in_flight, 538 QuicByteCount bytes_in_flight,
539 const CongestionVector& acked_packets, 539 const CongestionVector& acked_packets,
540 const CongestionVector& lost_packets)); 540 const CongestionVector& lost_packets));
541 MOCK_METHOD5(OnPacketSent, 541 MOCK_METHOD5(OnPacketSent,
542 bool(QuicTime, 542 bool(QuicTime,
543 QuicByteCount, 543 QuicByteCount,
544 QuicPacketNumber, 544 QuicPacketNumber,
545 QuicByteCount, 545 QuicByteCount,
546 HasRetransmittableData)); 546 HasRetransmittableData));
547 MOCK_METHOD1(OnRetransmissionTimeout, void(bool)); 547 MOCK_METHOD1(OnRetransmissionTimeout, void(bool));
548 MOCK_METHOD0(OnConnectionMigration, void());
548 MOCK_METHOD0(RevertRetransmissionTimeout, void()); 549 MOCK_METHOD0(RevertRetransmissionTimeout, void());
549 MOCK_CONST_METHOD3(TimeUntilSend, 550 MOCK_CONST_METHOD3(TimeUntilSend,
550 QuicTime::Delta(QuicTime now, 551 QuicTime::Delta(QuicTime now,
551 QuicByteCount bytes_in_flight, 552 QuicByteCount bytes_in_flight,
552 HasRetransmittableData)); 553 HasRetransmittableData));
553 MOCK_CONST_METHOD0(PacingRate, QuicBandwidth(void)); 554 MOCK_CONST_METHOD0(PacingRate, QuicBandwidth(void));
554 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); 555 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void));
555 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool()); 556 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool());
556 MOCK_METHOD1(OnRttUpdated, void(QuicPacketNumber)); 557 MOCK_METHOD1(OnRttUpdated, void(QuicPacketNumber));
557 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); 558 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void));
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 TestQuicSpdyServerSession** server_session); 770 TestQuicSpdyServerSession** server_session);
770 771
771 // Helper to generate client side stream ids, generalizes 772 // Helper to generate client side stream ids, generalizes
772 // kClientDataStreamId1 etc. above. 773 // kClientDataStreamId1 etc. above.
773 QuicStreamId QuicClientDataStreamId(int i); 774 QuicStreamId QuicClientDataStreamId(int i);
774 775
775 } // namespace test 776 } // namespace test
776 } // namespace net 777 } // namespace net
777 778
778 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 779 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698