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

Side by Side Diff: net/quic/chromium/quic_chromium_client_session_test.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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/quic_chromium_client_session.h" 5 #include "net/quic/chromium/quic_chromium_client_session.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/rand_util.h" 10 #include "base/rand_util.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 QuicConnectionVisitorInterface* visitor_; 145 QuicConnectionVisitorInterface* visitor_;
146 TestCompletionCallback callback_; 146 TestCompletionCallback callback_;
147 QuicTestPacketMaker client_maker_; 147 QuicTestPacketMaker client_maker_;
148 QuicTestPacketMaker server_maker_; 148 QuicTestPacketMaker server_maker_;
149 ProofVerifyDetailsChromium verify_details_; 149 ProofVerifyDetailsChromium verify_details_;
150 QuicClientPushPromiseIndex push_promise_index_; 150 QuicClientPushPromiseIndex push_promise_index_;
151 }; 151 };
152 152
153 INSTANTIATE_TEST_CASE_P(Tests, 153 INSTANTIATE_TEST_CASE_P(Tests,
154 QuicChromiumClientSessionTest, 154 QuicChromiumClientSessionTest,
155 ::testing::ValuesIn(QuicSupportedVersions())); 155 ::testing::ValuesIn(AllSupportedVersions()));
156 156
157 TEST_P(QuicChromiumClientSessionTest, CryptoConnect) { 157 TEST_P(QuicChromiumClientSessionTest, CryptoConnect) {
158 Initialize(); 158 Initialize();
159 CompleteCryptoHandshake(); 159 CompleteCryptoHandshake();
160 } 160 }
161 161
162 TEST_P(QuicChromiumClientSessionTest, MaxNumStreams) { 162 TEST_P(QuicChromiumClientSessionTest, MaxNumStreams) {
163 MockRead reads[] = {MockRead(SYNCHRONOUS, ERR_IO_PENDING, 0)}; 163 MockRead reads[] = {MockRead(SYNCHRONOUS, ERR_IO_PENDING, 0)};
164 std::unique_ptr<QuicEncryptedPacket> client_rst(client_maker_.MakeRstPacket( 164 std::unique_ptr<QuicEncryptedPacket> client_rst(client_maker_.MakeRstPacket(
165 1, true, kClientDataStreamId1, QUIC_RST_ACKNOWLEDGEMENT)); 165 1, true, kClientDataStreamId1, QUIC_RST_ACKNOWLEDGEMENT));
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 session_->connection()->SendPing(); 554 session_->connection()->SendPing();
555 EXPECT_FALSE(session_->connection()->connected()); 555 EXPECT_FALSE(session_->connection()->connected());
556 556
557 EXPECT_TRUE(socket_data.AllReadDataConsumed()); 557 EXPECT_TRUE(socket_data.AllReadDataConsumed());
558 EXPECT_TRUE(socket_data.AllWriteDataConsumed()); 558 EXPECT_TRUE(socket_data.AllWriteDataConsumed());
559 } 559 }
560 560
561 } // namespace 561 } // namespace
562 } // namespace test 562 } // namespace test
563 } // namespace net 563 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc ('k') | net/quic/chromium/quic_chromium_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698