blob: 3b71c3c74fbeae979dd68a041c7a4f9cd60848a7 [file] [log] [blame]
// SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2021 GOOGLE
#pragma once
#include "host_console.hpp"
#include <gmock/gmock.h>
class HostConsoleMock : public HostConsole
{
public:
HostConsoleMock() : HostConsole("")
{}
MOCK_METHOD(void, connect, (), (override));
MOCK_METHOD(size_t, read, (char* buf, size_t sz), (const, override));
// Returns a fixed integer for testing.
virtual operator int() const override
{
return 1;
};
};