Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc

Issue 2236973002: Landing Recent QUIC changes until 4AM, Aug 7, 2016 UTC-4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flip quic_sequencer_buffer_retire_block_in_time to true Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/net.gypi ('k') | net/quic/chromium/quic_chromium_client_session_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/quic/chromium/quic_chromium_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698