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

Unified Diff: net/quic/test_tools/quic_spdy_session_peer.cc

Issue 2862563003: Landing Recent QUIC changes until Sat Apr 29 00:22:04 2017 +0000 (Closed)
Patch Set: rebase and fix test bugs detected by swarm bot. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/test_tools/quic_spdy_session_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_spdy_session_peer.cc
diff --git a/net/quic/test_tools/quic_spdy_session_peer.cc b/net/quic/test_tools/quic_spdy_session_peer.cc
index 37b76e1dc4f99e53e77a6792c5fad45de8760a4a..eb1f52e6a7a8233996f0fd9f66f7e97b961e7e2f 100644
--- a/net/quic/test_tools/quic_spdy_session_peer.cc
+++ b/net/quic/test_tools/quic_spdy_session_peer.cc
@@ -64,5 +64,24 @@ size_t QuicSpdySessionPeer::WriteHeadersImpl(
std::move(ack_listener));
}
+// static
+QuicStreamId QuicSpdySessionPeer::NextStreamId(const QuicSpdySession& session) {
+ return 2;
+}
+
+// static
+QuicStreamId QuicSpdySessionPeer::GetNthClientInitiatedStreamId(
+ const QuicSpdySession& session,
+ int n) {
+ return 5 + QuicSpdySessionPeer::NextStreamId(session) * n;
+}
+
+// static
+QuicStreamId QuicSpdySessionPeer::GetNthServerInitiatedStreamId(
+ const QuicSpdySession& session,
+ int n) {
+ return 2 + QuicSpdySessionPeer::NextStreamId(session) * n;
+}
+
} // namespace test
} // namespace net
« no previous file with comments | « net/quic/test_tools/quic_spdy_session_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698