// 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 "sys_interface.hpp"

#include <gmock/gmock.h>

namespace google
{
namespace hoth
{
namespace internal
{

class SysMock : public internal::Sys
{
  public:
    MOCK_CONST_METHOD2(open, int(const char*, int));
    MOCK_CONST_METHOD1(close, int(int));
    MOCK_CONST_METHOD3(lseek, off_t(int, off_t, int));
    MOCK_CONST_METHOD3(read, ssize_t(int, void*, size_t));
    MOCK_CONST_METHOD3(write, ssize_t(int, const void*, size_t));
    MOCK_CONST_METHOD3(ioctl, int(int, unsigned long, void*));
};

} // namespace internal

} // namespace hoth

} // namespace google
