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

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

Issue 182063002: Add a time based loss detection algorithm to QUIC that loses packets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 439
440 private: 440 private:
441 DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm); 441 DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm);
442 }; 442 };
443 443
444 class MockLossAlgorithm : public LossDetectionInterface { 444 class MockLossAlgorithm : public LossDetectionInterface {
445 public: 445 public:
446 MockLossAlgorithm(); 446 MockLossAlgorithm();
447 virtual ~MockLossAlgorithm(); 447 virtual ~MockLossAlgorithm();
448 448
449 MOCK_METHOD4(DetectLostPackets, 449 MOCK_METHOD5(DetectLostPackets,
450 SequenceNumberSet(const QuicUnackedPacketMap& unacked_packets, 450 SequenceNumberSet(const QuicUnackedPacketMap& unacked_packets,
451 const QuicTime& time, 451 const QuicTime& time,
452 QuicPacketSequenceNumber largest_observed, 452 QuicPacketSequenceNumber largest_observed,
453 QuicTime::Delta srtt)); 453 QuicTime::Delta srtt,
454 QuicTime::Delta latest_rtt));
454 MOCK_CONST_METHOD0(GetLossTimeout, QuicTime()); 455 MOCK_CONST_METHOD0(GetLossTimeout, QuicTime());
455 }; 456 };
456 457
457 class TestEntropyCalculator : 458 class TestEntropyCalculator :
458 public QuicReceivedEntropyHashCalculatorInterface { 459 public QuicReceivedEntropyHashCalculatorInterface {
459 public: 460 public:
460 TestEntropyCalculator(); 461 TestEntropyCalculator();
461 virtual ~TestEntropyCalculator(); 462 virtual ~TestEntropyCalculator();
462 463
463 virtual QuicPacketEntropyHash EntropyHash( 464 virtual QuicPacketEntropyHash EntropyHash(
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 497
497 protected: 498 protected:
498 // Object is ref counted. 499 // Object is ref counted.
499 virtual ~MockAckNotifierDelegate(); 500 virtual ~MockAckNotifierDelegate();
500 }; 501 };
501 502
502 } // namespace test 503 } // namespace test
503 } // namespace net 504 } // namespace net
504 505
505 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 506 #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