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