| 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/quic_connection.h" | 5 #include "net/quic/quic_connection.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 TestConnectionHelper* helper, | 417 TestConnectionHelper* helper, |
| 418 const PacketWriterFactory& factory, | 418 const PacketWriterFactory& factory, |
| 419 Perspective perspective, | 419 Perspective perspective, |
| 420 QuicVersion version) | 420 QuicVersion version) |
| 421 : QuicConnection(connection_id, | 421 : QuicConnection(connection_id, |
| 422 address, | 422 address, |
| 423 helper, | 423 helper, |
| 424 factory, | 424 factory, |
| 425 /* owns_writer= */ false, | 425 /* owns_writer= */ false, |
| 426 perspective, | 426 perspective, |
| 427 /* is_secure= */ false, | |
| 428 SupportedVersions(version)) { | 427 SupportedVersions(version)) { |
| 429 // Disable tail loss probes for most tests. | 428 // Disable tail loss probes for most tests. |
| 430 QuicSentPacketManagerPeer::SetMaxTailLossProbes( | 429 QuicSentPacketManagerPeer::SetMaxTailLossProbes( |
| 431 QuicConnectionPeer::GetSentPacketManager(this), 0); | 430 QuicConnectionPeer::GetSentPacketManager(this), 0); |
| 432 writer()->set_perspective(perspective); | 431 writer()->set_perspective(perspective); |
| 433 } | 432 } |
| 434 | 433 |
| 435 void SendAck() { | 434 void SendAck() { |
| 436 QuicConnectionPeer::SendAck(this); | 435 QuicConnectionPeer::SendAck(this); |
| 437 } | 436 } |
| (...skipping 4418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4856 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(1); | 4855 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(1); |
| 4857 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away."); | 4856 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away."); |
| 4858 EXPECT_TRUE(connection_.goaway_sent()); | 4857 EXPECT_TRUE(connection_.goaway_sent()); |
| 4859 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(0); | 4858 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(0); |
| 4860 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away."); | 4859 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away."); |
| 4861 } | 4860 } |
| 4862 | 4861 |
| 4863 } // namespace | 4862 } // namespace |
| 4864 } // namespace test | 4863 } // namespace test |
| 4865 } // namespace net | 4864 } // namespace net |
| OLD | NEW |