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

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

Issue 737153002: Preparation for Chrome experiment to enable bandwidth resumption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SentPacketManager_to_pass_in_HAS_RETRANSMITTABLE_DATA_80171666
Patch Set: Created 6 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_time.h ('k') | net/tools/quic/quic_server_session.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 // 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 MOCK_CONST_METHOD0(PacingRate, QuicBandwidth(void)); 475 MOCK_CONST_METHOD0(PacingRate, QuicBandwidth(void));
476 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); 476 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void));
477 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool()); 477 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool());
478 MOCK_METHOD1(OnRttUpdated, void(QuicPacketSequenceNumber)); 478 MOCK_METHOD1(OnRttUpdated, void(QuicPacketSequenceNumber));
479 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); 479 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void));
480 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount()); 480 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount());
481 MOCK_CONST_METHOD0(InSlowStart, bool()); 481 MOCK_CONST_METHOD0(InSlowStart, bool());
482 MOCK_CONST_METHOD0(InRecovery, bool()); 482 MOCK_CONST_METHOD0(InRecovery, bool());
483 MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount()); 483 MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount());
484 MOCK_CONST_METHOD0(GetCongestionControlType, CongestionControlType()); 484 MOCK_CONST_METHOD0(GetCongestionControlType, CongestionControlType());
485 MOCK_METHOD1(ResumeConnectionState, void(const CachedNetworkParameters&));
485 486
486 private: 487 private:
487 DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm); 488 DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm);
488 }; 489 };
489 490
490 class MockLossAlgorithm : public LossDetectionInterface { 491 class MockLossAlgorithm : public LossDetectionInterface {
491 public: 492 public:
492 MockLossAlgorithm(); 493 MockLossAlgorithm();
493 ~MockLossAlgorithm() override; 494 ~MockLossAlgorithm() override;
494 495
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 // clears the pointer to it to prevent use-after-free. 597 // clears the pointer to it to prevent use-after-free.
597 void Unregister(PerConnectionPacketWriter* writer); 598 void Unregister(PerConnectionPacketWriter* writer);
598 599
599 PerConnectionPacketWriter* current_writer_; 600 PerConnectionPacketWriter* current_writer_;
600 }; 601 };
601 602
602 } // namespace test 603 } // namespace test
603 } // namespace net 604 } // namespace net
604 605
605 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 606 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/quic_time.h ('k') | net/tools/quic/quic_server_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698