| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 TestConnectionHelper* helper, | 405 TestConnectionHelper* helper, |
| 406 const PacketWriterFactory& factory, | 406 const PacketWriterFactory& factory, |
| 407 Perspective perspective, | 407 Perspective perspective, |
| 408 QuicVersion version) | 408 QuicVersion version) |
| 409 : QuicConnection(connection_id, | 409 : QuicConnection(connection_id, |
| 410 address, | 410 address, |
| 411 helper, | 411 helper, |
| 412 factory, | 412 factory, |
| 413 /* owns_writer= */ false, | 413 /* owns_writer= */ false, |
| 414 perspective, | 414 perspective, |
| 415 /* is_secure= */ false, | |
| 416 SupportedVersions(version)) { | 415 SupportedVersions(version)) { |
| 417 // Disable tail loss probes for most tests. | 416 // Disable tail loss probes for most tests. |
| 418 QuicSentPacketManagerPeer::SetMaxTailLossProbes( | 417 QuicSentPacketManagerPeer::SetMaxTailLossProbes( |
| 419 QuicConnectionPeer::GetSentPacketManager(this), 0); | 418 QuicConnectionPeer::GetSentPacketManager(this), 0); |
| 420 writer()->set_perspective(perspective); | 419 writer()->set_perspective(perspective); |
| 421 } | 420 } |
| 422 | 421 |
| 423 void SendAck() { | 422 void SendAck() { |
| 424 QuicConnectionPeer::SendAck(this); | 423 QuicConnectionPeer::SendAck(this); |
| 425 } | 424 } |
| (...skipping 4380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4806 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(1); | 4805 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(1); |
| 4807 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away."); | 4806 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away."); |
| 4808 EXPECT_TRUE(connection_.goaway_sent()); | 4807 EXPECT_TRUE(connection_.goaway_sent()); |
| 4809 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(0); | 4808 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(0); |
| 4810 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away."); | 4809 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away."); |
| 4811 } | 4810 } |
| 4812 | 4811 |
| 4813 } // namespace | 4812 } // namespace |
| 4814 } // namespace test | 4813 } // namespace test |
| 4815 } // namespace net | 4814 } // namespace net |
| OLD | NEW |