blob: c3ff189b23ac950ff6f07159f4cc8d9988e157da [file] [log] [blame] [edit]
// Copyright 2021 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef RMAD_UTILS_MOCK_FLASHROM_UTILS_H_
#define RMAD_UTILS_MOCK_FLASHROM_UTILS_H_
#include "rmad/utils/flashrom_utils.h"
#include <gmock/gmock.h>
namespace rmad {
class MockFlashromUtils : public FlashromUtils {
public:
MockFlashromUtils() = default;
~MockFlashromUtils() override = default;
MOCK_METHOD(bool, GetApWriteProtectionStatus, (bool*), (override));
MOCK_METHOD(bool, GetEcWriteProtectionStatus, (bool*), (override));
MOCK_METHOD(bool, EnableApSoftwareWriteProtection, (), (override));
MOCK_METHOD(bool, DisableSoftwareWriteProtection, (), (override));
};
} // namespace rmad
#endif // RMAD_UTILS_MOCK_FLASHROM_UTILS_H_