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

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

Issue 798873005: Remove unused original transmission stats from QuicAckNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@removing_quic_version_21_83551025
Patch Set: Created 5 years, 11 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/tools/quic/end_to_end_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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 void(QuicConnectionId connection_id)); 163 void(QuicConnectionId connection_id));
164 164
165 private: 165 private:
166 DISALLOW_COPY_AND_ASSIGN(MockQuicServerSessionVisitor); 166 DISALLOW_COPY_AND_ASSIGN(MockQuicServerSessionVisitor);
167 }; 167 };
168 168
169 class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface { 169 class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface {
170 public: 170 public:
171 MockAckNotifierDelegate(); 171 MockAckNotifierDelegate();
172 172
173 MOCK_METHOD5(OnAckNotification, void(int num_original_packets, 173 MOCK_METHOD3(OnAckNotification,
174 int num_original_bytes, 174 void(int num_retransmitted_packets,
175 int num_retransmitted_packets, 175 int num_retransmitted_bytes,
176 int num_retransmitted_bytes, 176 QuicTime::Delta delta_largest_observed));
177 QuicTime::Delta delta_largest_observed));
178 177
179 protected: 178 protected:
180 // Object is ref counted. 179 // Object is ref counted.
181 virtual ~MockAckNotifierDelegate(); 180 virtual ~MockAckNotifierDelegate();
182 181
183 DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate); 182 DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate);
184 }; 183 };
185 184
186 // Creates per-connection packet writers that register themselves with the 185 // Creates per-connection packet writers that register themselves with the
187 // TestWriterFactory on each write so that TestWriterFactory::OnPacketSent can 186 // TestWriterFactory on each write so that TestWriterFactory::OnPacketSent can
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 void Unregister(PerConnectionPacketWriter* writer); 219 void Unregister(PerConnectionPacketWriter* writer);
221 220
222 PerConnectionPacketWriter* current_writer_; 221 PerConnectionPacketWriter* current_writer_;
223 }; 222 };
224 223
225 } // namespace test 224 } // namespace test
226 } // namespace tools 225 } // namespace tools
227 } // namespace net 226 } // namespace net
228 227
229 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 228 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698