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

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

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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/tools/quic/quic_socket_utils.cc ('k') | net/url_request/sdch_dictionary_fetcher.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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 QuicStreamOffset bytes_written)); 88 QuicStreamOffset bytes_written));
89 MOCK_METHOD3(SendGoAway, void(QuicErrorCode error, 89 MOCK_METHOD3(SendGoAway, void(QuicErrorCode error,
90 QuicStreamId last_good_stream_id, 90 QuicStreamId last_good_stream_id,
91 const std::string& reason)); 91 const std::string& reason));
92 MOCK_METHOD1(SendBlocked, void(QuicStreamId id)); 92 MOCK_METHOD1(SendBlocked, void(QuicStreamId id));
93 MOCK_METHOD2(SendWindowUpdate, void(QuicStreamId id, 93 MOCK_METHOD2(SendWindowUpdate, void(QuicStreamId id,
94 QuicStreamOffset byte_offset)); 94 QuicStreamOffset byte_offset));
95 MOCK_METHOD0(OnCanWrite, void()); 95 MOCK_METHOD0(OnCanWrite, void());
96 MOCK_CONST_METHOD0(HasPendingWrites, bool()); 96 MOCK_CONST_METHOD0(HasPendingWrites, bool());
97 97
98 MOCK_METHOD1(ResumeConnectionState, void(const CachedNetworkParameters&)); 98 MOCK_METHOD1(ResumeConnectionState, bool(const CachedNetworkParameters&));
99 99
100 void ReallyProcessUdpPacket(const IPEndPoint& self_address, 100 void ReallyProcessUdpPacket(const IPEndPoint& self_address,
101 const IPEndPoint& peer_address, 101 const IPEndPoint& peer_address,
102 const QuicEncryptedPacket& packet) { 102 const QuicEncryptedPacket& packet) {
103 QuicConnection::ProcessUdpPacket(self_address, peer_address, packet); 103 QuicConnection::ProcessUdpPacket(self_address, peer_address, packet);
104 } 104 }
105 105
106 virtual bool OnProtocolVersionMismatch(QuicVersion version) override { 106 virtual bool OnProtocolVersionMismatch(QuicVersion version) override {
107 return false; 107 return false;
108 } 108 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 void Unregister(PerConnectionPacketWriter* writer); 216 void Unregister(PerConnectionPacketWriter* writer);
217 217
218 PerConnectionPacketWriter* current_writer_; 218 PerConnectionPacketWriter* current_writer_;
219 }; 219 };
220 220
221 } // namespace test 221 } // namespace test
222 } // namespace tools 222 } // namespace tools
223 } // namespace net 223 } // namespace net
224 224
225 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 225 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_socket_utils.cc ('k') | net/url_request/sdch_dictionary_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698