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

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

Issue 1546633002: Drop not awaited packets before decrypt them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@110393215
Patch Set: Created 5 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/quic/quic_flags.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_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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 const QuicEncryptedPacket&)); 728 const QuicEncryptedPacket&));
729 729
730 MOCK_METHOD1(OnIncorrectConnectionId, void(QuicConnectionId)); 730 MOCK_METHOD1(OnIncorrectConnectionId, void(QuicConnectionId));
731 731
732 MOCK_METHOD1(OnProtocolVersionMismatch, void(QuicVersion)); 732 MOCK_METHOD1(OnProtocolVersionMismatch, void(QuicVersion));
733 733
734 MOCK_METHOD1(OnPacketHeader, void(const QuicPacketHeader& header)); 734 MOCK_METHOD1(OnPacketHeader, void(const QuicPacketHeader& header));
735 735
736 MOCK_METHOD1(OnSuccessfulVersionNegotiation, void(const QuicVersion&)); 736 MOCK_METHOD1(OnSuccessfulVersionNegotiation, void(const QuicVersion&));
737 737
738 MOCK_METHOD1(OnSuccessfulVersionNegotiation, void(const QuicVersion&));
739
738 MOCK_METHOD1(OnStreamFrame, void(const QuicStreamFrame&)); 740 MOCK_METHOD1(OnStreamFrame, void(const QuicStreamFrame&));
739 741
740 MOCK_METHOD1(OnAckFrame, void(const QuicAckFrame& frame)); 742 MOCK_METHOD1(OnAckFrame, void(const QuicAckFrame& frame));
741 743
742 MOCK_METHOD1(OnStopWaitingFrame, void(const QuicStopWaitingFrame&)); 744 MOCK_METHOD1(OnStopWaitingFrame, void(const QuicStopWaitingFrame&));
743 745
744 MOCK_METHOD1(OnRstStreamFrame, void(const QuicRstStreamFrame&)); 746 MOCK_METHOD1(OnRstStreamFrame, void(const QuicRstStreamFrame&));
745 747
746 MOCK_METHOD1(OnConnectionCloseFrame, void(const QuicConnectionCloseFrame&)); 748 MOCK_METHOD1(OnConnectionCloseFrame, void(const QuicConnectionCloseFrame&));
747 749
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 TestQuicSpdyServerSession** server_session); 805 TestQuicSpdyServerSession** server_session);
804 806
805 // Helper to generate client side stream ids, generalizes 807 // Helper to generate client side stream ids, generalizes
806 // kClientDataStreamId1 etc. above. 808 // kClientDataStreamId1 etc. above.
807 QuicStreamId QuicClientDataStreamId(int i); 809 QuicStreamId QuicClientDataStreamId(int i);
808 810
809 } // namespace test 811 } // namespace test
810 } // namespace net 812 } // namespace net
811 813
812 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 814 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/quic_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698