Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/common/http/http2/request_header_fuzz_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Http {
namespace Http2 {
namespace {

void Replay(const Frame& frame, ServerCodecFrameInjector& codec) {
void replay(const Frame& frame, ServerCodecFrameInjector& codec) {
// Create the server connection containing the nghttp2 session.
TestServerConnectionImplNew connection(
codec.server_connection_, codec.server_callbacks_, codec.stats_store_, codec.options_,
Expand All @@ -32,10 +32,10 @@ DEFINE_FUZZER(const uint8_t* buf, size_t len) {
Frame frame;
frame.assign(buf, buf + len);
// Replay with the fuzzer bytes.
Replay(frame, codec);
replay(frame, codec);
// Try again, but fixup the HEADERS frame to make it a valid HEADERS.
FrameUtils::fixupHeaders(frame);
Replay(frame, codec);
replay(frame, codec);
}

} // namespace
Expand Down
6 changes: 3 additions & 3 deletions test/common/http/http2/response_header_fuzz_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Http {
namespace Http2 {
namespace {

void Replay(const Frame& frame, ClientCodecFrameInjector& codec) {
void replay(const Frame& frame, ClientCodecFrameInjector& codec) {
// Create the client connection containing the nghttp2 session.
TestClientConnectionImplNew connection(
codec.client_connection_, codec.client_callbacks_, codec.stats_store_, codec.options_,
Expand All @@ -40,10 +40,10 @@ DEFINE_FUZZER(const uint8_t* buf, size_t len) {
Frame frame;
frame.assign(buf, buf + len);
// Replay with the fuzzer bytes.
Replay(frame, codec);
replay(frame, codec);
// Try again, but fixup the HEADERS frame to make it a valid HEADERS.
FrameUtils::fixupHeaders(frame);
Replay(frame, codec);
replay(frame, codec);
}

} // namespace
Expand Down