| 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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 IPEndPoint peer_addr_; | 600 IPEndPoint peer_addr_; |
| 601 MockRandom random_generator_; | 601 MockRandom random_generator_; |
| 602 MockCryptoClientStreamFactory crypto_client_stream_factory_; | 602 MockCryptoClientStreamFactory crypto_client_stream_factory_; |
| 603 std::unique_ptr<StaticSocketDataProvider> socket_data_; | 603 std::unique_ptr<StaticSocketDataProvider> socket_data_; |
| 604 std::vector<PacketToWrite> writes_; | 604 std::vector<PacketToWrite> writes_; |
| 605 QuicClientPushPromiseIndex push_promise_index_; | 605 QuicClientPushPromiseIndex push_promise_index_; |
| 606 }; | 606 }; |
| 607 | 607 |
| 608 INSTANTIATE_TEST_CASE_P(Version, | 608 INSTANTIATE_TEST_CASE_P(Version, |
| 609 BidirectionalStreamQuicImplTest, | 609 BidirectionalStreamQuicImplTest, |
| 610 ::testing::ValuesIn(QuicSupportedVersions())); | 610 ::testing::ValuesIn(AllSupportedVersions())); |
| 611 | 611 |
| 612 TEST_P(BidirectionalStreamQuicImplTest, GetRequest) { | 612 TEST_P(BidirectionalStreamQuicImplTest, GetRequest) { |
| 613 SetRequest("GET", "/", DEFAULT_PRIORITY); | 613 SetRequest("GET", "/", DEFAULT_PRIORITY); |
| 614 size_t spdy_request_headers_frame_length; | 614 size_t spdy_request_headers_frame_length; |
| 615 AddWrite(ConstructRequestHeadersPacket(1, kFin, DEFAULT_PRIORITY, | 615 AddWrite(ConstructRequestHeadersPacket(1, kFin, DEFAULT_PRIORITY, |
| 616 &spdy_request_headers_frame_length)); | 616 &spdy_request_headers_frame_length)); |
| 617 | 617 |
| 618 AddWrite(ConstructClientAckPacket(2, 3, 1)); | 618 AddWrite(ConstructClientAckPacket(2, 3, 1)); |
| 619 Initialize(); | 619 Initialize(); |
| 620 | 620 |
| (...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1672 | 1672 |
| 1673 base::RunLoop().RunUntilIdle(); | 1673 base::RunLoop().RunUntilIdle(); |
| 1674 | 1674 |
| 1675 EXPECT_EQ(1, delegate->on_data_read_count()); | 1675 EXPECT_EQ(1, delegate->on_data_read_count()); |
| 1676 EXPECT_EQ(0, delegate->on_data_sent_count()); | 1676 EXPECT_EQ(0, delegate->on_data_sent_count()); |
| 1677 } | 1677 } |
| 1678 | 1678 |
| 1679 } // namespace test | 1679 } // namespace test |
| 1680 | 1680 |
| 1681 } // namespace net | 1681 } // namespace net |
| OLD | NEW |