| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/bidirectional_stream_quic_impl.h" | 5 #include "net/quic/chromium/bidirectional_stream_quic_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 IPEndPoint peer_addr_; | 618 IPEndPoint peer_addr_; |
| 619 MockRandom random_generator_; | 619 MockRandom random_generator_; |
| 620 MockCryptoClientStreamFactory crypto_client_stream_factory_; | 620 MockCryptoClientStreamFactory crypto_client_stream_factory_; |
| 621 std::unique_ptr<StaticSocketDataProvider> socket_data_; | 621 std::unique_ptr<StaticSocketDataProvider> socket_data_; |
| 622 std::vector<PacketToWrite> writes_; | 622 std::vector<PacketToWrite> writes_; |
| 623 QuicClientPushPromiseIndex push_promise_index_; | 623 QuicClientPushPromiseIndex push_promise_index_; |
| 624 }; | 624 }; |
| 625 | 625 |
| 626 INSTANTIATE_TEST_CASE_P(Version, | 626 INSTANTIATE_TEST_CASE_P(Version, |
| 627 BidirectionalStreamQuicImplTest, | 627 BidirectionalStreamQuicImplTest, |
| 628 ::testing::ValuesIn(QuicSupportedVersions())); | 628 ::testing::ValuesIn(AllSupportedVersions())); |
| 629 | 629 |
| 630 TEST_P(BidirectionalStreamQuicImplTest, GetRequest) { | 630 TEST_P(BidirectionalStreamQuicImplTest, GetRequest) { |
| 631 SetRequest("GET", "/", DEFAULT_PRIORITY); | 631 SetRequest("GET", "/", DEFAULT_PRIORITY); |
| 632 size_t spdy_request_headers_frame_length; | 632 size_t spdy_request_headers_frame_length; |
| 633 AddWrite(ConstructRequestHeadersPacket(1, kFin, DEFAULT_PRIORITY, | 633 AddWrite(ConstructRequestHeadersPacket(1, kFin, DEFAULT_PRIORITY, |
| 634 &spdy_request_headers_frame_length)); | 634 &spdy_request_headers_frame_length)); |
| 635 | 635 |
| 636 AddWrite(ConstructClientAckPacket(2, 3, 1)); | 636 AddWrite(ConstructClientAckPacket(2, 3, 1)); |
| 637 Initialize(); | 637 Initialize(); |
| 638 | 638 |
| (...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 | 1628 |
| 1629 base::RunLoop().RunUntilIdle(); | 1629 base::RunLoop().RunUntilIdle(); |
| 1630 | 1630 |
| 1631 EXPECT_EQ(1, delegate->on_data_read_count()); | 1631 EXPECT_EQ(1, delegate->on_data_read_count()); |
| 1632 EXPECT_EQ(0, delegate->on_data_sent_count()); | 1632 EXPECT_EQ(0, delegate->on_data_sent_count()); |
| 1633 } | 1633 } |
| 1634 | 1634 |
| 1635 } // namespace test | 1635 } // namespace test |
| 1636 | 1636 |
| 1637 } // namespace net | 1637 } // namespace net |
| OLD | NEW |