OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_data_stream.h" | 5 #include "net/quic/quic_data_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_spdy_compressor.h" | 9 #include "net/quic/quic_spdy_compressor.h" |
10 #include "net/quic/quic_spdy_decompressor.h" | 10 #include "net/quic/quic_spdy_decompressor.h" |
11 #include "net/quic/quic_utils.h" | 11 #include "net/quic/quic_utils.h" |
12 #include "net/quic/quic_write_blocked_list.h" | 12 #include "net/quic/quic_write_blocked_list.h" |
13 #include "net/quic/spdy_utils.h" | 13 #include "net/quic/spdy_utils.h" |
14 #include "net/quic/test_tools/quic_session_peer.h" | 14 #include "net/quic/test_tools/quic_session_peer.h" |
15 #include "net/quic/test_tools/quic_test_utils.h" | 15 #include "net/quic/test_tools/quic_test_utils.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 | 17 |
18 using base::StringPiece; | 18 using base::StringPiece; |
19 using std::min; | 19 using std::min; |
20 using testing::_; | 20 using testing::_; |
21 using testing::InSequence; | 21 using testing::InSequence; |
22 using testing::Return; | |
23 using testing::SaveArg; | 22 using testing::SaveArg; |
24 using testing::StrEq; | |
25 using testing::StrictMock; | 23 using testing::StrictMock; |
26 | 24 |
27 namespace net { | 25 namespace net { |
28 namespace test { | 26 namespace test { |
29 namespace { | 27 namespace { |
30 | 28 |
31 const QuicConnectionId kStreamId = 3; | 29 const QuicConnectionId kStreamId = 3; |
32 const bool kIsServer = true; | 30 const bool kIsServer = true; |
33 const bool kShouldProcessData = true; | 31 const bool kShouldProcessData = true; |
34 | 32 |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 EXPECT_CALL(*connection_, SendConnectionClose(QUIC_INVALID_HEADER_ID)) | 555 EXPECT_CALL(*connection_, SendConnectionClose(QUIC_INVALID_HEADER_ID)) |
558 .Times(0); | 556 .Times(0); |
559 QuicStreamFrame frame2(stream_->id(), false, compressed_headers.length(), | 557 QuicStreamFrame frame2(stream_->id(), false, compressed_headers.length(), |
560 MakeIOVector("body data")); | 558 MakeIOVector("body data")); |
561 stream_->OnStreamFrame(frame2); | 559 stream_->OnStreamFrame(frame2); |
562 } | 560 } |
563 | 561 |
564 } // namespace | 562 } // namespace |
565 } // namespace test | 563 } // namespace test |
566 } // namespace net | 564 } // namespace net |
OLD | NEW |