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

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

Issue 411823002: Land Recent QUIC Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase TOT Created 6 years, 4 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/quic_dispatcher.cc ('k') | net/tools/quic/test_tools/quic_test_utils.cc » ('j') | 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 void ReallyProcessUdpPacket(const IPEndPoint& self_address, 81 void ReallyProcessUdpPacket(const IPEndPoint& self_address,
82 const IPEndPoint& peer_address, 82 const IPEndPoint& peer_address,
83 const QuicEncryptedPacket& packet) { 83 const QuicEncryptedPacket& packet) {
84 return QuicConnection::ProcessUdpPacket(self_address, peer_address, packet); 84 return QuicConnection::ProcessUdpPacket(self_address, peer_address, packet);
85 } 85 }
86 86
87 virtual bool OnProtocolVersionMismatch(QuicVersion version) { return false; } 87 virtual bool OnProtocolVersionMismatch(QuicVersion version) { return false; }
88 88
89 private: 89 private:
90 scoped_ptr<QuicPacketWriter> writer_;
91 scoped_ptr<QuicConnectionHelperInterface> helper_; 90 scoped_ptr<QuicConnectionHelperInterface> helper_;
92 91
93 DISALLOW_COPY_AND_ASSIGN(MockConnection); 92 DISALLOW_COPY_AND_ASSIGN(MockConnection);
94 }; 93 };
95 94
96 class TestSession : public QuicSession { 95 class TestSession : public QuicSession {
97 public: 96 public:
98 TestSession(QuicConnection* connection, const QuicConfig& config); 97 TestSession(QuicConnection* connection, const QuicConfig& config);
99 virtual ~TestSession(); 98 virtual ~TestSession();
100 99
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 virtual ~MockAckNotifierDelegate(); 156 virtual ~MockAckNotifierDelegate();
158 157
159 DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate); 158 DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate);
160 }; 159 };
161 160
162 } // namespace test 161 } // namespace test
163 } // namespace tools 162 } // namespace tools
164 } // namespace net 163 } // namespace net
165 164
166 #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_dispatcher.cc ('k') | net/tools/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698