#ifndef QUICHE_HTTP2_TEST_TOOLS_HTTP2_STRUCTURES_TEST_UTIL_H_
#define QUICHE_HTTP2_TEST_TOOLS_HTTP2_STRUCTURES_TEST_UTIL_H_
#include <string>
#include "quiche/http2/http2_structures.h"
#include "quiche/http2/test_tools/http2_frame_builder.h"
#include "quiche/http2/test_tools/http2_random.h"
#include "quiche/common/platform/api/quiche_test.h"
namespace http2 {
namespace test {
template <class S>
std::string SerializeStructure(const S& s) { … }
void Randomize(Http2FrameHeader* out, Http2Random* rng);
void Randomize(Http2PriorityFields* out, Http2Random* rng);
void Randomize(Http2RstStreamFields* out, Http2Random* rng);
void Randomize(Http2SettingFields* out, Http2Random* rng);
void Randomize(Http2PushPromiseFields* out, Http2Random* rng);
void Randomize(Http2PingFields* out, Http2Random* rng);
void Randomize(Http2GoAwayFields* out, Http2Random* rng);
void Randomize(Http2WindowUpdateFields* out, Http2Random* rng);
void Randomize(Http2AltSvcFields* out, Http2Random* rng);
void Randomize(Http2PriorityUpdateFields* out, Http2Random* rng);
void ScrubFlagsOfHeader(Http2FrameHeader* header);
bool FrameIsPadded(const Http2FrameHeader& header);
bool FrameHasPriority(const Http2FrameHeader& header);
bool FrameCanHavePayload(const Http2FrameHeader& header);
bool FrameCanHaveHpackPayload(const Http2FrameHeader& header);
}
}
#endif