blob: cfd46ecc491d9954cbe26697e48292b292ecbad0 [file]
/** @file MockPostCodeLib.h
Google Test mocks for PostCodeLib
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Library/GoogleTestLib.h>
#include <Library/FunctionMockLib.h>
extern "C" {
#include <Uefi.h>
#include <Library/PostCodeLib.h>
}
struct MockPostCodeLib {
MOCK_INTERFACE_DECLARATION (MockPostCodeLib);
MOCK_FUNCTION_DECLARATION (
UINT32,
PostCode,
(
IN UINT32 Value
)
);
MOCK_FUNCTION_DECLARATION (
UINT32,
PostCodeWithDescription,
(
IN UINT32 Value,
IN CONST CHAR8 *Description OPTIONAL
)
);
MOCK_FUNCTION_DECLARATION (
BOOLEAN,
PostCodeEnabled,
(
)
);
MOCK_FUNCTION_DECLARATION (
BOOLEAN,
PostCodeDescriptionEnabled,
(
)
);
};