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

Unified Diff: net/quic/test_tools/quic_stream_peer.h

Issue 2487613002: Landing Recent QUIC changes until 12:43 PM, Nov 5, 2016 UTC+8 (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/test_tools/quic_session_peer.cc ('k') | net/quic/test_tools/quic_stream_peer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_stream_peer.h
diff --git a/net/quic/test_tools/quic_stream_peer.h b/net/quic/test_tools/quic_stream_peer.h
new file mode 100644
index 0000000000000000000000000000000000000000..e39ac4bca03fadf91719e2161fcbcfca76712b69
--- /dev/null
+++ b/net/quic/test_tools/quic_stream_peer.h
@@ -0,0 +1,56 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_QUIC_TEST_TOOLS_QUIC_STREAM_PEER_H_
+#define NET_QUIC_TEST_TOOLS_QUIC_STREAM_PEER_H_
+
+#include <stdint.h>
+
+#include "base/macros.h"
+#include "base/strings/string_piece.h"
+#include "net/quic/core/quic_protocol.h"
+#include "net/quic/core/quic_stream_sequencer.h"
+
+namespace net {
+
+class QuicStream;
+
+namespace test {
+
+class QuicStreamPeer {
+ public:
+ static void SetWriteSideClosed(bool value, QuicStream* stream);
+ static void SetStreamBytesWritten(QuicStreamOffset stream_bytes_written,
+ QuicStream* stream);
+ static bool read_side_closed(QuicStream* stream);
+ static void CloseReadSide(QuicStream* stream);
+
+ static bool FinSent(QuicStream* stream);
+ static bool FinReceived(QuicStream* stream);
+ static bool RstSent(QuicStream* stream);
+ static bool RstReceived(QuicStream* stream);
+
+ static bool ReadSideClosed(QuicStream* stream);
+ static bool WriteSideClosed(QuicStream* stream);
+
+ static uint32_t SizeOfQueuedData(QuicStream* stream);
+
+ static bool StreamContributesToConnectionFlowControl(QuicStream* stream);
+
+ static void WriteOrBufferData(
+ QuicStream* stream,
+ base::StringPiece data,
+ bool fin,
+ QuicAckListenerInterface* ack_notifier_delegate);
+
+ static net::QuicStreamSequencer* sequencer(QuicStream* stream);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(QuicStreamPeer);
+};
+
+} // namespace test
+} // namespace net
+
+#endif // NET_QUIC_TEST_TOOLS_QUIC_STREAM_PEER_H_
« no previous file with comments | « net/quic/test_tools/quic_session_peer.cc ('k') | net/quic/test_tools/quic_stream_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698