| 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/http2/decoder/http2_frame_decoder.h" | 5 #include "net/http2/decoder/http2_frame_decoder.h" |
| 6 | 6 |
| 7 // Tests of Http2FrameDecoder. | 7 // Tests of Http2FrameDecoder. |
| 8 | 8 |
| 9 #include <memory> |
| 9 #include <string> | 10 #include <string> |
| 10 #include <vector> | 11 #include <vector> |
| 11 | 12 |
| 12 #include "base/bind.h" | 13 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
| 14 #include "base/logging.h" | 15 #include "base/logging.h" |
| 15 #include "net/http2/decoder/frame_parts.h" | 16 #include "net/http2/decoder/frame_parts.h" |
| 16 #include "net/http2/decoder/frame_parts_collector_listener.h" | 17 #include "net/http2/decoder/frame_parts_collector_listener.h" |
| 17 #include "net/http2/http2_constants.h" | 18 #include "net/http2/http2_constants.h" |
| 18 #include "net/http2/tools/failure.h" | 19 #include "net/http2/tools/failure.h" |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 0x80u, 0x00, 0x04, 0x00, // Incr: 1024 (plus R bit) | 938 0x80u, 0x00, 0x04, 0x00, // Incr: 1024 (plus R bit) |
| 938 0x00, // Too much | 939 0x00, // Too much |
| 939 }; | 940 }; |
| 940 Http2FrameHeader header(5, Http2FrameType::WINDOW_UPDATE, 0, 1); | 941 Http2FrameHeader header(5, Http2FrameType::WINDOW_UPDATE, 0, 1); |
| 941 EXPECT_TRUE(DecodePayloadExpectingFrameSizeError(kFrameData, header)); | 942 EXPECT_TRUE(DecodePayloadExpectingFrameSizeError(kFrameData, header)); |
| 942 } | 943 } |
| 943 | 944 |
| 944 } // namespace | 945 } // namespace |
| 945 } // namespace test | 946 } // namespace test |
| 946 } // namespace net | 947 } // namespace net |
| OLD | NEW |