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/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" | 14 #include "base/memory/ptr_util.h" |
15 #include "net/spdy/hpack/hpack_constants.h" | 15 #include "net/spdy/core/hpack/hpack_constants.h" |
16 #include "net/spdy/mock_spdy_framer_visitor.h" | 16 #include "net/spdy/core/mock_spdy_framer_visitor.h" |
17 #include "net/spdy/spdy_frame_builder.h" | 17 #include "net/spdy/core/spdy_frame_builder.h" |
18 #include "net/spdy/spdy_frame_reader.h" | 18 #include "net/spdy/core/spdy_frame_reader.h" |
19 #include "net/spdy/spdy_protocol.h" | 19 #include "net/spdy/core/spdy_protocol.h" |
20 #include "net/spdy/spdy_test_utils.h" | 20 #include "net/spdy/core/spdy_test_utils.h" |
21 | 21 |
22 using ::base::MakeUnique; | 22 using ::base::MakeUnique; |
23 using ::testing::AssertionFailure; | 23 using ::testing::AssertionFailure; |
24 using ::testing::AssertionResult; | 24 using ::testing::AssertionResult; |
25 using ::testing::AssertionSuccess; | 25 using ::testing::AssertionSuccess; |
26 | 26 |
27 namespace net { | 27 namespace net { |
28 namespace test { | 28 namespace test { |
29 | 29 |
30 // Specify whether to process headers as request or response in visitor-related | 30 // Specify whether to process headers as request or response in visitor-related |
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 // The SpdyFramer will not process any more data at this point. | 1016 // The SpdyFramer will not process any more data at this point. |
1017 void DeframerCallbackCollector::OnError(SpdyFramer* framer, | 1017 void DeframerCallbackCollector::OnError(SpdyFramer* framer, |
1018 SpdyTestDeframer* deframer) { | 1018 SpdyTestDeframer* deframer) { |
1019 CollectedFrame cf; | 1019 CollectedFrame cf; |
1020 cf.error_reported = true; | 1020 cf.error_reported = true; |
1021 collected_frames_->push_back(std::move(cf)); | 1021 collected_frames_->push_back(std::move(cf)); |
1022 } | 1022 } |
1023 | 1023 |
1024 } // namespace test | 1024 } // namespace test |
1025 } // namespace net | 1025 } // namespace net |
OLD | NEW |