mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-23 10:38:09 +02:00
Apply uncrustify formatting to GoogleTest cpp and header files. Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Vivian Nowka-Keane <vnowkakeane@linux.microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
40 lines
848 B
C
40 lines
848 B
C
/** @file
|
|
Google Test mocks for UefiLib
|
|
|
|
Copyright (c) 2022, Intel Corporation. All rights reserved.
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
**/
|
|
|
|
#ifndef MOCK_UEFI_LIB_H_
|
|
#define MOCK_UEFI_LIB_H_
|
|
|
|
#include <Library/GoogleTestLib.h>
|
|
#include <Library/FunctionMockLib.h>
|
|
extern "C" {
|
|
#include <Uefi.h>
|
|
#include <Library/UefiLib.h>
|
|
}
|
|
|
|
struct MockUefiLib {
|
|
MOCK_INTERFACE_DECLARATION (MockUefiLib);
|
|
|
|
MOCK_FUNCTION_DECLARATION (
|
|
EFI_STATUS,
|
|
GetVariable2,
|
|
(IN CONST CHAR16 *Name,
|
|
IN CONST EFI_GUID *Guid,
|
|
OUT VOID **Value,
|
|
OUT UINTN *Size OPTIONAL)
|
|
);
|
|
|
|
MOCK_FUNCTION_DECLARATION (
|
|
EFI_STATUS,
|
|
GetEfiGlobalVariable2,
|
|
(IN CONST CHAR16 *Name,
|
|
OUT VOID **Value,
|
|
OUT UINTN *Size OPTIONAL)
|
|
);
|
|
};
|
|
|
|
#endif
|