TianoCore EDK2
master
Loading...
Searching...
No Matches
MockRng.h
Go to the documentation of this file.
1
8
#ifndef MOCK_RNG_H_
9
#define MOCK_RNG_H_
10
11
#include <
Library/GoogleTestLib.h
>
12
#include <
Library/FunctionMockLib.h
>
13
14
extern
"C"
{
15
#include <
Uefi.h
>
16
#include <
Protocol/Rng.h
>
17
}
18
19
struct
MockRng
{
20
MOCK_INTERFACE_DECLARATION (
MockRng
);
21
22
MOCK_FUNCTION_DECLARATION (
23
EFI_STATUS
,
24
GetInfo,
25
(
26
IN
EFI_RNG_PROTOCOL
*This,
27
IN
OUT
UINTN
*RNGAlgorithmListSize,
28
OUT
EFI_RNG_ALGORITHM
*RNGAlgorithmList
29
)
30
);
31
32
MOCK_FUNCTION_DECLARATION (
33
EFI_STATUS
,
34
GetRng,
35
(
36
IN
EFI_RNG_PROTOCOL
*This,
37
IN
EFI_RNG_ALGORITHM
*RNGAlgorithm,
38
IN
UINTN
RNGValueLength,
39
OUT
UINT8 *RNGValue
40
)
41
);
42
};
43
44
extern
"C"
{
45
extern
EFI_RNG_PROTOCOL
*gRngProtocol;
46
}
47
48
#endif
// MOCK_RNG_H_
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
Rng.h
Uefi.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
_EFI_RNG_PROTOCOL
Definition:
Rng.h:146
GUID
Definition:
Base.h:213
MockRng
Definition:
MockRng.h:19
MdePkg
Test
Mock
Include
GoogleTest
Protocol
MockRng.h
Generated on Fri Nov 15 2024 18:01:18 for TianoCore EDK2 by
1.9.6