| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/quic/chromium/quic_http_stream.h" | 5 #include "net/quic/chromium/quic_http_stream.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 MockRandom random_generator_; | 567 MockRandom random_generator_; |
| 568 ProofVerifyDetailsChromium verify_details_; | 568 ProofVerifyDetailsChromium verify_details_; |
| 569 MockCryptoClientStreamFactory crypto_client_stream_factory_; | 569 MockCryptoClientStreamFactory crypto_client_stream_factory_; |
| 570 std::unique_ptr<StaticSocketDataProvider> socket_data_; | 570 std::unique_ptr<StaticSocketDataProvider> socket_data_; |
| 571 std::vector<PacketToWrite> writes_; | 571 std::vector<PacketToWrite> writes_; |
| 572 QuicStreamOffset response_offset_; | 572 QuicStreamOffset response_offset_; |
| 573 }; | 573 }; |
| 574 | 574 |
| 575 INSTANTIATE_TEST_CASE_P(Version, | 575 INSTANTIATE_TEST_CASE_P(Version, |
| 576 QuicHttpStreamTest, | 576 QuicHttpStreamTest, |
| 577 ::testing::ValuesIn(QuicSupportedVersions())); | 577 ::testing::ValuesIn(AllSupportedVersions())); |
| 578 | 578 |
| 579 TEST_P(QuicHttpStreamTest, RenewStreamForAuth) { | 579 TEST_P(QuicHttpStreamTest, RenewStreamForAuth) { |
| 580 Initialize(); | 580 Initialize(); |
| 581 EXPECT_EQ(nullptr, stream_->RenewStreamForAuth()); | 581 EXPECT_EQ(nullptr, stream_->RenewStreamForAuth()); |
| 582 } | 582 } |
| 583 | 583 |
| 584 TEST_P(QuicHttpStreamTest, CanReuseConnection) { | 584 TEST_P(QuicHttpStreamTest, CanReuseConnection) { |
| 585 Initialize(); | 585 Initialize(); |
| 586 EXPECT_FALSE(stream_->CanReuseConnection()); | 586 EXPECT_FALSE(stream_->CanReuseConnection()); |
| 587 } | 587 } |
| (...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1907 EXPECT_TRUE(AtEof()); | 1907 EXPECT_TRUE(AtEof()); |
| 1908 | 1908 |
| 1909 // QuicHttpStream::GetTotalSent/ReceivedBytes includes only headers. | 1909 // QuicHttpStream::GetTotalSent/ReceivedBytes includes only headers. |
| 1910 EXPECT_EQ(static_cast<int64_t>(spdy_request_headers_frame_length), | 1910 EXPECT_EQ(static_cast<int64_t>(spdy_request_headers_frame_length), |
| 1911 stream_->GetTotalSentBytes()); | 1911 stream_->GetTotalSentBytes()); |
| 1912 EXPECT_EQ(0, stream_->GetTotalReceivedBytes()); | 1912 EXPECT_EQ(0, stream_->GetTotalReceivedBytes()); |
| 1913 } | 1913 } |
| 1914 | 1914 |
| 1915 } // namespace test | 1915 } // namespace test |
| 1916 } // namespace net | 1916 } // namespace net |
| OLD | NEW |