| 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 <string> |
| 8 |
| 7 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 10 #include "base/bind.h" |
| 9 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 10 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
| 11 #include "net/quic/congestion_control/loss_detection_interface.h" | 13 #include "net/quic/congestion_control/loss_detection_interface.h" |
| 12 #include "net/quic/congestion_control/receive_algorithm_interface.h" | 14 #include "net/quic/congestion_control/receive_algorithm_interface.h" |
| 13 #include "net/quic/congestion_control/send_algorithm_interface.h" | 15 #include "net/quic/congestion_control/send_algorithm_interface.h" |
| 14 #include "net/quic/crypto/null_encrypter.h" | 16 #include "net/quic/crypto/null_encrypter.h" |
| 15 #include "net/quic/crypto/quic_decrypter.h" | 17 #include "net/quic/crypto/quic_decrypter.h" |
| 16 #include "net/quic/crypto/quic_encrypter.h" | 18 #include "net/quic/crypto/quic_encrypter.h" |
| 17 #include "net/quic/quic_flags.h" | 19 #include "net/quic/quic_flags.h" |
| 18 #include "net/quic/quic_protocol.h" | 20 #include "net/quic/quic_protocol.h" |
| 19 #include "net/quic/quic_utils.h" | 21 #include "net/quic/quic_utils.h" |
| 20 #include "net/quic/test_tools/mock_clock.h" | 22 #include "net/quic/test_tools/mock_clock.h" |
| 21 #include "net/quic/test_tools/mock_random.h" | 23 #include "net/quic/test_tools/mock_random.h" |
| 22 #include "net/quic/test_tools/quic_config_peer.h" | 24 #include "net/quic/test_tools/quic_config_peer.h" |
| 23 #include "net/quic/test_tools/quic_connection_peer.h" | 25 #include "net/quic/test_tools/quic_connection_peer.h" |
| 24 #include "net/quic/test_tools/quic_framer_peer.h" | 26 #include "net/quic/test_tools/quic_framer_peer.h" |
| 25 #include "net/quic/test_tools/quic_packet_creator_peer.h" | 27 #include "net/quic/test_tools/quic_packet_creator_peer.h" |
| 26 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" | 28 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" |
| 27 #include "net/quic/test_tools/quic_test_utils.h" | 29 #include "net/quic/test_tools/quic_test_utils.h" |
| 28 #include "net/quic/test_tools/simple_quic_framer.h" | 30 #include "net/quic/test_tools/simple_quic_framer.h" |
| 29 #include "testing/gmock/include/gmock/gmock.h" | 31 #include "testing/gmock/include/gmock/gmock.h" |
| 30 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
| 31 | 33 |
| 32 using base::StringPiece; | 34 using base::StringPiece; |
| 33 using std::map; | 35 using std::map; |
| 36 using std::string; |
| 34 using std::vector; | 37 using std::vector; |
| 35 using testing::AnyNumber; | 38 using testing::AnyNumber; |
| 36 using testing::AtLeast; | 39 using testing::AtLeast; |
| 37 using testing::ContainerEq; | 40 using testing::ContainerEq; |
| 38 using testing::Contains; | 41 using testing::Contains; |
| 39 using testing::DoAll; | 42 using testing::DoAll; |
| 40 using testing::InSequence; | 43 using testing::InSequence; |
| 41 using testing::InvokeWithoutArgs; | 44 using testing::InvokeWithoutArgs; |
| 42 using testing::NiceMock; | 45 using testing::NiceMock; |
| 43 using testing::Ref; | 46 using testing::Ref; |
| (...skipping 4148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4192 QuicBlockedFrame blocked; | 4195 QuicBlockedFrame blocked; |
| 4193 blocked.stream_id = 3; | 4196 blocked.stream_id = 3; |
| 4194 EXPECT_CALL(visitor_, OnBlockedFrames(_)); | 4197 EXPECT_CALL(visitor_, OnBlockedFrames(_)); |
| 4195 ProcessFramePacket(QuicFrame(&blocked)); | 4198 ProcessFramePacket(QuicFrame(&blocked)); |
| 4196 EXPECT_TRUE(ack_alarm->IsSet()); | 4199 EXPECT_TRUE(ack_alarm->IsSet()); |
| 4197 } | 4200 } |
| 4198 | 4201 |
| 4199 } // namespace | 4202 } // namespace |
| 4200 } // namespace test | 4203 } // namespace test |
| 4201 } // namespace net | 4204 } // namespace net |
| OLD | NEW |