| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |