Home
last modified time | relevance | path

Searched refs:Http2FrameFlag (Results 1 – 25 of 28) sorted by relevance

12

/external/cronet/net/third_party/quiche/src/quiche/http2/test_tools/
Dhttp2_constants_test_util.cc49 return Http2FrameFlag::END_STREAM | Http2FrameFlag::PADDED; in KnownFlagsMaskForFrameType()
51 return Http2FrameFlag::END_STREAM | Http2FrameFlag::END_HEADERS | in KnownFlagsMaskForFrameType()
52 Http2FrameFlag::PADDED | Http2FrameFlag::PRIORITY; in KnownFlagsMaskForFrameType()
58 return Http2FrameFlag::ACK; in KnownFlagsMaskForFrameType()
60 return Http2FrameFlag::END_HEADERS | Http2FrameFlag::PADDED; in KnownFlagsMaskForFrameType()
62 return Http2FrameFlag::ACK; in KnownFlagsMaskForFrameType()
68 return Http2FrameFlag::END_HEADERS; in KnownFlagsMaskForFrameType()
Dpayload_decoder_base_test_util.h260 (Http2FrameFlag::PADDED & KnownFlagsMaskForFrameType(frame_type))) { in VerifyDetectsMultipleFrameSizeErrors()
263 required_flags &= ~Http2FrameFlag::PADDED; in VerifyDetectsMultipleFrameSizeErrors()
265 required_flags |= Http2FrameFlag::PADDED; in VerifyDetectsMultipleFrameSizeErrors()
309 HTTP2_VERIFY_EQ(0, known_flags & Http2FrameFlag::PADDED); in VerifyDetectsFrameSizeError()
310 HTTP2_VERIFY_EQ(0, required_flags & Http2FrameFlag::PADDED); in VerifyDetectsFrameSizeError()
367 flags |= Http2FrameFlag::PADDED; in RandFlags()
369 flags &= ~Http2FrameFlag::PADDED; in RandFlags()
407 uint8_t flags = RandFlags() | Http2FrameFlag::PADDED; in VerifyDetectsPaddingTooLong()
Dhttp2_structures_test_util.cc20 out->flags = static_cast<Http2FrameFlag>(rng->Rand8()); in Randomize()
Dhttp2_frame_builder_test.cc36 header.flags = Http2FrameFlag::END_HEADERS; in TEST()
/external/cronet/net/third_party/quiche/src/quiche/http2/
Dhttp2_constants_test.cc60 TEST(Http2ConstantsTest, Http2FrameFlag) { in TEST() argument
61 EXPECT_EQ(Http2FrameFlag::END_STREAM, static_cast<Http2FrameFlag>(0x01)); in TEST()
62 EXPECT_EQ(Http2FrameFlag::ACK, static_cast<Http2FrameFlag>(0x01)); in TEST()
63 EXPECT_EQ(Http2FrameFlag::END_HEADERS, static_cast<Http2FrameFlag>(0x04)); in TEST()
64 EXPECT_EQ(Http2FrameFlag::PADDED, static_cast<Http2FrameFlag>(0x08)); in TEST()
65 EXPECT_EQ(Http2FrameFlag::PRIORITY, static_cast<Http2FrameFlag>(0x20)); in TEST()
67 EXPECT_EQ(Http2FrameFlag::END_STREAM, 0x01); in TEST()
68 EXPECT_EQ(Http2FrameFlag::ACK, 0x01); in TEST()
69 EXPECT_EQ(Http2FrameFlag::END_HEADERS, 0x04); in TEST()
70 EXPECT_EQ(Http2FrameFlag::PADDED, 0x08); in TEST()
[all …]
Dhttp2_structures_test.cc181 Values(~Http2FrameFlag::END_STREAM, 0xff)),
185 (flags_ & Http2FrameFlag::END_STREAM) == Http2FrameFlag::END_STREAM; in TEST_P()
198 v.RetainFlags(Http2FrameFlag::END_STREAM); in TEST_P()
219 Values(~Http2FrameFlag::ACK, 0xff)),
222 const bool is_set = (flags_ & Http2FrameFlag::ACK) == Http2FrameFlag::ACK; in TEST_P()
235 v.RetainFlags(Http2FrameFlag::ACK); in TEST_P()
256 Values(~Http2FrameFlag::END_HEADERS, 0xff)),
260 (flags_ & Http2FrameFlag::END_HEADERS) == Http2FrameFlag::END_HEADERS; in TEST_P()
274 v.RetainFlags(Http2FrameFlag::END_HEADERS); in TEST_P()
296 Values(~Http2FrameFlag::PADDED, 0xff)),
[all …]
Dhttp2_constants.cc63 append_and_clear("END_STREAM", Http2FrameFlag::END_STREAM); in Http2FrameFlagsToString()
66 append_and_clear("ACK", Http2FrameFlag::ACK); in Http2FrameFlagsToString()
73 append_and_clear("END_HEADERS", Http2FrameFlag::END_HEADERS); in Http2FrameFlagsToString()
79 append_and_clear("PADDED", Http2FrameFlag::PADDED); in Http2FrameFlagsToString()
84 append_and_clear("PRIORITY", Http2FrameFlag::PRIORITY); in Http2FrameFlagsToString()
Dhttp2_structures.h68 return (flags & Http2FrameFlag::END_STREAM) != 0; in IsEndStream()
76 return (flags & Http2FrameFlag::ACK) != 0; in IsAck()
85 return (flags & Http2FrameFlag::END_HEADERS) != 0; in IsEndHeaders()
94 return (flags & Http2FrameFlag::PADDED) != 0; in IsPadded()
100 return (flags & Http2FrameFlag::PRIORITY) != 0; in HasPriority()
Dhttp2_constants.h69 enum Http2FrameFlag : uint8_t { enum
/external/cronet/net/third_party/quiche/src/quiche/http2/decoder/
Dhttp2_frame_decoder_test.cc273 Http2FrameHeader header(0, Http2FrameType::SETTINGS, Http2FrameFlag::ACK, 0); in TEST_F()
289 Http2FrameFlag::END_HEADERS, 2); in TEST_F()
320 Http2FrameHeader header(8, Http2FrameType::PING, Http2FrameFlag::ACK, 0); in TEST_F()
424 Http2FrameFlag::END_STREAM | Http2FrameFlag::END_HEADERS, 2); in TEST_F()
438 Http2FrameHeader header(5, Http2FrameType::HEADERS, Http2FrameFlag::PRIORITY, in TEST_F()
475 Http2FrameFlag::END_HEADERS, 255); in TEST_F()
507 Http2FrameFlag::END_HEADERS, 2); in TEST_F()
571 Http2FrameFlag::END_STREAM | Http2FrameFlag::PADDED, in TEST_F()
588 Http2FrameHeader header(7, Http2FrameType::HEADERS, Http2FrameFlag::PADDED, in TEST_F()
608 Http2FrameFlag::END_STREAM | in TEST_F()
[all …]
Dhttp2_frame_decoder.cc276 RetainFlags(Http2FrameFlag::END_HEADERS); in StartDecodingContinuationPayload()
290 RetainFlags(Http2FrameFlag::END_STREAM | Http2FrameFlag::PADDED); in StartDecodingDataPayload()
311 RetainFlags(Http2FrameFlag::END_STREAM | Http2FrameFlag::END_HEADERS | in StartDecodingHeadersPayload()
312 Http2FrameFlag::PADDED | Http2FrameFlag::PRIORITY); in StartDecodingHeadersPayload()
324 RetainFlags(Http2FrameFlag::ACK); in StartDecodingPingPayload()
365 RetainFlags(Http2FrameFlag::END_HEADERS | Http2FrameFlag::PADDED); in StartDecodingPushPromisePayload()
393 RetainFlags(Http2FrameFlag::ACK); in StartDecodingSettingsPayload()
Dframe_decoder_state.h224 void ClearFlags() { frame_header_.flags = Http2FrameFlag(); } in ClearFlags()
Ddecode_http2_structures.cc24 out->flags = static_cast<Http2FrameFlag>(b->DecodeUInt8()); in DoDecode()
/external/cronet/net/third_party/quiche/src/quiche/http2/decoder/payload_decoders/
Dheaders_payload_decoder.cc53 ~(Http2FrameFlag::END_STREAM | Http2FrameFlag::END_HEADERS | in StartDecodingPayload()
54 Http2FrameFlag::PADDED | Http2FrameFlag::PRIORITY)); in StartDecodingPayload()
69 const auto payload_flags = Http2FrameFlag::PADDED | Http2FrameFlag::PRIORITY; in StartDecodingPayload()
Dheaders_payload_decoder_test.cc35 return Http2FrameFlag::PADDED | Http2FrameFlag::PRIORITY; in FlagsAffectingPayloadDecoding()
114 flags |= Http2FrameFlag::PRIORITY; in TEST_P()
147 Http2FrameFlag::PRIORITY, fb.buffer(), approve_size, total_pad_length_)); in TEST_P()
Dsettings_payload_decoder_test.cc36 return Http2FrameFlag::ACK; in FlagsAffectingPayloadDecoding()
46 EXPECT_EQ(Http2FrameFlag(), header.flags) << header; in OnSettingsStart()
104 EXPECT_TRUE(VerifyDetectsFrameSizeError(Http2FrameFlag::ACK, fb.buffer(), in TEST_F()
112 RandFlags() | Http2FrameFlag::ACK, stream_id); in TEST_F()
Dping_payload_decoder_test.cc84 RandFlags() & ~Http2FrameFlag::ACK, RandStreamId()); in TEST_F()
99 RandFlags() | Http2FrameFlag::ACK, RandStreamId()); in TEST_F()
Ddata_payload_decoder.cc46 QUICHE_DCHECK_EQ(0, frame_header.flags & ~(Http2FrameFlag::END_STREAM | in StartDecodingPayload()
47 Http2FrameFlag::PADDED)); in StartDecodingPayload()
Dpush_promise_payload_decoder.cc48 QUICHE_DCHECK_EQ(0, frame_header.flags & ~(Http2FrameFlag::END_HEADERS | in StartDecodingPayload()
49 Http2FrameFlag::PADDED)); in StartDecodingPayload()
Dcontinuation_payload_decoder.cc26 QUICHE_DCHECK_EQ(0, frame_header.flags & ~(Http2FrameFlag::END_HEADERS)); in StartDecodingPayload()
Ddata_payload_decoder_test.cc37 return Http2FrameFlag::PADDED; in FlagsAffectingPayloadDecoding()
Dping_payload_decoder.cc25 QUICHE_DCHECK_EQ(0, frame_header.flags & ~(Http2FrameFlag::ACK)); in StartDecodingPayload()
Dsettings_payload_decoder.cc24 QUICHE_DCHECK_EQ(0, frame_header.flags & ~(Http2FrameFlag::ACK)); in StartDecodingPayload()
Dpush_promise_payload_decoder_test.cc37 return Http2FrameFlag::PADDED; in FlagsAffectingPayloadDecoding()
/external/cronet/net/third_party/quiche/src/quiche/spdy/core/
Dhttp2_frame_decoder_adapter.cc79 header->flags = Http2FrameFlag(0xd2); in CorruptFrameHeader()
387 uint8_t valid_flags = Http2FrameFlag::PADDED | Http2FrameFlag::END_STREAM; in OnFrameHeader()

12