Lines Matching refs:SpdyFrame
35 // Chop a SpdyFrame into an array of MockWrites.
38 MockWrite* ChopWriteFrame(const spdy::SpdyFrame& frame, int num_chunks) {
40 frame.length() + spdy::SpdyFrame::size(),
60 // Chop a SpdyFrame into an array of MockReads.
63 MockRead* ChopReadFrame(const spdy::SpdyFrame& frame, int num_chunks) {
65 frame.length() + spdy::SpdyFrame::size(),
148 // Returns a SpdyFrame.
149 spdy::SpdyFrame* ConstructSpdyPacket(const SpdyHeaderInfo& header_info,
161 spdy::SpdyFrame* frame = NULL;
192 spdy::SpdyFrame* ConstructSpdySettings(spdy::SpdySettings settings) {
199 spdy::SpdyFrame* ConstructSpdyPing() {
206 spdy::SpdyFrame* ConstructSpdyGoAway() {
213 spdy::SpdyFrame* ConstructSpdyWindowUpdate(
221 spdy::SpdyFrame* ConstructSpdyRstStream(spdy::SpdyStreamId stream_id,
267 spdy::SpdyFrame* ConstructSpdyControlFrame(const char* const extra_headers[],
288 spdy::SpdyFrame* ConstructSpdyControlFrame(const char* const extra_headers[],
322 // Returns a SpdyFrame.
323 spdy::SpdyFrame* ConstructSpdyGet(const char* const url,
384 // Returns a SpdyFrame.
385 spdy::SpdyFrame* ConstructSpdyGet(const char* const extra_headers[],
397 // Returns a SpdyFrame.
398 spdy::SpdyFrame* ConstructSpdyGet(const char* const extra_headers[],
428 spdy::SpdyFrame* ConstructSpdyConnect(const char* const extra_headers[],
451 // Returns a SpdyFrame.
452 spdy::SpdyFrame* ConstructSpdyPush(const char* const extra_headers[],
476 spdy::SpdyFrame* ConstructSpdyPush(const char* const extra_headers[],
503 spdy::SpdyFrame* ConstructSpdyPush(const char* const extra_headers[],
534 spdy::SpdyFrame* ConstructSpdyPush(int stream_id,
553 spdy::SpdyFrame* ConstructSpdyPushHeaders(int stream_id,
574 // Returns a SpdyFrame.
575 spdy::SpdyFrame* ConstructSpdySynReplyError(
602 // Returns a SpdyFrame.
603 spdy::SpdyFrame* ConstructSpdyGetSynReplyRedirect(int stream_id) {
614 // Returns a SpdyFrame.
615 spdy::SpdyFrame* ConstructSpdySynReplyError(int stream_id) {
625 // Returns a SpdyFrame.
626 spdy::SpdyFrame* ConstructSpdyGetSynReply(const char* const extra_headers[],
652 // Returns a SpdyFrame.
653 spdy::SpdyFrame* ConstructSpdyPost(int64 content_length,
685 // Returns a SpdyFrame.
686 spdy::SpdyFrame* ConstructChunkedSpdyPost(const char* const extra_headers[],
714 // Returns a SpdyFrame.
715 spdy::SpdyFrame* ConstructSpdyPostSynReply(const char* const extra_headers[],
739 spdy::SpdyFrame* ConstructSpdyBodyFrame(int stream_id, bool fin) {
747 spdy::SpdyFrame* ConstructSpdyBodyFrame(int stream_id, const char* data,
755 spdy::SpdyFrame* ConstructWrappedSpdyFrame(
756 const scoped_ptr<spdy::SpdyFrame>& frame,
759 frame->length() + spdy::SpdyFrame::size(),
841 // Create a MockWrite from the given SpdyFrame.
842 MockWrite CreateMockWrite(const spdy::SpdyFrame& req) {
844 true, req.data(), req.length() + spdy::SpdyFrame::size());
847 // Create a MockWrite from the given SpdyFrame and sequence number.
848 MockWrite CreateMockWrite(const spdy::SpdyFrame& req, int seq) {
852 SpdyFrame and sequence number.
853 MockWrite CreateMockWrite(const spdy::SpdyFrame& req, int seq, bool async) {
855 async, req.data(), req.length() + spdy::SpdyFrame::size(), seq);
858 // Create a MockRead from the given SpdyFrame.
859 MockRead CreateMockRead(const spdy::SpdyFrame& resp) {
861 true, resp.data(), resp.length() + spdy::SpdyFrame::size());
864 // Create a MockRead from the given SpdyFrame and sequence number.
865 MockRead CreateMockRead(const spdy::SpdyFrame& resp, int seq) {
869 // Create a MockRead from the given SpdyFrame and sequence number.
870 MockRead CreateMockRead(const spdy::SpdyFrame& resp, int seq, bool async) {
872 async, resp.data(), resp.length() + spdy::SpdyFrame::size(), seq);
877 int CombineFrames(const spdy::SpdyFrame** frames, int num_frames,
881 total_len += frames[i]->length() + spdy::SpdyFrame::size();
886 int len = frames[i]->length() + spdy::SpdyFrame::size();