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

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

Issue 198353003: Land Recent QUIC Changes (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/test_tools/quic_test_utils.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_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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 virtual ~MockQuicServerSessionVisitor(); 139 virtual ~MockQuicServerSessionVisitor();
140 MOCK_METHOD2(OnConnectionClosed, void(QuicConnectionId connection_id, 140 MOCK_METHOD2(OnConnectionClosed, void(QuicConnectionId connection_id,
141 QuicErrorCode error)); 141 QuicErrorCode error));
142 MOCK_METHOD1(OnWriteBlocked, void(QuicBlockedWriterInterface* writer)); 142 MOCK_METHOD1(OnWriteBlocked, void(QuicBlockedWriterInterface* writer));
143 }; 143 };
144 144
145 class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface { 145 class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface {
146 public: 146 public:
147 MockAckNotifierDelegate(); 147 MockAckNotifierDelegate();
148 148
149 MOCK_METHOD0(OnAckNotification, void()); 149 MOCK_METHOD4(OnAckNotification, void(int num_original_packets,
150 int num_original_bytes,
151 int num_retransmitted_packets,
152 int num_retransmitted_bytes));
150 153
151 protected: 154 protected:
152 // Object is ref counted. 155 // Object is ref counted.
153 virtual ~MockAckNotifierDelegate(); 156 virtual ~MockAckNotifierDelegate();
154 }; 157 };
155 158
156 } // namespace test 159 } // namespace test
157 } // namespace tools 160 } // namespace tools
158 } // namespace net 161 } // namespace net
159 162
160 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 163 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698