/external/chromium_org/net/websockets/ |
D | websocket_handshake_handler_spdy_test.cc | 23 WebSocketHandshakeHandlerSpdyTest() : spdy_util_(GetParam()) {} in WebSocketHandshakeHandlerSpdyTest() 25 SpdyWebSocketTestUtil spdy_util_; member in net::__anond776ed9d0111::WebSocketHandshakeHandlerSpdyTest 58 spdy_util_.spdy_version())); in TEST_P() 60 EXPECT_EQ(url.path(), spdy_util_.GetHeader(headers, "path")); in TEST_P() 61 EXPECT_TRUE(spdy_util_.GetHeader(headers, "upgrade").empty()); in TEST_P() 62 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Upgrade").empty()); in TEST_P() 63 EXPECT_TRUE(spdy_util_.GetHeader(headers, "connection").empty()); in TEST_P() 64 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Connection").empty()); in TEST_P() 65 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Sec-WebSocket-Key").empty()); in TEST_P() 66 EXPECT_TRUE(spdy_util_.GetHeader(headers, "sec-websocket-key").empty()); in TEST_P() [all …]
|
D | websocket_job_test.cc | 398 : spdy_util_(GetParam()), in WebSocketJobTest() 527 SpdyWebSocketTestUtil spdy_util_; member in net::WebSocketJobTest 1000 spdy_util_.SetHeader("path", "/demo", request_headers.get()); in TestConnectBySpdy() 1001 spdy_util_.SetHeader("version", "WebSocket/13", request_headers.get()); in TestConnectBySpdy() 1002 spdy_util_.SetHeader("scheme", "ws", request_headers.get()); in TestConnectBySpdy() 1003 spdy_util_.SetHeader("host", "example.com", request_headers.get()); in TestConnectBySpdy() 1004 spdy_util_.SetHeader("origin", "http://example.com", request_headers.get()); in TestConnectBySpdy() 1005 spdy_util_.SetHeader("sec-websocket-protocol", "sample", in TestConnectBySpdy() 1009 spdy_util_.SetHeader("status", "101 Switching Protocols", in TestConnectBySpdy() 1011 spdy_util_.SetHeader("sec-websocket-protocol", "sample", in TestConnectBySpdy() [all …]
|
/external/chromium_org/net/spdy/ |
D | spdy_network_transaction_unittest.cc | 119 SpdyNetworkTransactionTest() : spdy_util_(GetParam().protocol) { in SpdyNetworkTransactionTest() 691 SpdyTestUtil spdy_util_; member in net::SpdyNetworkTransactionTest 741 spdy_util_.ConstructSpdyGet(NULL, 0, false, 1, LOWEST, true)); 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() 768 spdy_util_.ConstructSpdyGet(NULL, 0, false, 1, p, true)); in TEST_P() 772 EXPECT_TRUE(GetSpdyPriority(spdy_util_.spdy_version(), *req, &spdy_prio)); in TEST_P() 776 if (spdy_util_.spdy_version() < SPDY3) { 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() [all …]
|
D | spdy_stream_unittest.cc | 49 : spdy_util_(GetParam()), in SpdyStreamTest() 101 SpdyTestUtil spdy_util_; member in net::test::__anon9c24d0050111::SpdyStreamTest 124 spdy_util_.ConstructSpdyPost( in TEST_P() 129 spdy_util_.ConstructSpdyPostSynReply(NULL, 0)); in TEST_P() 133 spdy_util_.ConstructSpdyBodyFrame(1, kPostBody, kPostBodyLength, false)); in TEST_P() 137 spdy_util_.ConstructSpdyBodyFrame(1, kPostBody, kPostBodyLength, false)); in TEST_P() 162 spdy_util_.ConstructPostHeaderBlock(kStreamUrl, kPostBodyLength)); in TEST_P() 171 EXPECT_EQ("200", delegate.GetResponseHeaderValue(spdy_util_.GetStatusKey())); in TEST_P() 204 spdy_util_.AddUrlToHeaderBlock(kStreamUrl, &request_headers); in TEST_P() 209 response[spdy_util_.GetStatusKey()] = "200"; in TEST_P() [all …]
|
D | spdy_websocket_test_util.cc | 15 NextProto protocol) : spdy_util_(protocol) {} in SpdyWebSocketTestUtil() 41 return spdy_util_.ConstructSpdySyn( in ConstructSpdyWebSocketSynStream() 49 return spdy_util_.ConstructSpdyReply(stream_id, block); in ConstructSpdyWebSocketSynReply() 56 return spdy_util_.ConstructSpdySyn( in ConstructSpdyWebSocketHandshakeRequestFrame() 64 return spdy_util_.ConstructSpdyReply(stream_id, *headers); in ConstructSpdyWebSocketHandshakeResponseFrame() 75 return spdy_util_.ConstructSpdySyn(stream_id, *headers, LOWEST, false, false); in ConstructSpdyWebSocketHeadersFrame() 85 BufferedSpdyFramer framer(spdy_util_.spdy_version(), false); in ConstructSpdyWebSocketDataFrame() 95 return spdy_util_.ConstructSpdySettings(settings); in ConstructSpdySettings() 99 return spdy_util_.ConstructSpdySettingsAck(); in ConstructSpdySettingsAck() 103 return spdy_util_.spdy_version(); in spdy_version() [all …]
|
D | spdy_session_unittest.cc | 106 spdy_util_(GetParam()), in SpdySessionTest() 174 SpdyTestUtil spdy_util_; member in net::SpdySessionTest 292 scoped_ptr<SpdyFrame> goaway(spdy_util_.ConstructSpdyGoAway(1)); in TEST_P() 305 EXPECT_EQ(spdy_util_.spdy_version(), session->GetProtocolVersion()); 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() 355 spdy_util_.ConstructSpdyGet(NULL, 0, false, 1, MEDIUM, true)); in TEST_P() 357 spdy_util_.ConstructSpdyGet(NULL, 0, false, 3, MEDIUM, true)); in TEST_P() 372 EXPECT_EQ(spdy_util_.spdy_version(), session->GetProtocolVersion()); in TEST_P() 388 spdy_util_.ConstructGetHeaderBlock(url.spec())); in TEST_P() [all …]
|
D | spdy_http_stream_unittest.cc | 70 : spdy_util_(GetParam()), in SpdyHttpStreamTest() 118 SpdyTestUtil spdy_util_; member in net::SpdyHttpStreamTest 159 spdy_util_.ConstructSpdyGet(NULL, 0, false, 1, LOWEST, true)); in TEST_P() 163 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P() 221 spdy_util_.ConstructSpdyGet(NULL, 0, false, 1, LOWEST, true)); in TEST_P() 223 spdy_util_.ConstructSpdyGet(NULL, 0, false, 3, LOWEST, true)); in TEST_P() 229 spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P() 231 spdy_util_.ConstructSpdyBodyFrame(1, "", 0, true)); in TEST_P() 233 spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 3)); in TEST_P() 235 spdy_util_.ConstructSpdyBodyFrame(3, "", 0, true)); in TEST_P() [all …]
|
D | spdy_websocket_stream_unittest.cc | 190 : spdy_util_(GetParam()), in SpdyWebSocketStreamTest() 218 request_frame_.reset(spdy_util_.ConstructSpdyWebSocketSynStream( in Prepare() 225 spdy_util_.ConstructSpdyWebSocketSynReply(stream_id_)); in Prepare() 227 message_frame_.reset(spdy_util_.ConstructSpdyWebSocketDataFrame( in Prepare() 233 closing_frame_.reset(spdy_util_.ConstructSpdyWebSocketDataFrame( in Prepare() 239 closing_frame_fin_.reset(spdy_util_.ConstructSpdyWebSocketDataFrame( in Prepare() 258 spdy_util_.SetHeader("path", "/echo", headers.get()); in SendRequest() 259 spdy_util_.SetHeader("host", "example.com", headers.get()); in SendRequest() 260 spdy_util_.SetHeader("version", "WebSocket/13", headers.get()); in SendRequest() 261 spdy_util_.SetHeader("scheme", "ws", headers.get()); in SendRequest() [all …]
|
D | spdy_proxy_client_socket_unittest.cc | 117 SpdyTestUtil spdy_util_; member in net::SpdyProxyClientSocketTest 149 : spdy_util_(GetParam()), in SpdyProxyClientSocketTest() 154 framer_(spdy_util_.spdy_version(), false), in SpdyProxyClientSocketTest() 315 (*block)[spdy_util_.GetMethodKey()] = "CONNECT"; in PopulateConnectRequestIR() 316 (*block)[spdy_util_.GetPathKey()] = kOriginHostPort; in PopulateConnectRequestIR() 317 (*block)[spdy_util_.GetHostKey()] = kOriginHost; in PopulateConnectRequestIR() 319 spdy_util_.MaybeAddVersionHeader(block); in PopulateConnectRequestIR() 324 (*block)[spdy_util_.GetStatusKey()] = status; in PopulateConnectReplyIR() 325 spdy_util_.MaybeAddVersionHeader(block); in PopulateConnectReplyIR() 333 return spdy_util_.ConstructSpdySyn(kStreamId, block, LOWEST, false, false); in ConstructConnectRequestFrame() [all …]
|
D | spdy_websocket_test_util.h | 73 SpdyTestUtil spdy_util_; variable
|
/external/chromium_org/net/http/ |
D | http_proxy_client_socket_pool_unittest.cc | 165 spdy_util_(GetParam().protocol), in HttpProxyClientSocketPoolTest() 308 SpdyTestUtil spdy_util_; member in net::__anon7a33845a0111::HttpProxyClientSocketPoolTest 379 spdy_util_.ConstructSpdyConnect(NULL, 0, 1, LOW)); in TEST_P() 381 spdy_util_.ConstructSpdyRstStream(1, RST_STREAM_CANCEL)); in TEST_P() 387 resp_block[spdy_util_.GetStatusKey()] = "407"; in TEST_P() 389 spdy_util_.MaybeAddVersionHeader(&resp_block); in TEST_P() 391 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyReply(1, resp_block)); in TEST_P() 477 spdy_util_.ConstructSpdyConnect(kAuthHeaders, kAuthHeadersSize, 1, LOW)); in TEST_P() 481 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P() 515 spdy_util_.ConstructSpdyConnect(kAuthHeaders, kAuthHeadersSize, in TEST_P() [all …]
|
D | http_network_transaction_unittest.cc | 239 : spdy_util_(GetParam()), in HttpNetworkTransactionTest() 397 SpdyTestUtil spdy_util_; member in net::HttpNetworkTransactionTest 1365 scoped_ptr<SpdyFrame> spdy_request(spdy_util_.ConstructSpdyGet( in PreconnectErrorResendRequestTest() 1368 spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in PreconnectErrorResendRequestTest() 1370 spdy_util_.ConstructSpdyBodyFrame(1, "hello", 5, true)); in PreconnectErrorResendRequestTest() 3017 spdy_util_.ConstructSpdyGet(NULL, 0, false, 1, LOWEST, false)); 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() 3082 spdy_util_.ConstructSpdyGet(NULL, 0, false, 1, LOWEST, false)); in TEST_P() 3085 scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); in TEST_P() [all …]
|