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

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

Issue 1981643002: Combine OnCongestionWindowChange and OnRttChange to OnCongestionChange in QuicSentPacketManager::Ne… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@121732198
Patch Set: Created 4 years, 7 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
« 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 <stddef.h> 10 #include <stddef.h>
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 private: 806 private:
807 DISALLOW_COPY_AND_ASSIGN(MockAckListener); 807 DISALLOW_COPY_AND_ASSIGN(MockAckListener);
808 }; 808 };
809 809
810 class MockNetworkChangeVisitor 810 class MockNetworkChangeVisitor
811 : public QuicSentPacketManager::NetworkChangeVisitor { 811 : public QuicSentPacketManager::NetworkChangeVisitor {
812 public: 812 public:
813 MockNetworkChangeVisitor(); 813 MockNetworkChangeVisitor();
814 ~MockNetworkChangeVisitor() override; 814 ~MockNetworkChangeVisitor() override;
815 815
816 MOCK_METHOD0(OnCongestionWindowChange, void()); 816 MOCK_METHOD0(OnCongestionChange, void());
817 MOCK_METHOD0(OnRttChange, void());
818 MOCK_METHOD0(OnPathDegrading, void()); 817 MOCK_METHOD0(OnPathDegrading, void());
819 818
820 private: 819 private:
821 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); 820 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor);
822 }; 821 };
823 822
824 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor { 823 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor {
825 public: 824 public:
826 MockQuicConnectionDebugVisitor(); 825 MockQuicConnectionDebugVisitor();
827 ~MockQuicConnectionDebugVisitor() override; 826 ~MockQuicConnectionDebugVisitor() override;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 TestQuicSpdyServerSession** server_session); 933 TestQuicSpdyServerSession** server_session);
935 934
936 // Helper to generate client side stream ids, generalizes 935 // Helper to generate client side stream ids, generalizes
937 // kClientDataStreamId1 etc. above. 936 // kClientDataStreamId1 etc. above.
938 QuicStreamId QuicClientDataStreamId(int i); 937 QuicStreamId QuicClientDataStreamId(int i);
939 938
940 } // namespace test 939 } // namespace test
941 } // namespace net 940 } // namespace net
942 941
943 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 942 #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