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

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

Issue 2540143003: Allow congestion controller state to be accessed by the debug visitors. (Closed)
Patch Set: Created 4 years 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/core/quic_sent_packet_manager_interface.h ('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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 MOCK_CONST_METHOD0(IsHandshakeConfirmed, bool(void)); 943 MOCK_CONST_METHOD0(IsHandshakeConfirmed, bool(void));
944 MOCK_METHOD1(SetDebugDelegate, void(DebugDelegate*)); 944 MOCK_METHOD1(SetDebugDelegate, void(DebugDelegate*));
945 MOCK_CONST_METHOD1(GetLargestObserved, QuicPacketNumber(QuicPathId)); 945 MOCK_CONST_METHOD1(GetLargestObserved, QuicPacketNumber(QuicPathId));
946 MOCK_CONST_METHOD1(GetLargestSentPacket, QuicPacketNumber(QuicPathId)); 946 MOCK_CONST_METHOD1(GetLargestSentPacket, QuicPacketNumber(QuicPathId));
947 MOCK_CONST_METHOD1(GetLeastPacketAwaitedByPeer, QuicPacketNumber(QuicPathId)); 947 MOCK_CONST_METHOD1(GetLeastPacketAwaitedByPeer, QuicPacketNumber(QuicPathId));
948 MOCK_METHOD1(SetNetworkChangeVisitor, void(NetworkChangeVisitor*)); 948 MOCK_METHOD1(SetNetworkChangeVisitor, void(NetworkChangeVisitor*));
949 MOCK_CONST_METHOD0(InSlowStart, bool(void)); 949 MOCK_CONST_METHOD0(InSlowStart, bool(void));
950 MOCK_CONST_METHOD0(GetConsecutiveRtoCount, size_t(void)); 950 MOCK_CONST_METHOD0(GetConsecutiveRtoCount, size_t(void));
951 MOCK_CONST_METHOD0(GetConsecutiveTlpCount, size_t(void)); 951 MOCK_CONST_METHOD0(GetConsecutiveTlpCount, size_t(void));
952 MOCK_METHOD0(OnApplicationLimited, void(void)); 952 MOCK_METHOD0(OnApplicationLimited, void(void));
953 MOCK_CONST_METHOD0(GetSendAlgorithm, const SendAlgorithmInterface*(void));
953 }; 954 };
954 955
955 class MockConnectionCloseDelegate 956 class MockConnectionCloseDelegate
956 : public QuicConnectionCloseDelegateInterface { 957 : public QuicConnectionCloseDelegateInterface {
957 public: 958 public:
958 MockConnectionCloseDelegate(); 959 MockConnectionCloseDelegate();
959 ~MockConnectionCloseDelegate() override; 960 ~MockConnectionCloseDelegate() override;
960 961
961 MOCK_METHOD3(OnUnrecoverableError, 962 MOCK_METHOD3(OnUnrecoverableError,
962 void(QuicErrorCode, 963 void(QuicErrorCode,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 iov->iov_base = const_cast<char*>(str.data()); 1056 iov->iov_base = const_cast<char*>(str.data());
1056 iov->iov_len = static_cast<size_t>(str.size()); 1057 iov->iov_len = static_cast<size_t>(str.size());
1057 QuicIOVector quic_iov(iov, 1, str.size()); 1058 QuicIOVector quic_iov(iov, 1, str.size());
1058 return quic_iov; 1059 return quic_iov;
1059 } 1060 }
1060 1061
1061 } // namespace test 1062 } // namespace test
1062 } // namespace net 1063 } // namespace net
1063 1064
1064 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 1065 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_sent_packet_manager_interface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698