blob: 0d6893857cc78d3872f0b3bb0c0a088ab5a7cc3e [file] [log] [blame]
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include "host_command.hpp"
#include <gmock/gmock.h>
namespace google
{
namespace hoth
{
namespace internal
{
class HostCommandMock : public HostCommand
{
public:
MOCK_METHOD1(sendCommand,
std::vector<uint8_t>(const std::vector<uint8_t>&));
MOCK_METHOD2(sendCommand, std::vector<uint8_t>(const std::vector<uint8_t>&,
std::chrono::milliseconds));
MOCK_METHOD4(sendCommand,
std::vector<uint8_t>(uint16_t, uint8_t, const void*, size_t));
MOCK_METHOD5(sendCommand,
std::vector<uint8_t>(uint16_t, uint8_t, const void*, size_t,
std::chrono::milliseconds));
MOCK_METHOD1(sendCommandAsync, uint64_t(const std::vector<uint8_t>&));
MOCK_METHOD1(getResponse, std::vector<uint8_t>(uint64_t));
MOCK_CONST_METHOD0(communicationFailure, bool());
MOCK_METHOD(int, collectHothLogsAsync, (bool));
MOCK_METHOD(void, collectUartLogsAsync, ());
MOCK_METHOD(void, stopUartLogs, ());
};
} // namespace internal
} // namespace hoth
} // namespace google