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

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

Issue 12334063: Land recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more EXPECT_FALSE Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_
6 #define NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_
7
8 #include <vector>
9
10 #include "net/quic/quic_framer.h"
11 #include "net/quic/quic_protocol.h"
12
13 namespace net {
14
15 struct QuicAckFrame;
16 class QuicConnection;
17 class QuicConnectionVisitorInterface;
18 class QuicPacketCreator;
19 class ReceiveAlgorithmInterface;
20 class SendAlgorithmInterface;
21
22 namespace test {
23
24 class SimpleFramerVisitor;
25
26 // Peer to make public a number of otherwise private QuicConnection methods.
27 class SimpleQuicFramer {
28 public:
29 SimpleQuicFramer();
30 ~SimpleQuicFramer();
31
32 bool ProcessPacket(const QuicEncryptedPacket& packet);
33 bool ProcessPacket(const QuicPacket& packet);
34
35 const QuicPacketHeader& header() const;
36 size_t num_frames() const;
37 const std::vector<QuicAckFrame>& ack_frames() const;
38 const std::vector<QuicConnectionCloseFrame>& connection_close_frames() const;
39 const std::vector<QuicCongestionFeedbackFrame>& feedback_frames() const;
40 const std::vector<QuicGoAwayFrame>& goaway_frames() const;
41 const std::vector<QuicRstStreamFrame>& rst_stream_frames() const;
42 const std::vector<QuicStreamFrame>& stream_frames() const;
43 const QuicFecData& fec_data() const;
44
45 private:
46 QuicFramer framer_;
47 SimpleFramerVisitor* visitor_;
48 DISALLOW_COPY_AND_ASSIGN(SimpleQuicFramer);
49 };
50
51 } // namespace test
52
53 } // namespace net
54
55 #endif // NET_QUIC_TEST_TOOLS_SIMPLE_QUIC_FRAMER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/reliable_quic_stream_peer.cc ('k') | net/quic/test_tools/simple_quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698