Nan Zhou | 042b5ba | 2021-06-18 09:32:45 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // Copyright (C) 2021 GOOGLE |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "log_buffer.hpp" |
| 7 | |
| 8 | #include <gmock/gmock.h> |
| 9 | |
| 10 | class LogBufferMock : public LogBuffer |
| 11 | { |
| 12 | public: |
Patrick Williams | b675272 | 2023-05-10 07:50:26 -0500 | [diff] [blame] | 13 | LogBufferMock() : LogBuffer(-1, -1) {} |
Nan Zhou | 042b5ba | 2021-06-18 09:32:45 -0700 | [diff] [blame] | 14 | MOCK_METHOD(void, append, (const char* data, size_t sz), (override)); |
| 15 | MOCK_METHOD(void, setFullHandler, (std::function<void()> cb), (override)); |
| 16 | MOCK_METHOD(bool, empty, (), (const, override)); |
| 17 | MOCK_METHOD(void, clear, (), (override)); |
| 18 | }; |