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

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

Issue 1014433002: Land Recent QUIC Changes until 03/09/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replaces_Perspective_enun_88006458
Patch Set: Rebase - added NET_EXPORT_PRIVATE to fix compiler error Created 5 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
« no previous file with comments | « net/quic/quic_unacked_packet_map_test.cc ('k') | net/tools/quic/end_to_end_test.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_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 QuicStreamOffset bytes_written)); 325 QuicStreamOffset bytes_written));
326 MOCK_METHOD3(SendGoAway, 326 MOCK_METHOD3(SendGoAway,
327 void(QuicErrorCode error, 327 void(QuicErrorCode error,
328 QuicStreamId last_good_stream_id, 328 QuicStreamId last_good_stream_id,
329 const std::string& reason)); 329 const std::string& reason));
330 MOCK_METHOD1(SendBlocked, void(QuicStreamId id)); 330 MOCK_METHOD1(SendBlocked, void(QuicStreamId id));
331 MOCK_METHOD2(SendWindowUpdate, void(QuicStreamId id, 331 MOCK_METHOD2(SendWindowUpdate, void(QuicStreamId id,
332 QuicStreamOffset byte_offset)); 332 QuicStreamOffset byte_offset));
333 MOCK_METHOD0(OnCanWrite, void()); 333 MOCK_METHOD0(OnCanWrite, void());
334 334
335 MOCK_METHOD1(OnSendConnectionState, void(const CachedNetworkParameters&));
335 MOCK_METHOD1(ResumeConnectionState, bool(const CachedNetworkParameters&)); 336 MOCK_METHOD1(ResumeConnectionState, bool(const CachedNetworkParameters&));
336 337
337 void ReallyProcessUdpPacket(const IPEndPoint& self_address, 338 void ReallyProcessUdpPacket(const IPEndPoint& self_address,
338 const IPEndPoint& peer_address, 339 const IPEndPoint& peer_address,
339 const QuicEncryptedPacket& packet) { 340 const QuicEncryptedPacket& packet) {
340 QuicConnection::ProcessUdpPacket(self_address, peer_address, packet); 341 QuicConnection::ProcessUdpPacket(self_address, peer_address, packet);
341 } 342 }
342 343
343 bool OnProtocolVersionMismatch(QuicVersion version) override { 344 bool OnProtocolVersionMismatch(QuicVersion version) override {
344 return false; 345 return false;
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 // clears the pointer to it to prevent use-after-free. 611 // clears the pointer to it to prevent use-after-free.
611 void Unregister(PerConnectionPacketWriter* writer); 612 void Unregister(PerConnectionPacketWriter* writer);
612 613
613 PerConnectionPacketWriter* current_writer_; 614 PerConnectionPacketWriter* current_writer_;
614 }; 615 };
615 616
616 } // namespace test 617 } // namespace test
617 } // namespace net 618 } // namespace net
618 619
619 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 620 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/quic_unacked_packet_map_test.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698