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

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

Issue 1502503002: Move encryption_level from QueuedPacket into SerializedPacket. No functional change. Not flag pro… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@108718393
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/test_tools/quic_packet_creator_peer.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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 PerConnectionPacketWriter* current_writer_; 686 PerConnectionPacketWriter* current_writer_;
687 }; 687 };
688 688
689 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor { 689 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor {
690 public: 690 public:
691 MockQuicConnectionDebugVisitor(); 691 MockQuicConnectionDebugVisitor();
692 ~MockQuicConnectionDebugVisitor() override; 692 ~MockQuicConnectionDebugVisitor() override;
693 693
694 MOCK_METHOD1(OnFrameAddedToPacket, void(const QuicFrame&)); 694 MOCK_METHOD1(OnFrameAddedToPacket, void(const QuicFrame&));
695 695
696 MOCK_METHOD6(OnPacketSent, 696 MOCK_METHOD5(OnPacketSent,
697 void(const SerializedPacket&, 697 void(const SerializedPacket&,
698 QuicPacketNumber, 698 QuicPacketNumber,
699 EncryptionLevel,
700 TransmissionType, 699 TransmissionType,
701 size_t encrypted_length, 700 size_t encrypted_length,
702 QuicTime)); 701 QuicTime));
703 702
704 MOCK_METHOD3(OnPacketReceived, 703 MOCK_METHOD3(OnPacketReceived,
705 void(const IPEndPoint&, 704 void(const IPEndPoint&,
706 const IPEndPoint&, 705 const IPEndPoint&,
707 const QuicEncryptedPacket&)); 706 const QuicEncryptedPacket&));
708 707
709 MOCK_METHOD1(OnIncorrectConnectionId, void(QuicConnectionId)); 708 MOCK_METHOD1(OnIncorrectConnectionId, void(QuicConnectionId));
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 TestQuicSpdyServerSession** server_session); 781 TestQuicSpdyServerSession** server_session);
783 782
784 // Helper to generate client side stream ids, generalizes 783 // Helper to generate client side stream ids, generalizes
785 // kClientDataStreamId1 etc. above. 784 // kClientDataStreamId1 etc. above.
786 QuicStreamId QuicClientDataStreamId(int i); 785 QuicStreamId QuicClientDataStreamId(int i);
787 786
788 } // namespace test 787 } // namespace test
789 } // namespace net 788 } // namespace net
790 789
791 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 790 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_packet_creator_peer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698