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

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

Issue 400813002: Cleanup and adding GetCongestionControlType. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/test_tools/quic_sent_packet_manager_peer.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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 QuicTime::Delta(QuicTime now, 458 QuicTime::Delta(QuicTime now,
459 QuicByteCount bytes_in_flight, 459 QuicByteCount bytes_in_flight,
460 HasRetransmittableData)); 460 HasRetransmittableData));
461 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); 461 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void));
462 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool()); 462 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool());
463 MOCK_METHOD1(OnRttUpdated, void(QuicPacketSequenceNumber)); 463 MOCK_METHOD1(OnRttUpdated, void(QuicPacketSequenceNumber));
464 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); 464 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void));
465 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount()); 465 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount());
466 MOCK_CONST_METHOD0(InSlowStart, bool()); 466 MOCK_CONST_METHOD0(InSlowStart, bool());
467 MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount()); 467 MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount());
468 MOCK_CONST_METHOD0(GetCongestionControlType, CongestionControlType());
468 469
469 private: 470 private:
470 DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm); 471 DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm);
471 }; 472 };
472 473
473 class MockLossAlgorithm : public LossDetectionInterface { 474 class MockLossAlgorithm : public LossDetectionInterface {
474 public: 475 public:
475 MockLossAlgorithm(); 476 MockLossAlgorithm();
476 virtual ~MockLossAlgorithm(); 477 virtual ~MockLossAlgorithm();
477 478
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 MOCK_METHOD1(OnCongestionWindowChange, void(QuicByteCount)); 541 MOCK_METHOD1(OnCongestionWindowChange, void(QuicByteCount));
541 542
542 private: 543 private:
543 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); 544 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor);
544 }; 545 };
545 546
546 } // namespace test 547 } // namespace test
547 } // namespace net 548 } // namespace net
548 549
549 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 550 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_sent_packet_manager_peer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698