diff options
Diffstat (limited to 'net/spdy/spdy_http_stream_spdy2_unittest.cc')
-rw-r--r-- | net/spdy/spdy_http_stream_spdy2_unittest.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/spdy/spdy_http_stream_spdy2_unittest.cc b/net/spdy/spdy_http_stream_spdy2_unittest.cc index 06bab80..581d530 100644 --- a/net/spdy/spdy_http_stream_spdy2_unittest.cc +++ b/net/spdy/spdy_http_stream_spdy2_unittest.cc @@ -147,6 +147,15 @@ class SpdyHttpStreamSpdy2Test : public testing::Test { scoped_refptr<TransportSocketParams> transport_params_; }; +// SpdyHttpStream::GetUploadProgress() should still work even before the +// stream is initialized. +TEST_F(SpdyHttpStreamSpdy2Test, GetUploadProgressBeforeInitialization) { + SpdyHttpStream stream(NULL, false); + UploadProgress progress = stream.GetUploadProgress(); + EXPECT_EQ(0u, progress.size()); + EXPECT_EQ(0u, progress.position()); +} + TEST_F(SpdyHttpStreamSpdy2Test, SendRequest) { scoped_ptr<SpdyFrame> req( spdy_util_.ConstructSpdyGet(NULL, 0, false, 1, LOWEST, true)); |