blob: fb00050ffcf15e008da4825d313ad5fd0f5b031a [file] [log] [blame]
Nan Zhou042b5ba2021-06-18 09:32:45 -07001// SPDX-License-Identifier: Apache-2.0
2// Copyright (C) 2021 GOOGLE
3
4#pragma once
5
6#include "host_console.hpp"
7
8#include <gmock/gmock.h>
9
10class HostConsoleMock : public HostConsole
11{
12 public:
Patrick Williamsb6752722023-05-10 07:50:26 -050013 HostConsoleMock() : HostConsole("") {}
Nan Zhou042b5ba2021-06-18 09:32:45 -070014 MOCK_METHOD(void, connect, (), (override));
15 MOCK_METHOD(size_t, read, (char* buf, size_t sz), (const, override));
16 // Returns a fixed integer for testing.
17 virtual operator int() const override
18 {
19 return 1;
20 };
21};