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
13
14extern "C" {
15 #include <Uefi.h>
16 #include <Protocol/Rng.h>
17}
18
19struct MockRng {
20 MOCK_INTERFACE_DECLARATION (MockRng);
21
22 MOCK_FUNCTION_DECLARATION (
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 (
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
44extern "C" {
45 extern EFI_RNG_PROTOCOL *gRngProtocol;
46}
47
48#endif // MOCK_RNG_H_
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213