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

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

Issue 2850573002: Landing Recent QUIC changes until 3:35 PM, Apr 26, 2017 UTC-4 (Closed)
Patch Set: Remove Disconnect from ~QuicTestClient Created 3 years, 7 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/test_tools/quic_test_utils.h ('k') | net/quic/test_tools/simple_quic_framer.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 #ifndef NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_
6 #define NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ 6 #define NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 bool ProcessPacket(const QuicEncryptedPacket& packet); 32 bool ProcessPacket(const QuicEncryptedPacket& packet);
33 void Reset(); 33 void Reset();
34 34
35 const QuicPacketHeader& header() const; 35 const QuicPacketHeader& header() const;
36 size_t num_frames() const; 36 size_t num_frames() const;
37 const std::vector<QuicAckFrame>& ack_frames() const; 37 const std::vector<QuicAckFrame>& ack_frames() const;
38 const std::vector<QuicConnectionCloseFrame>& connection_close_frames() const; 38 const std::vector<QuicConnectionCloseFrame>& connection_close_frames() const;
39 const std::vector<QuicStopWaitingFrame>& stop_waiting_frames() const; 39 const std::vector<QuicStopWaitingFrame>& stop_waiting_frames() const;
40 const std::vector<QuicPingFrame>& ping_frames() const; 40 const std::vector<QuicPingFrame>& ping_frames() const;
41 const std::vector<QuicWindowUpdateFrame>& window_update_frames() const;
41 const std::vector<QuicGoAwayFrame>& goaway_frames() const; 42 const std::vector<QuicGoAwayFrame>& goaway_frames() const;
42 const std::vector<QuicRstStreamFrame>& rst_stream_frames() const; 43 const std::vector<QuicRstStreamFrame>& rst_stream_frames() const;
43 const std::vector<std::unique_ptr<QuicStreamFrame>>& stream_frames() const; 44 const std::vector<std::unique_ptr<QuicStreamFrame>>& stream_frames() const;
44 const std::vector<QuicPaddingFrame>& padding_frames() const; 45 const std::vector<QuicPaddingFrame>& padding_frames() const;
45 const QuicVersionNegotiationPacket* version_negotiation_packet() const; 46 const QuicVersionNegotiationPacket* version_negotiation_packet() const;
46 47
47 QuicFramer* framer(); 48 QuicFramer* framer();
48 49
49 void SetSupportedVersions(const QuicVersionVector& versions) { 50 void SetSupportedVersions(const QuicVersionVector& versions) {
50 framer_.SetSupportedVersions(versions); 51 framer_.SetSupportedVersions(versions);
51 } 52 }
52 53
53 private: 54 private:
54 QuicFramer framer_; 55 QuicFramer framer_;
55 std::unique_ptr<SimpleFramerVisitor> visitor_; 56 std::unique_ptr<SimpleFramerVisitor> visitor_;
56 DISALLOW_COPY_AND_ASSIGN(SimpleQuicFramer); 57 DISALLOW_COPY_AND_ASSIGN(SimpleQuicFramer);
57 }; 58 };
58 59
59 } // namespace test 60 } // namespace test
60 61
61 } // namespace net 62 } // namespace net
62 63
63 #endif // NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_ 64 #endif // NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | net/quic/test_tools/simple_quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698