forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
h2_fuzz.h
27 lines (21 loc) · 850 Bytes
/
h2_fuzz.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include "common/common/assert.h"
#include "common/common/logger.h"
#include "test/common/http/http2/http2_frame.h"
#include "test/fuzz/fuzz_runner.h"
#include "test/fuzz/utility.h"
#include "test/integration/h2_capture_fuzz.pb.h"
#include "test/integration/http_integration.h"
namespace Envoy {
class H2FuzzIntegrationTest : public HttpIntegrationTest {
public:
H2FuzzIntegrationTest(Network::Address::IpVersion version)
: HttpIntegrationTest(Http::CodecClient::Type::HTTP2, version) {}
void initialize() override;
void replay(const test::integration::H2CaptureFuzzTestCase&, bool ignore_response);
const std::chrono::milliseconds max_wait_ms_{10};
private:
void sendFrame(const test::integration::H2TestFrame&,
std::function<void(const Envoy::Http::Http2::Http2Frame&)>);
};
} // namespace Envoy