/proc/self/cwd/test/integration/h2_fuzz.h
Line | Count | Source |
1 | | #pragma once |
2 | | |
3 | | #include "source/common/common/assert.h" |
4 | | #include "source/common/common/logger.h" |
5 | | |
6 | | #include "test/common/http/http2/http2_frame.h" |
7 | | #include "test/fuzz/fuzz_runner.h" |
8 | | #include "test/fuzz/utility.h" |
9 | | #include "test/integration/h2_capture_fuzz.pb.h" |
10 | | #include "test/integration/http_integration.h" |
11 | | |
12 | | namespace Envoy { |
13 | | |
14 | | class H2FuzzIntegrationTest : public HttpIntegrationTest { |
15 | | public: |
16 | | H2FuzzIntegrationTest(Network::Address::IpVersion version) |
17 | 697 | : HttpIntegrationTest(Http::CodecType::HTTP2, version) {} |
18 | | |
19 | | void initialize() override; |
20 | | void replay(const test::integration::H2CaptureFuzzTestCase&, bool ignore_response); |
21 | | const std::chrono::milliseconds max_wait_ms_{10}; |
22 | | |
23 | | private: |
24 | | void sendFrame(const test::integration::H2TestFrame&, |
25 | | std::function<void(const Envoy::Http::Http2::Http2Frame&)>); |
26 | | |
27 | | Filesystem::ScopedUseMemfiles use_memfiles_{true}; |
28 | | }; |
29 | | } // namespace Envoy |