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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 struct PacketToWrite { | 345 struct PacketToWrite { |
346 PacketToWrite(IoMode mode, QuicReceivedPacket* packet) | 346 PacketToWrite(IoMode mode, QuicReceivedPacket* packet) |
347 : mode(mode), packet(packet) {} | 347 : mode(mode), packet(packet) {} |
348 PacketToWrite(IoMode mode, int rv) : mode(mode), packet(nullptr), rv(rv) {} | 348 PacketToWrite(IoMode mode, int rv) : mode(mode), packet(nullptr), rv(rv) {} |
349 IoMode mode; | 349 IoMode mode; |
350 QuicReceivedPacket* packet; | 350 QuicReceivedPacket* packet; |
351 int rv; | 351 int rv; |
352 }; | 352 }; |
353 | 353 |
354 BidirectionalStreamQuicImplTest() | 354 BidirectionalStreamQuicImplTest() |
355 : crypto_config_(CryptoTestUtils::ProofVerifierForTesting()), | 355 : crypto_config_(crypto_test_utils::ProofVerifierForTesting()), |
356 read_buffer_(new IOBufferWithSize(4096)), | 356 read_buffer_(new IOBufferWithSize(4096)), |
357 connection_id_(2), | 357 connection_id_(2), |
358 stream_id_(kClientDataStreamId1), | 358 stream_id_(kClientDataStreamId1), |
359 client_maker_(GetParam(), | 359 client_maker_(GetParam(), |
360 connection_id_, | 360 connection_id_, |
361 &clock_, | 361 &clock_, |
362 kDefaultServerHostName, | 362 kDefaultServerHostName, |
363 Perspective::IS_CLIENT), | 363 Perspective::IS_CLIENT), |
364 server_maker_(GetParam(), | 364 server_maker_(GetParam(), |
365 connection_id_, | 365 connection_id_, |
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1841 | 1841 |
1842 base::RunLoop().RunUntilIdle(); | 1842 base::RunLoop().RunUntilIdle(); |
1843 | 1843 |
1844 EXPECT_EQ(1, delegate->on_data_read_count()); | 1844 EXPECT_EQ(1, delegate->on_data_read_count()); |
1845 EXPECT_EQ(0, delegate->on_data_sent_count()); | 1845 EXPECT_EQ(0, delegate->on_data_sent_count()); |
1846 } | 1846 } |
1847 | 1847 |
1848 } // namespace test | 1848 } // namespace test |
1849 | 1849 |
1850 } // namespace net | 1850 } // namespace net |
OLD | NEW |