Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: net/http2/http2_constants_test_util.h

Issue 2293613002: Add new HTTP/2 and HPACK decoder in net/http2/. (Closed)
Patch Set: Replace LOG(INFO) by VLOG(2) in DecodeBufferTest.SlowDecodeTestStruct so that trybots do not fail. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http2/http2_constants_test.cc ('k') | net/http2/http2_constants_test_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_HTTP2_HTTP2_CONSTANTS_TEST_UTIL_H_
6 #define NET_HTTP2_HTTP2_CONSTANTS_TEST_UTIL_H_
7
8 #include <vector>
9
10 #include "net/http2/http2_constants.h"
11
12 namespace net {
13 namespace test {
14
15 // Returns a vector of all supported frame types.
16 std::vector<Http2FrameType> AllHttp2FrameTypes();
17
18 // Returns a vector of all supported frame flags for the specified
19 // frame type. Empty if the type is unknown.
20 std::vector<Http2FrameFlag> AllHttp2FrameFlagsForFrameType(Http2FrameType type);
21
22 // Returns a vector of all supported RST_STREAM and GOAWAY error codes.
23 std::vector<Http2ErrorCode> AllHttp2ErrorCodes();
24
25 // Returns a vector of all supported parameters in SETTINGS frames.
26 std::vector<Http2SettingsParameter> AllHttp2SettingsParameters();
27
28 // Returns a mask of flags supported for the specified frame type. Returns
29 // zero for unknown frame types.
30 uint8_t KnownFlagsMaskForFrameType(Http2FrameType type);
31
32 // Returns a mask of flag bits known to be invalid for the frame type.
33 // For unknown frame types, the mask is zero; i.e., we don't know that any
34 // are invalid.
35 uint8_t InvalidFlagMaskForFrameType(Http2FrameType type);
36
37 } // namespace test
38 } // namespace net
39
40 #endif // NET_HTTP2_HTTP2_CONSTANTS_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/http2/http2_constants_test.cc ('k') | net/http2/http2_constants_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698