blob: 6ff36b576af4df6d4281a2ae39a6e53945a10b43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/** @file MockPostCodeLib.h
Google Test mocks for PostCodeLib
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef MOCK_POST_CODE_LIB_H_
#define MOCK_POST_CODE_LIB_H_
#include <Library/GoogleTestLib.h>
#include <Library/FunctionMockLib.h>
extern "C" {
#include <Uefi.h>
#include <Library/PostCodeLib.h>
}
struct MockPostCodeLib {
MOCK_INTERFACE_DECLARATION (MockPostCodeLib);
MOCK_FUNCTION_DECLARATION (
UINT32,
PostCode,
(
IN UINT32 Value
)
);
MOCK_FUNCTION_DECLARATION (
UINT32,
PostCodeWithDescription,
(
IN UINT32 Value,
IN CONST CHAR8 *Description OPTIONAL
)
);
MOCK_FUNCTION_DECLARATION (
BOOLEAN,
PostCodeEnabled,
(
)
);
MOCK_FUNCTION_DECLARATION (
BOOLEAN,
PostCodeDescriptionEnabled,
(
)
);
};
#endif //MOCK_PCI_EXPRESS_LIB_H_
|