TianoCore EDK2
master
Loading...
Searching...
No Matches
MockPostCodeLib.h
Go to the documentation of this file.
1
9
#ifndef MOCK_POST_CODE_LIB_H_
10
#define MOCK_POST_CODE_LIB_H_
11
12
#include <
Library/GoogleTestLib.h
>
13
#include <
Library/FunctionMockLib.h
>
14
extern
"C"
{
15
#include <
Uefi.h
>
16
#include <
Library/PostCodeLib.h
>
17
}
18
19
struct
MockPostCodeLib
{
20
MOCK_INTERFACE_DECLARATION (
MockPostCodeLib
);
21
22
MOCK_FUNCTION_DECLARATION (
23
UINT32,
24
PostCode
,
25
(
26
IN
UINT32 Value
27
)
28
);
29
30
MOCK_FUNCTION_DECLARATION (
31
UINT32,
32
PostCodeWithDescription
,
33
(
34
IN
UINT32 Value,
35
IN
CONST
CHAR8 *Description OPTIONAL
36
)
37
);
38
39
MOCK_FUNCTION_DECLARATION (
40
BOOLEAN,
41
PostCodeEnabled
,
42
(
43
44
)
45
);
46
47
MOCK_FUNCTION_DECLARATION (
48
BOOLEAN,
49
PostCodeDescriptionEnabled
,
50
(
51
52
)
53
);
54
};
55
56
#endif
//MOCK_PCI_EXPRESS_LIB_H_
FunctionMockLib.h
GoogleTestLib.h
CONST
#define CONST
Definition:
Base.h:259
IN
#define IN
Definition:
Base.h:279
PostCodeLib.h
PostCode
UINT32 EFIAPI PostCode(IN UINT32 Value)
Definition:
PostCode.c:35
PostCodeDescriptionEnabled
BOOLEAN EFIAPI PostCodeDescriptionEnabled(VOID)
Definition:
PostCode.c:113
PostCodeWithDescription
UINT32 EFIAPI PostCodeWithDescription(IN UINT32 Value, IN CONST CHAR8 *Description OPTIONAL)
Definition:
PostCode.c:69
PostCodeEnabled
BOOLEAN EFIAPI PostCodeEnabled(VOID)
Definition:
PostCode.c:92
Uefi.h
MockPostCodeLib
Definition:
MockPostCodeLib.h:19
MdePkg
Test
Mock
Include
GoogleTest
Library
MockPostCodeLib.h
Generated on Fri Nov 15 2024 18:01:18 for TianoCore EDK2 by
1.9.6