xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/spdy/test_tools/mock_spdy_headers_handler.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2024 The Chromium Authors
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 QUICHE_SPDY_TEST_TOOLS_MOCK_SPDY_HEADERS_HANDLER_H_
6 #define QUICHE_SPDY_TEST_TOOLS_MOCK_SPDY_HEADERS_HANDLER_H_
7 
8 #include <cstddef>
9 
10 #include "absl/strings/string_view.h"
11 #include "quiche/common/platform/api/quiche_export.h"
12 #include "quiche/common/platform/api/quiche_test.h"
13 #include "quiche/spdy/core/spdy_headers_handler_interface.h"
14 
15 namespace spdy {
16 namespace test {
17 
18 class QUICHE_NO_EXPORT MockSpdyHeadersHandler
19     : public SpdyHeadersHandlerInterface {
20  public:
21   MockSpdyHeadersHandler();
22   ~MockSpdyHeadersHandler() override;
23 
24   MOCK_METHOD(void, OnHeaderBlockStart, (), (override));
25   MOCK_METHOD(void, OnHeader, (absl::string_view key, absl::string_view value),
26               (override));
27   MOCK_METHOD(void, OnHeaderBlockEnd,
28               (size_t uncompressed_header_bytes,
29                size_t compressed_header_bytes),
30               (override));
31 };
32 
33 }  // namespace test
34 }  // namespace spdy
35 
36 #endif  // QUICHE_SPDY_TEST_TOOLS_MOCK_SPDY_HEADERS_HANDLER_H_
37