Home
last modified time | relevance | path

Searched refs:SpdyFrame (Results 1 – 25 of 38) sorted by relevance

12

/external/chromium_org/net/spdy/
Dspdy_test_util_common.h64 MockWrite* ChopWriteFrame(const SpdyFrame& frame, int num_chunks);
75 MockRead* ChopReadFrame(const SpdyFrame& frame, int num_chunks);
87 MockWrite CreateMockWrite(const SpdyFrame& req);
90 MockWrite CreateMockWrite(const SpdyFrame& req, int seq);
92 MockWrite CreateMockWrite(const SpdyFrame& req, int seq, IoMode mode);
95 MockRead CreateMockRead(const SpdyFrame& resp);
98 MockRead CreateMockRead(const SpdyFrame& resp, int seq);
100 MockRead CreateMockRead(const SpdyFrame& resp, int seq, IoMode mode);
104 int CombineFrames(const SpdyFrame** frames, int num_frames,
110 const SpdyFrame& frame,
[all …]
Dspdy_proxy_client_socket_unittest.cc76 SpdyFrame* ConstructConnectRequestFrame();
77 SpdyFrame* ConstructConnectAuthRequestFrame();
78 SpdyFrame* ConstructConnectReplyFrame();
79 SpdyFrame* ConstructConnectAuthReplyFrame();
80 SpdyFrame* ConstructConnectRedirectReplyFrame();
81 SpdyFrame* ConstructConnectErrorReplyFrame();
82 SpdyFrame* ConstructBodyFrame(const char* data, int length);
329 SpdyFrame*
338 SpdyFrame* SpdyProxyClientSocketTest::ConstructConnectAuthRequestFrame() { in ConstructConnectAuthRequestFrame()
346 SpdyFrame* SpdyProxyClientSocketTest::ConstructConnectReplyFrame() { in ConstructConnectReplyFrame()
[all …]
Dspdy_network_transaction_unittest.cc740 scoped_ptr<SpdyFrame> req( in TEST_P()
744 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P()
745 scoped_ptr<SpdyFrame> body(spdy_util_.ConstructSpdyBodyFrame(1, true)); in TEST_P()
767 scoped_ptr<SpdyFrame> req( in TEST_P()
816 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P()
817 scoped_ptr<SpdyFrame> body(spdy_util_.ConstructSpdyBodyFrame(1, true)); in TEST_P()
849 scoped_ptr<SpdyFrame> req( in TEST_P()
851 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P()
852 scoped_ptr<SpdyFrame> body(spdy_util_.ConstructSpdyBodyFrame(1, false)); in TEST_P()
853 scoped_ptr<SpdyFrame> fbody(spdy_util_.ConstructSpdyBodyFrame(1, true)); in TEST_P()
[all …]
Dspdy_websocket_test_util.h32 SpdyFrame* ConstructSpdyWebSocketSynStream(int stream_id,
39 SpdyFrame* ConstructSpdyWebSocketSynReply(int stream_id);
42 SpdyFrame* ConstructSpdyWebSocketHandshakeRequestFrame(
48 SpdyFrame* ConstructSpdyWebSocketHandshakeResponseFrame(
54 SpdyFrame* ConstructSpdyWebSocketHeadersFrame(int stream_id,
59 SpdyFrame* ConstructSpdyWebSocketDataFrame(const char* data,
65 SpdyFrame* ConstructSpdySettings(const SettingsMap& settings) const;
66 SpdyFrame* ConstructSpdySettingsAck() const;
Dspdy_stream_unittest.cc73 void AddRead(const SpdyFrame& frame) { in AddRead()
77 void AddWrite(const SpdyFrame& frame) { in AddWrite()
123 scoped_ptr<SpdyFrame> req( in TEST_P()
128 scoped_ptr<SpdyFrame> resp( in TEST_P()
132 scoped_ptr<SpdyFrame> msg( in TEST_P()
136 scoped_ptr<SpdyFrame> echo( in TEST_P()
239 scoped_ptr<SpdyFrame> req( in TEST_P()
244 scoped_ptr<SpdyFrame> resp( in TEST_P()
248 scoped_ptr<SpdyFrame> msg( in TEST_P()
252 scoped_ptr<SpdyFrame> echo( in TEST_P()
[all …]
Dspdy_test_util_common.cc84 MockWrite* ChopWriteFrame(const SpdyFrame& frame, int num_chunks) { in ChopWriteFrame()
107 MockRead* ChopReadFrame(const SpdyFrame& frame, int num_chunks) { in ChopReadFrame()
159 MockWrite CreateMockWrite(const SpdyFrame& req) { in CreateMockWrite()
164 MockWrite CreateMockWrite(const SpdyFrame& req, int seq) { in CreateMockWrite()
169 MockWrite CreateMockWrite(const SpdyFrame& req, int seq, IoMode mode) { in CreateMockWrite()
174 MockRead CreateMockRead(const SpdyFrame& resp) { in CreateMockRead()
179 MockRead CreateMockRead(const SpdyFrame& resp, int seq) { in CreateMockRead()
184 MockRead CreateMockRead(const SpdyFrame& resp, int seq, IoMode mode) { in CreateMockRead()
190 int CombineFrames(const SpdyFrame** frames, int num_frames, in CombineFrames()
265 const SpdyFrame& frame, in GetSpdyPriority()
[all …]
Dspdy_websocket_test_util.cc30 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdyWebSocketSynStream( in ConstructSpdyWebSocketSynStream()
45 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdyWebSocketSynReply( in ConstructSpdyWebSocketSynReply()
52 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdyWebSocketHandshakeRequestFrame( in ConstructSpdyWebSocketHandshakeRequestFrame()
60 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdyWebSocketHandshakeResponseFrame( in ConstructSpdyWebSocketHandshakeResponseFrame()
67 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdyWebSocketHeadersFrame( in ConstructSpdyWebSocketHeadersFrame()
78 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdyWebSocketDataFrame( in ConstructSpdyWebSocketDataFrame()
93 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdySettings( in ConstructSpdySettings()
98 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdySettingsAck() const { in ConstructSpdySettingsAck()
Dspdy_http_stream_unittest.cc158 scoped_ptr<SpdyFrame> req( in TEST_P()
163 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P()
220 scoped_ptr<SpdyFrame> req1( in TEST_P()
222 scoped_ptr<SpdyFrame> req2( in TEST_P()
228 scoped_ptr<SpdyFrame> resp1( in TEST_P()
230 scoped_ptr<SpdyFrame> body1( in TEST_P()
232 scoped_ptr<SpdyFrame> resp2( in TEST_P()
234 scoped_ptr<SpdyFrame> body2( in TEST_P()
318 scoped_ptr<SpdyFrame> req( in TEST_P()
320 scoped_ptr<SpdyFrame> body( in TEST_P()
[all …]
Dbuffered_spdy_framer.h182 SpdyFrame* CreateSynStream(SpdyStreamId stream_id,
187 SpdyFrame* CreateSynReply(SpdyStreamId stream_id,
190 SpdyFrame* CreateRstStream(SpdyStreamId stream_id,
192 SpdyFrame* CreateSettings(const SettingsMap& values) const;
193 SpdyFrame* CreatePingFrame(uint32 unique_id, bool is_ack) const;
194 SpdyFrame* CreateGoAway(
197 SpdyFrame* CreateHeaders(SpdyStreamId stream_id,
200 SpdyFrame* CreateWindowUpdate(
203 SpdyFrame* CreateDataFrame(SpdyStreamId stream_id,
207 SpdyFrame* CreatePushPromise(SpdyStreamId stream_id,
Dspdy_session_unittest.cc292 scoped_ptr<SpdyFrame> goaway(spdy_util_.ConstructSpdyGoAway(1)); in TEST_P()
322 scoped_ptr<SpdyFrame> goaway(spdy_util_.ConstructSpdyGoAway(1)); in TEST_P()
349 scoped_ptr<SpdyFrame> goaway(spdy_util_.ConstructSpdyGoAway(1)); in TEST_P()
354 scoped_ptr<SpdyFrame> req1( in TEST_P()
356 scoped_ptr<SpdyFrame> req2( in TEST_P()
429 scoped_ptr<SpdyFrame> goaway1(spdy_util_.ConstructSpdyGoAway(1)); in TEST_P()
430 scoped_ptr<SpdyFrame> goaway2(spdy_util_.ConstructSpdyGoAway(0)); in TEST_P()
436 scoped_ptr<SpdyFrame> req1( in TEST_P()
438 scoped_ptr<SpdyFrame> req2( in TEST_P()
509 scoped_ptr<SpdyFrame> goaway(spdy_util_.ConstructSpdyGoAway(1)); in TEST_P()
[all …]
Dspdy_frame_builder_test.cc34 scoped_ptr<SpdyFrame> frame(builder.take()); in TEST_P()
47 scoped_ptr<SpdyFrame> expected(framer.SerializeSettings(settings_ir)); in TEST_P()
57 scoped_ptr<SpdyFrame> built(builder.take()); in TEST_P()
70 scoped_ptr<SpdyFrame> expected(framer.SerializeHeaders(headers_ir)); in TEST_P()
74 scoped_ptr<SpdyFrame> built(builder.take()); in TEST_P()
Dbuffered_spdy_framer_unittest.cc107 void OnDataFrameHeader(const SpdyFrame* frame) { in OnDataFrameHeader()
111 void OnRstStream(const SpdyFrame& frame) {} in OnRstStream()
112 void OnGoAway(const SpdyFrame& frame) {} in OnGoAway()
113 void OnPing(const SpdyFrame& frame) {} in OnPing()
132 void OnCredential(const SpdyFrame& frame) {} in OnCredential()
222 scoped_ptr<SpdyFrame> control_frame(framer.SerializeSettings(settings_ir)); in TEST_P()
241 scoped_ptr<SpdyFrame> control_frame( in TEST_P()
270 scoped_ptr<SpdyFrame> control_frame( in TEST_P()
298 scoped_ptr<SpdyFrame> control_frame( in TEST_P()
323 scoped_ptr<SpdyFrame> control_frame( in TEST_P()
Dbuffered_spdy_framer.cc272 SpdyFrame* BufferedSpdyFramer::CreateSynStream( in CreateSynStream()
290 SpdyFrame* BufferedSpdyFramer::CreateSynReply( in CreateSynReply()
303 SpdyFrame* BufferedSpdyFramer::CreateRstStream( in CreateRstStream()
314 SpdyFrame* BufferedSpdyFramer::CreateSettings( in CreateSettings()
330 SpdyFrame* BufferedSpdyFramer::CreatePingFrame(uint32 unique_id, in CreatePingFrame()
338 SpdyFrame* BufferedSpdyFramer::CreateGoAway( in CreateGoAway()
346 SpdyFrame* BufferedSpdyFramer::CreateHeaders( in CreateHeaders()
358 SpdyFrame* BufferedSpdyFramer::CreateWindowUpdate( in CreateWindowUpdate()
366 SpdyFrame* BufferedSpdyFramer::CreateDataFrame(SpdyStreamId stream_id, in CreateDataFrame()
377 SpdyFrame* BufferedSpdyFramer::CreatePushPromise( in CreatePushPromise()
Dspdy_framer_test.cc56 template<class SpdyFrameType> static SpdyFrame* DecompressFrame( in DecompressFrame()
66 SpdyFrame* decompressed_frame = new SpdyFrame(buffer, visitor.size(), true); in DecompressFrame()
126 scoped_ptr<SpdyFrame> frame(framer.SerializeSynStream(syn_stream)); in OnSynStream()
137 scoped_ptr<SpdyFrame> frame(framer.SerializeHeaders(headers)); in OnSynReply()
168 scoped_ptr<SpdyFrame> frame(framer.SerializeHeaders(headers)); in OnHeaders()
184 scoped_ptr<SpdyFrame> frame(framer.SerializePushPromise(push_promise)); in OnPushPromise()
566 base::StringPiece GetSerializedHeaders(const SpdyFrame* frame, in GetSerializedHeaders()
626 const SpdyFrame& actual_frame, in CompareFrame()
636 const SpdyFrame& expected_frame, in CompareFrames()
637 const SpdyFrame& actual_frame) { in CompareFrames()
[all …]
Dspdy_buffer.cc23 scoped_ptr<SpdyFrame> MakeSpdyFrame(const char* data, size_t size) { in MakeSpdyFrame()
29 scoped_ptr<SpdyFrame> frame( in MakeSpdyFrame()
30 new SpdyFrame(frame_data.release(), size, true /* owns_buffer */)); in MakeSpdyFrame()
59 SpdyBuffer::SpdyBuffer(scoped_ptr<SpdyFrame> frame) in SpdyBuffer()
Dspdy_buffer.h20 class SpdyFrame; variable
50 explicit SpdyBuffer(scoped_ptr<SpdyFrame> frame);
91 typedef base::RefCountedData<scoped_ptr<SpdyFrame> > SharedFrame;
Dspdy_frame_builder.h75 SpdyFrame* take() { in take()
81 SpdyFrame* rv = new SpdyFrame(buffer_.release(), length(), true); in take()
Dspdy_test_utils.h31 void SetFrameFlags(SpdyFrame* frame,
35 void SetFrameLength(SpdyFrame* frame,
Dspdy_websocket_stream_unittest.cc278 scoped_ptr<SpdyFrame> request_frame_;
279 scoped_ptr<SpdyFrame> response_frame_;
280 scoped_ptr<SpdyFrame> message_frame_;
281 scoped_ptr<SpdyFrame> closing_frame_;
282 scoped_ptr<SpdyFrame> closing_frame_fin_;
563 scoped_ptr<SpdyFrame> settings_frame( in TEST_P()
565 scoped_ptr<SpdyFrame> settings_ack(spdy_util_.ConstructSpdySettingsAck()); in TEST_P()
Dspdy_protocol.h537 class SpdyFrame; variable
538 typedef SpdyFrame SpdySerializedFrame;
996 class SpdyFrame {
1005 SpdyFrame(char* data, size_t size, bool owns_buffer) in SpdyFrame() function
1012 ~SpdyFrame() { in ~SpdyFrame()
1032 DISALLOW_COPY_AND_ASSIGN(SpdyFrame);
Dspdy_buffer_unittest.cc37 scoped_ptr<SpdyFrame>( in TEST_F()
38 new SpdyFrame(const_cast<char*>(kData), kDataSize, in TEST_F()
/external/chromium_org/net/http/
Dhttp_proxy_client_socket_pool_unittest.cc378 scoped_ptr<SpdyFrame> req( in TEST_P()
380 scoped_ptr<SpdyFrame> rst( in TEST_P()
391 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyReply(1, resp_block)); in TEST_P()
476 scoped_ptr<SpdyFrame> req( in TEST_P()
481 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P()
514 scoped_ptr<SpdyFrame> req( in TEST_P()
520 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P()
621 scoped_ptr<SpdyFrame> req( in TEST_P()
695 scoped_ptr<SpdyFrame> req( in TEST_P()
697 scoped_ptr<SpdyFrame> rst( in TEST_P()
[all …]
Dhttp_network_transaction_unittest.cc1365 scoped_ptr<SpdyFrame> spdy_request(spdy_util_.ConstructSpdyGet( in PreconnectErrorResendRequestTest()
1367 scoped_ptr<SpdyFrame> spdy_response( in PreconnectErrorResendRequestTest()
1369 scoped_ptr<SpdyFrame> spdy_data( in PreconnectErrorResendRequestTest()
3016 scoped_ptr<SpdyFrame> req( in TEST_P()
3020 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P()
3021 scoped_ptr<SpdyFrame> data(spdy_util_.ConstructSpdyBodyFrame(1, true)); in TEST_P()
3081 scoped_ptr<SpdyFrame> req( in TEST_P()
3085 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P()
3086 scoped_ptr<SpdyFrame> data(spdy_util_.ConstructSpdyBodyFrame(1, true)); in TEST_P()
3156 scoped_ptr<SpdyFrame> req_get( in TEST_P()
[all …]
/external/chromium_org/net/tools/flip_server/
Dspdy_interface.cc25 explicit SpdyFrameDataFrame(SpdyFrame* spdy_frame) : frame(spdy_frame) { in SpdyFrameDataFrame()
32 const SpdyFrame* frame;
347 SpdyFrame* settings_frame = buffered_spdy_framer_->CreateSettings(settings); in PostAcceptHook()
482 SpdyFrame* fsrcf = buffered_spdy_framer_->CreateSynStream( in SendSynStreamImpl()
506 SpdyFrame* fsrcf = buffered_spdy_framer_->CreateSynReply( in SendSynReplyImpl()
526 SpdyFrame* fdf = in SendDataFrameImpl()
543 SpdyFrame* fdf = buffered_spdy_framer_->CreateDataFrame( in SendDataFrameImpl()
/external/chromium_org/net/quic/
Dspdy_utils.cc22 scoped_ptr<SpdyFrame> block(builder.take()); in SerializeUncompressedHeaders()

12