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_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_session_peer.h" | 12 #include "net/quic/test_tools/quic_session_peer.h" |
13 #include "net/quic/test_tools/quic_test_utils.h" | 13 #include "net/quic/test_tools/quic_test_utils.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 | 15 |
16 using base::StringPiece; | 16 using base::StringPiece; |
17 using std::min; | 17 using std::min; |
18 using testing::_; | 18 using testing::_; |
19 using testing::InSequence; | 19 using testing::InSequence; |
20 using testing::Return; | |
21 using testing::SaveArg; | 20 using testing::SaveArg; |
22 using testing::StrEq; | |
23 using testing::StrictMock; | 21 using testing::StrictMock; |
24 | 22 |
25 namespace net { | 23 namespace net { |
26 namespace test { | 24 namespace test { |
27 namespace { | 25 namespace { |
28 | 26 |
29 const QuicConnectionId kStreamId = 3; | 27 const QuicConnectionId kStreamId = 3; |
30 const bool kIsServer = true; | 28 const bool kIsServer = true; |
31 const bool kShouldProcessData = true; | 29 const bool kShouldProcessData = true; |
32 | 30 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 size_t bytes_read = stream_->Readv(vec, 2); | 270 size_t bytes_read = stream_->Readv(vec, 2); |
273 ASSERT_EQ(2u, bytes_read) << i; | 271 ASSERT_EQ(2u, bytes_read) << i; |
274 ASSERT_EQ(data.data()[i], buffer1[0]) << i; | 272 ASSERT_EQ(data.data()[i], buffer1[0]) << i; |
275 ASSERT_EQ(data.data()[i + 1], buffer2[0]) << i; | 273 ASSERT_EQ(data.data()[i + 1], buffer2[0]) << i; |
276 } | 274 } |
277 } | 275 } |
278 | 276 |
279 } // namespace | 277 } // namespace |
280 } // namespace test | 278 } // namespace test |
281 } // namespace net | 279 } // namespace net |
OLD | NEW |