diff options
Diffstat (limited to 'MdePkg/Test/Mock/Include/GoogleTest/Library/MockPostCodeLib.h')
-rw-r--r-- | MdePkg/Test/Mock/Include/GoogleTest/Library/MockPostCodeLib.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/MdePkg/Test/Mock/Include/GoogleTest/Library/MockPostCodeLib.h b/MdePkg/Test/Mock/Include/GoogleTest/Library/MockPostCodeLib.h new file mode 100644 index 0000000000..6ff36b576a --- /dev/null +++ b/MdePkg/Test/Mock/Include/GoogleTest/Library/MockPostCodeLib.h @@ -0,0 +1,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_
|