OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/spdy/core/spdy_deframer_visitor.h" | 5 #include "net/spdy/core/spdy_deframer_visitor.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <cstdint> | 10 #include <cstdint> |
11 #include <limits> | 11 #include <limits> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/ptr_util.h" | |
15 #include "net/spdy/core/hpack/hpack_constants.h" | 14 #include "net/spdy/core/hpack/hpack_constants.h" |
16 #include "net/spdy/core/mock_spdy_framer_visitor.h" | 15 #include "net/spdy/core/mock_spdy_framer_visitor.h" |
17 #include "net/spdy/core/spdy_frame_builder.h" | 16 #include "net/spdy/core/spdy_frame_builder.h" |
18 #include "net/spdy/core/spdy_frame_reader.h" | 17 #include "net/spdy/core/spdy_frame_reader.h" |
19 #include "net/spdy/core/spdy_protocol.h" | 18 #include "net/spdy/core/spdy_protocol.h" |
20 #include "net/spdy/core/spdy_test_utils.h" | 19 #include "net/spdy/core/spdy_test_utils.h" |
21 #include "net/spdy/platform/api/spdy_ptr_util.h" | 20 #include "net/spdy/platform/api/spdy_ptr_util.h" |
22 #include "net/spdy/platform/api/spdy_string_piece.h" | 21 #include "net/spdy/platform/api/spdy_string_piece.h" |
23 | 22 |
24 using ::testing::AssertionFailure; | 23 using ::testing::AssertionFailure; |
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 // The SpdyFramer will not process any more data at this point. | 1008 // The SpdyFramer will not process any more data at this point. |
1010 void DeframerCallbackCollector::OnError(SpdyFramer* framer, | 1009 void DeframerCallbackCollector::OnError(SpdyFramer* framer, |
1011 SpdyTestDeframer* deframer) { | 1010 SpdyTestDeframer* deframer) { |
1012 CollectedFrame cf; | 1011 CollectedFrame cf; |
1013 cf.error_reported = true; | 1012 cf.error_reported = true; |
1014 collected_frames_->push_back(std::move(cf)); | 1013 collected_frames_->push_back(std::move(cf)); |
1015 } | 1014 } |
1016 | 1015 |
1017 } // namespace test | 1016 } // namespace test |
1018 } // namespace net | 1017 } // namespace net |
OLD | NEW |