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

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

Issue 242593002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Use uint32 instead of int Created 6 years, 8 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/tools/quic/quic_server_session_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_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 7 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
8 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 8 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 virtual ~MockQuicServerSessionVisitor(); 140 virtual ~MockQuicServerSessionVisitor();
141 MOCK_METHOD2(OnConnectionClosed, void(QuicConnectionId connection_id, 141 MOCK_METHOD2(OnConnectionClosed, void(QuicConnectionId connection_id,
142 QuicErrorCode error)); 142 QuicErrorCode error));
143 MOCK_METHOD1(OnWriteBlocked, void(QuicBlockedWriterInterface* writer)); 143 MOCK_METHOD1(OnWriteBlocked, void(QuicBlockedWriterInterface* writer));
144 }; 144 };
145 145
146 class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface { 146 class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface {
147 public: 147 public:
148 MockAckNotifierDelegate(); 148 MockAckNotifierDelegate();
149 149
150 MOCK_METHOD4(OnAckNotification, void(int num_original_packets, 150 MOCK_METHOD5(OnAckNotification, void(int num_original_packets,
151 int num_original_bytes, 151 int num_original_bytes,
152 int num_retransmitted_packets, 152 int num_retransmitted_packets,
153 int num_retransmitted_bytes)); 153 int num_retransmitted_bytes,
154 QuicTime::Delta delta_largest_observed));
154 155
155 protected: 156 protected:
156 // Object is ref counted. 157 // Object is ref counted.
157 virtual ~MockAckNotifierDelegate(); 158 virtual ~MockAckNotifierDelegate();
158 }; 159 };
159 160
160 } // namespace test 161 } // namespace test
161 } // namespace tools 162 } // namespace tools
162 } // namespace net 163 } // namespace net
163 164
164 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 165 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server_session_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698