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

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

Issue 125253004: Simplify RTO interaction between the QUIC sent packet manager and the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 MOCK_METHOD3(OnIncomingQuicCongestionFeedbackFrame, 402 MOCK_METHOD3(OnIncomingQuicCongestionFeedbackFrame,
403 void(const QuicCongestionFeedbackFrame&, 403 void(const QuicCongestionFeedbackFrame&,
404 QuicTime feedback_receive_time, 404 QuicTime feedback_receive_time,
405 const SentPacketsMap&)); 405 const SentPacketsMap&));
406 MOCK_METHOD3(OnPacketAcked, 406 MOCK_METHOD3(OnPacketAcked,
407 void(QuicPacketSequenceNumber, QuicByteCount, QuicTime::Delta)); 407 void(QuicPacketSequenceNumber, QuicByteCount, QuicTime::Delta));
408 MOCK_METHOD2(OnPacketLost, void(QuicPacketSequenceNumber, QuicTime)); 408 MOCK_METHOD2(OnPacketLost, void(QuicPacketSequenceNumber, QuicTime));
409 MOCK_METHOD5(OnPacketSent, 409 MOCK_METHOD5(OnPacketSent,
410 bool(QuicTime sent_time, QuicPacketSequenceNumber, QuicByteCount, 410 bool(QuicTime sent_time, QuicPacketSequenceNumber, QuicByteCount,
411 TransmissionType, HasRetransmittableData)); 411 TransmissionType, HasRetransmittableData));
412 MOCK_METHOD0(OnRetransmissionTimeout, void()); 412 MOCK_METHOD1(OnRetransmissionTimeout, void(bool));
413 MOCK_METHOD2(OnPacketAbandoned, void(QuicPacketSequenceNumber sequence_number, 413 MOCK_METHOD2(OnPacketAbandoned, void(QuicPacketSequenceNumber sequence_number,
414 QuicByteCount abandoned_bytes)); 414 QuicByteCount abandoned_bytes));
415 MOCK_METHOD4(TimeUntilSend, QuicTime::Delta(QuicTime now, TransmissionType, 415 MOCK_METHOD4(TimeUntilSend, QuicTime::Delta(QuicTime now, TransmissionType,
416 HasRetransmittableData, 416 HasRetransmittableData,
417 IsHandshake)); 417 IsHandshake));
418 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); 418 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void));
419 MOCK_CONST_METHOD0(SmoothedRtt, QuicTime::Delta(void)); 419 MOCK_CONST_METHOD0(SmoothedRtt, QuicTime::Delta(void));
420 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); 420 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void));
421 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount()); 421 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount());
422 422
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 MockAckNotifierDelegate(); 463 MockAckNotifierDelegate();
464 virtual ~MockAckNotifierDelegate(); 464 virtual ~MockAckNotifierDelegate();
465 465
466 MOCK_METHOD0(OnAckNotification, void()); 466 MOCK_METHOD0(OnAckNotification, void());
467 }; 467 };
468 468
469 } // namespace test 469 } // namespace test
470 } // namespace net 470 } // namespace net
471 471
472 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 472 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698