From 5d8674f2bdd536124b1dd026dfa729a1376b3cac Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 30 Nov 2024 12:36:15 -0700 Subject: Import edk2 edk2-stable202411 (hash 0f3867fa6ef0553e26c42f7d71ff6bdb98429742) Bring in the latest stable branch for updated defines (especailly Loongson). Remove ^M as described in sys/contrib/edk2/FREEBSD-upgrade. Not the absolute latest, but aligned to the edk2-stable202411 tag. Sponsored by: Netflix --- .../Library/GoogleTest/MockPostCodeLib/MockPostCodeLib.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 MdePkg/Test/Mock/Library/GoogleTest/MockPostCodeLib/MockPostCodeLib.cpp (limited to 'MdePkg/Test/Mock/Library/GoogleTest/MockPostCodeLib/MockPostCodeLib.cpp') diff --git a/MdePkg/Test/Mock/Library/GoogleTest/MockPostCodeLib/MockPostCodeLib.cpp b/MdePkg/Test/Mock/Library/GoogleTest/MockPostCodeLib/MockPostCodeLib.cpp new file mode 100644 index 000000000000..208ead549a22 --- /dev/null +++ b/MdePkg/Test/Mock/Library/GoogleTest/MockPostCodeLib/MockPostCodeLib.cpp @@ -0,0 +1,14 @@ +/** @file MockPostCodeLib.cpp + Google Test mocks for PostCodeLib + + Copyright (c) Microsoft Corporation. + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#include + +MOCK_INTERFACE_DEFINITION (MockPostCodeLib); +MOCK_FUNCTION_DEFINITION (MockPostCodeLib, PostCode, 1, EFIAPI); +MOCK_FUNCTION_DEFINITION (MockPostCodeLib, PostCodeWithDescription, 2, EFIAPI); +MOCK_FUNCTION_DEFINITION (MockPostCodeLib, PostCodeEnabled, 0, EFIAPI); +MOCK_FUNCTION_DEFINITION (MockPostCodeLib, PostCodeDescriptionEnabled, 0, EFIAPI); -- cgit v1.3