Lines Matching defs:spdy_stream
25 #include "net/spdy/spdy_stream.h"
253 base::WeakPtr<SpdyStream> spdy_stream = CreateStreamSynchronously(
255 ASSERT_TRUE(spdy_stream != NULL);
627 base::WeakPtr<SpdyStream> spdy_stream = CreateStreamSynchronously(
629 test::StreamDelegateDoNothing delegate(spdy_stream);
630 spdy_stream->SetDelegate(&delegate);
634 spdy_stream->SendRequestHeaders(headers.Pass(), NO_MORE_DATA_TO_SEND);
635 EXPECT_TRUE(spdy_stream->HasUrlFromHeaders());
676 base::WeakPtr<SpdyStream> spdy_stream =
679 test::StreamDelegateDoNothing delegate(spdy_stream);
680 spdy_stream->SetDelegate(&delegate);
684 spdy_stream->SendRequestHeaders(headers.Pass(), NO_MORE_DATA_TO_SEND);
685 EXPECT_TRUE(spdy_stream->HasUrlFromHeaders());
689 EXPECT_EQ(1u, spdy_stream->stream_id());
746 base::WeakPtr<SpdyStream> spdy_stream =
749 test::StreamDelegateDoNothing delegate(spdy_stream);
750 spdy_stream->SetDelegate(&delegate);
754 spdy_stream->SendRequestHeaders(headers.Pass(), NO_MORE_DATA_TO_SEND);
755 EXPECT_TRUE(spdy_stream->HasUrlFromHeaders());
759 EXPECT_EQ(1u, spdy_stream->stream_id());
802 base::WeakPtr<SpdyStream> spdy_stream =
805 test::StreamDelegateDoNothing delegate(spdy_stream);
806 spdy_stream->SetDelegate(&delegate);
811 spdy_stream->SendRequestHeaders(headers.Pass(), NO_MORE_DATA_TO_SEND);
812 EXPECT_TRUE(spdy_stream->HasUrlFromHeaders());
816 EXPECT_EQ(1u, spdy_stream->stream_id());
836 spdy_stream->Close();
838 EXPECT_EQ(NULL, spdy_stream.get());
973 base::WeakPtr<SpdyStream> spdy_stream =
976 test::StreamDelegateDoNothing delegate(spdy_stream);
977 spdy_stream->SetDelegate(&delegate);
981 spdy_stream->SendRequestHeaders(headers.Pass(), NO_MORE_DATA_TO_SEND);
1220 base::WeakPtr<SpdyStream> spdy_stream = CreateStreamSynchronously(
1222 test::StreamDelegateDoNothing delegate(spdy_stream);
1223 spdy_stream->SetDelegate(&delegate);
1227 spdy_stream->SendRequestHeaders(headers.Pass(), NO_MORE_DATA_TO_SEND);
1363 base::WeakPtr<SpdyStream> spdy_stream =
1366 ASSERT_TRUE(spdy_stream != NULL);
1438 base::WeakPtr<SpdyStream> spdy_stream =
1441 ASSERT_TRUE(spdy_stream != NULL);
1502 base::WeakPtr<SpdyStream> spdy_stream =
1505 ASSERT_TRUE(spdy_stream != NULL);
1785 base::WeakPtr<SpdyStream> spdy_stream =
1788 test::StreamDelegateDoNothing delegate(spdy_stream);
1789 spdy_stream->SetDelegate(&delegate);
1793 spdy_stream->SendRequestHeaders(headers.Pass(), NO_MORE_DATA_TO_SEND);
1794 EXPECT_TRUE(spdy_stream->HasUrlFromHeaders());
2350 base::WeakPtr<SpdyStream> spdy_stream =
2353 ASSERT_TRUE(spdy_stream.get() != NULL);
2354 EXPECT_EQ(0u, spdy_stream->stream_id());
2356 SessionClosingDelegate delegate(spdy_stream, session);
2357 spdy_stream->SetDelegate(&delegate);
2361 spdy_stream->SendRequestHeaders(headers.Pass(), NO_MORE_DATA_TO_SEND);
2362 EXPECT_TRUE(spdy_stream->HasUrlFromHeaders());
2364 EXPECT_EQ(0u, spdy_stream->stream_id());
2368 EXPECT_EQ(1u, spdy_stream->stream_id());
2372 spdy_stream->Cancel();
2374 EXPECT_EQ(NULL, spdy_stream.get());
2649 base::WeakPtr<SpdyStream> spdy_stream =
2652 ASSERT_TRUE(spdy_stream != NULL);
3426 base::WeakPtr<SpdyStream> spdy_stream =
3429 ASSERT_TRUE(spdy_stream.get() != NULL);
3430 EXPECT_EQ(0u, spdy_stream->stream_id());
3432 StreamCreatingDelegate delegate(spdy_stream, session);
3433 spdy_stream->SetDelegate(&delegate);
3437 spdy_stream->SendRequestHeaders(headers.Pass(), NO_MORE_DATA_TO_SEND);
3438 EXPECT_TRUE(spdy_stream->HasUrlFromHeaders());
3440 EXPECT_EQ(0u, spdy_stream->stream_id());
3444 EXPECT_EQ(1u, spdy_stream->stream_id());
3450 EXPECT_EQ(NULL, spdy_stream.get());
4573 base::WeakPtr<SpdyStream> spdy_stream = CreateStreamSynchronously(
4575 ASSERT_TRUE(spdy_stream.get() != NULL);
4576 test::StreamDelegateDoNothing delegate(spdy_stream);
4577 spdy_stream->SetDelegate(&delegate);
4581 spdy_stream->SendRequestHeaders(headers.Pass(), NO_MORE_DATA_TO_SEND);