TianoCore EDK2
master
Loading...
Searching...
No Matches
MockUefiRuntimeServicesTableLib.h
Go to the documentation of this file.
1
8
#ifndef MOCK_UEFI_RUNTIME_SERVICES_TABLE_LIB_H_
9
#define MOCK_UEFI_RUNTIME_SERVICES_TABLE_LIB_H_
10
11
#include <
Library/GoogleTestLib.h
>
12
#include <
Library/FunctionMockLib.h
>
13
extern
"C"
{
14
#include <
Uefi.h
>
15
#include <
Library/UefiRuntimeServicesTableLib.h
>
16
}
17
18
struct
MockUefiRuntimeServicesTableLib
{
19
MOCK_INTERFACE_DECLARATION (
MockUefiRuntimeServicesTableLib
);
20
21
MOCK_FUNCTION_DECLARATION (
22
EFI_STATUS
,
23
gRT_GetVariable,
24
(
IN
CHAR16 *VariableName,
25
IN
EFI_GUID
*VendorGuid,
26
OUT
UINT32 *Attributes OPTIONAL,
27
IN
OUT
UINTN
*DataSize,
28
OUT
VOID *Data)
29
);
30
31
MOCK_FUNCTION_DECLARATION (
32
EFI_STATUS
,
33
gRT_SetVariable,
34
(
IN
CHAR16 *VariableName,
35
IN
EFI_GUID
*VendorGuid,
36
IN
UINT32 Attributes,
37
IN
UINTN
DataSize,
38
IN
VOID *Data)
39
);
40
41
MOCK_FUNCTION_DECLARATION (
42
EFI_STATUS
,
43
gRT_GetTime,
44
(
OUT
EFI_TIME
*Time,
45
OUT
EFI_TIME_CAPABILITIES
*Capabilities OPTIONAL)
46
);
47
};
48
49
#endif
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
FunctionMockLib.h
GoogleTestLib.h
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
Uefi.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
UefiRuntimeServicesTableLib.h
EFI_TIME_CAPABILITIES
Definition:
UefiSpec.h:793
EFI_TIME
Definition:
UefiBaseType.h:68
GUID
Definition:
Base.h:213
MockUefiRuntimeServicesTableLib
Definition:
MockUefiRuntimeServicesTableLib.h:18
MdePkg
Test
Mock
Include
GoogleTest
Library
MockUefiRuntimeServicesTableLib.h
Generated on Fri Nov 15 2024 18:01:18 for TianoCore EDK2 by
1.9.6