| 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/tools/quic/quic_dispatcher.h" | 5 #include "net/tools/quic/quic_dispatcher.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <ostream> | 8 #include <ostream> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 ~TestQuicSpdyServerSession() override { delete connection(); }; | 74 ~TestQuicSpdyServerSession() override { delete connection(); }; |
| 75 | 75 |
| 76 MOCK_METHOD3(OnConnectionClosed, | 76 MOCK_METHOD3(OnConnectionClosed, |
| 77 void(QuicErrorCode error, | 77 void(QuicErrorCode error, |
| 78 const string& error_details, | 78 const string& error_details, |
| 79 ConnectionCloseSource source)); | 79 ConnectionCloseSource source)); |
| 80 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); | 80 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); |
| 81 MOCK_METHOD1(CreateOutgoingDynamicStream, | 81 MOCK_METHOD1(CreateOutgoingDynamicStream, |
| 82 QuicSpdyStream*(SpdyPriority priority)); | 82 QuicSpdyStream*(SpdyPriority priority)); |
| 83 MOCK_METHOD1(CreateStream, std::unique_ptr<QuicStream>(QuicStreamId id)); |
| 83 | 84 |
| 84 QuicCryptoServerStreamBase* CreateQuicCryptoServerStream( | 85 QuicCryptoServerStreamBase* CreateQuicCryptoServerStream( |
| 85 const QuicCryptoServerConfig* crypto_config, | 86 const QuicCryptoServerConfig* crypto_config, |
| 86 QuicCompressedCertsCache* compressed_certs_cache) override { | 87 QuicCompressedCertsCache* compressed_certs_cache) override { |
| 87 return new QuicCryptoServerStream( | 88 return new QuicCryptoServerStream( |
| 88 crypto_config, compressed_certs_cache, | 89 crypto_config, compressed_certs_cache, |
| 89 FLAGS_quic_reloadable_flag_enable_quic_stateless_reject_support, this, | 90 FLAGS_quic_reloadable_flag_enable_quic_stateless_reject_support, this, |
| 90 stream_helper()); | 91 stream_helper()); |
| 91 } | 92 } |
| 92 | 93 |
| (...skipping 1944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2037 check.Call(2); | 2038 check.Call(2); |
| 2038 GetFakeProofSource()->InvokePendingCallback(0); | 2039 GetFakeProofSource()->InvokePendingCallback(0); |
| 2039 ASSERT_EQ(GetFakeProofSource()->NumPendingCallbacks(), 0); | 2040 ASSERT_EQ(GetFakeProofSource()->NumPendingCallbacks(), 0); |
| 2040 EXPECT_FALSE(store->HasBufferedPackets(conn_id)); | 2041 EXPECT_FALSE(store->HasBufferedPackets(conn_id)); |
| 2041 EXPECT_FALSE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id)); | 2042 EXPECT_FALSE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id)); |
| 2042 } | 2043 } |
| 2043 | 2044 |
| 2044 } // namespace | 2045 } // namespace |
| 2045 } // namespace test | 2046 } // namespace test |
| 2046 } // namespace net | 2047 } // namespace net |
| OLD | NEW |