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/reliable_quic_stream.h" | 5 #include "net/quic/reliable_quic_stream.h" |
6 | 6 |
7 #include "net/quic/quic_ack_notifier.h" | 7 #include "net/quic/quic_ack_notifier.h" |
8 #include "net/quic/quic_connection.h" | 8 #include "net/quic/quic_connection.h" |
9 #include "net/quic/quic_utils.h" | 9 #include "net/quic/quic_utils.h" |
10 #include "net/quic/quic_write_blocked_list.h" | 10 #include "net/quic/quic_write_blocked_list.h" |
11 #include "net/quic/spdy_utils.h" | 11 #include "net/quic/spdy_utils.h" |
12 #include "net/quic/test_tools/quic_config_peer.h" | 12 #include "net/quic/test_tools/quic_config_peer.h" |
13 #include "net/quic/test_tools/quic_connection_peer.h" | 13 #include "net/quic/test_tools/quic_connection_peer.h" |
14 #include "net/quic/test_tools/quic_flow_controller_peer.h" | 14 #include "net/quic/test_tools/quic_flow_controller_peer.h" |
15 #include "net/quic/test_tools/quic_session_peer.h" | 15 #include "net/quic/test_tools/quic_session_peer.h" |
16 #include "net/quic/test_tools/quic_test_utils.h" | 16 #include "net/quic/test_tools/quic_test_utils.h" |
17 #include "net/quic/test_tools/reliable_quic_stream_peer.h" | 17 #include "net/quic/test_tools/reliable_quic_stream_peer.h" |
18 #include "net/test/gtest_util.h" | 18 #include "net/test/gtest_util.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gmock_mutant.h" | 20 #include "testing/gmock_mutant.h" |
21 | 21 |
22 using base::StringPiece; | 22 using base::StringPiece; |
23 using std::min; | 23 using std::min; |
| 24 using std::string; |
24 using testing::CreateFunctor; | 25 using testing::CreateFunctor; |
25 using testing::InSequence; | 26 using testing::InSequence; |
26 using testing::Invoke; | 27 using testing::Invoke; |
27 using testing::Return; | 28 using testing::Return; |
28 using testing::SaveArg; | 29 using testing::SaveArg; |
29 using testing::StrictMock; | 30 using testing::StrictMock; |
30 using testing::WithArgs; | 31 using testing::WithArgs; |
31 using testing::_; | 32 using testing::_; |
32 | 33 |
33 namespace net { | 34 namespace net { |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 | 644 |
644 EXPECT_FALSE(stream_->HasFinalReceivedByteOffset()); | 645 EXPECT_FALSE(stream_->HasFinalReceivedByteOffset()); |
645 QuicRstStreamFrame rst_frame(stream_->id(), QUIC_STREAM_CANCELLED, 1234); | 646 QuicRstStreamFrame rst_frame(stream_->id(), QUIC_STREAM_CANCELLED, 1234); |
646 stream_->OnStreamReset(rst_frame); | 647 stream_->OnStreamReset(rst_frame); |
647 EXPECT_TRUE(stream_->HasFinalReceivedByteOffset()); | 648 EXPECT_TRUE(stream_->HasFinalReceivedByteOffset()); |
648 } | 649 } |
649 | 650 |
650 } // namespace | 651 } // namespace |
651 } // namespace test | 652 } // namespace test |
652 } // namespace net | 653 } // namespace net |
OLD | NEW |