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

Unified Diff: net/spdy/spdy_test_util.h

Issue 2919011: Implement MAX_CONCURRENT_STREAMS SETTINGS header (Closed)
Patch Set: landing soon on a repo near you Created 10 years, 5 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/spdy/spdy_session.cc ('k') | net/spdy/spdy_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_test_util.h
diff --git a/net/spdy/spdy_test_util.h b/net/spdy/spdy_test_util.h
index 02981ce56d86faddfb8f9a46018e9daac7fa83cb..b01f7bb22862f341a2bca9b1545e52d25af989d4 100644
--- a/net/spdy/spdy_test_util.h
+++ b/net/spdy/spdy_test_util.h
@@ -6,6 +6,7 @@
#define NET_SPDY_SPDY_TEST_UTIL_H_
#include "base/basictypes.h"
+#include "net/base/request_priority.h"
#include "net/socket/socket_test_util.h"
#include "net/spdy/spdy_framer.h"
@@ -137,21 +138,17 @@ int ConstructSpdyHeader(const char* const extra_headers[],
// Returns a SpdyFrame.
spdy::SpdyFrame* ConstructSpdyGet(const char* const extra_headers[],
int extra_header_count,
- bool compressed);
-
-// Constructs a standard SPDY GET SYN packet, with no compression.
-// |extra_headers| are the extra header-value pairs, which typically
-// will vary the most between calls.
-// Returns a SpdyFrame.
-spdy::SpdyFrame* ConstructSpdyGet(const char* const extra_headers[],
- int extra_header_count);
+ bool compressed,
+ int stream_id,
+ RequestPriority request_priority);
// Constructs a standard SPDY SYN_REPLY packet to match the SPDY GET.
// |extra_headers| are the extra header-value pairs, which typically
// will vary the most between calls.
// Returns a SpdyFrame.
spdy::SpdyFrame* ConstructSpdyGetSynReply(const char* const extra_headers[],
- int extra_header_count);
+ int extra_header_count,
+ int stream_id);
// Constructs a standard SPDY POST SYN packet.
// |extra_headers| are the extra header-value pairs, which typically
@@ -168,7 +165,8 @@ spdy::SpdyFrame* ConstructSpdyPostSynReply(const char* const extra_headers[],
int extra_header_count);
// Constructs a single SPDY data frame with the contents "hello!"
-spdy::SpdyFrame* ConstructSpdyBodyFrame();
+spdy::SpdyFrame* ConstructSpdyBodyFrame(int stream_id,
+ bool fin);
// Create an async MockWrite from the given SpdyFrame.
MockWrite CreateMockWrite(const spdy::SpdyFrame& req);
@@ -189,4 +187,4 @@ int CombineFrames(const spdy::SpdyFrame** frames, int num_frames,
} // namespace net
-#endif // NET_SPDY_SPDY_TEST_UTIL_H_
+#endif // NET_SPDY_SPDY_TEST_UTIL_H_
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/spdy/spdy_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698