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/core/quic_headers_stream.h" | 5 #include "net/quic/core/quic_headers_stream.h" |
6 | 6 |
7 #include <cstdint> | 7 #include <cstdint> |
8 #include <ostream> | 8 #include <ostream> |
9 #include <string> | 9 #include <string> |
10 #include <tuple> | 10 #include <tuple> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "net/quic/core/quic_utils.h" | 13 #include "net/quic/core/quic_utils.h" |
14 #include "net/quic/core/spdy_utils.h" | 14 #include "net/quic/core/spdy_utils.h" |
15 #include "net/quic/platform/api/quic_bug_tracker.h" | 15 #include "net/quic/platform/api/quic_bug_tracker.h" |
16 #include "net/quic/platform/api/quic_flags.h" | 16 #include "net/quic/platform/api/quic_flags.h" |
17 #include "net/quic/platform/api/quic_logging.h" | 17 #include "net/quic/platform/api/quic_logging.h" |
18 #include "net/quic/platform/api/quic_ptr_util.h" | 18 #include "net/quic/platform/api/quic_ptr_util.h" |
19 #include "net/quic/platform/api/quic_str_cat.h" | 19 #include "net/quic/platform/api/quic_str_cat.h" |
20 #include "net/quic/platform/api/quic_string_piece.h" | 20 #include "net/quic/platform/api/quic_string_piece.h" |
21 #include "net/quic/test_tools/quic_connection_peer.h" | 21 #include "net/quic/test_tools/quic_connection_peer.h" |
22 #include "net/quic/test_tools/quic_spdy_session_peer.h" | 22 #include "net/quic/test_tools/quic_spdy_session_peer.h" |
23 #include "net/quic/test_tools/quic_stream_peer.h" | 23 #include "net/quic/test_tools/quic_stream_peer.h" |
24 #include "net/quic/test_tools/quic_test_utils.h" | 24 #include "net/quic/test_tools/quic_test_utils.h" |
25 #include "net/spdy/spdy_alt_svc_wire_format.h" | 25 #include "net/spdy/chromium/spdy_flags.h" |
26 #include "net/spdy/spdy_flags.h" | 26 #include "net/spdy/core/spdy_alt_svc_wire_format.h" |
27 #include "net/spdy/spdy_protocol.h" | 27 #include "net/spdy/core/spdy_protocol.h" |
28 #include "net/spdy/spdy_test_utils.h" | 28 #include "net/spdy/core/spdy_test_utils.h" |
29 #include "net/test/gtest_util.h" | 29 #include "net/test/gtest_util.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 | 31 |
32 using std::string; | 32 using std::string; |
33 using testing::_; | 33 using testing::_; |
34 using testing::AtLeast; | 34 using testing::AtLeast; |
35 using testing::HasSubstr; | 35 using testing::HasSubstr; |
36 using testing::InSequence; | 36 using testing::InSequence; |
37 using testing::Invoke; | 37 using testing::Invoke; |
38 using testing::Return; | 38 using testing::Return; |
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 consumed_data = session_.WritevStreamData(id, MakeIOVector(data, &iov), | 1031 consumed_data = session_.WritevStreamData(id, MakeIOVector(data, &iov), |
1032 offset, fin, nullptr); | 1032 offset, fin, nullptr); |
1033 | 1033 |
1034 EXPECT_EQ(consumed_data.bytes_consumed, 0u); | 1034 EXPECT_EQ(consumed_data.bytes_consumed, 0u); |
1035 EXPECT_EQ(consumed_data.fin_consumed, false); | 1035 EXPECT_EQ(consumed_data.fin_consumed, false); |
1036 } | 1036 } |
1037 | 1037 |
1038 } // namespace | 1038 } // namespace |
1039 } // namespace test | 1039 } // namespace test |
1040 } // namespace net | 1040 } // namespace net |
OLD | NEW |