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 "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "net/quic/test_tools/quic_framer_peer.h" | 24 #include "net/quic/test_tools/quic_framer_peer.h" |
25 #include "net/quic/test_tools/quic_packet_creator_peer.h" | 25 #include "net/quic/test_tools/quic_packet_creator_peer.h" |
26 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" | 26 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" |
27 #include "net/quic/test_tools/quic_test_utils.h" | 27 #include "net/quic/test_tools/quic_test_utils.h" |
28 #include "net/quic/test_tools/simple_quic_framer.h" | 28 #include "net/quic/test_tools/simple_quic_framer.h" |
29 #include "testing/gmock/include/gmock/gmock.h" | 29 #include "testing/gmock/include/gmock/gmock.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 | 31 |
32 using base::StringPiece; | 32 using base::StringPiece; |
33 using std::map; | 33 using std::map; |
| 34 using std::string; |
34 using std::vector; | 35 using std::vector; |
35 using testing::AnyNumber; | 36 using testing::AnyNumber; |
36 using testing::AtLeast; | 37 using testing::AtLeast; |
37 using testing::ContainerEq; | 38 using testing::ContainerEq; |
38 using testing::Contains; | 39 using testing::Contains; |
39 using testing::DoAll; | 40 using testing::DoAll; |
40 using testing::InSequence; | 41 using testing::InSequence; |
41 using testing::InvokeWithoutArgs; | 42 using testing::InvokeWithoutArgs; |
42 using testing::NiceMock; | 43 using testing::NiceMock; |
43 using testing::Ref; | 44 using testing::Ref; |
(...skipping 4148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4192 QuicBlockedFrame blocked; | 4193 QuicBlockedFrame blocked; |
4193 blocked.stream_id = 3; | 4194 blocked.stream_id = 3; |
4194 EXPECT_CALL(visitor_, OnBlockedFrames(_)); | 4195 EXPECT_CALL(visitor_, OnBlockedFrames(_)); |
4195 ProcessFramePacket(QuicFrame(&blocked)); | 4196 ProcessFramePacket(QuicFrame(&blocked)); |
4196 EXPECT_TRUE(ack_alarm->IsSet()); | 4197 EXPECT_TRUE(ack_alarm->IsSet()); |
4197 } | 4198 } |
4198 | 4199 |
4199 } // namespace | 4200 } // namespace |
4200 } // namespace test | 4201 } // namespace test |
4201 } // namespace net | 4202 } // namespace net |
OLD | NEW |