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

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

Issue 2236463004: Rename QuicSupportedVersions to QuicAllSupportedVersions. Add QuicCurrentSupportedVersions which re… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129437595
Patch Set: update more files outside net/ 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
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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_unittest.cc ('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