UnitTestFrameworkPkg: Avoid duplicate library function names

There are duplicate library function names between 2 Unit Test libraries
(UnitTestPeiServicesTablePointerLib and UnitTestUefiBootServicesTableLib).
There are 3 functions (UnitTestAllocatePages, UnitTestAllocatePool and
UnitTestFreePage). This update avoids the duplication and prevents a build
error when building a Unit Test application that links the libraries based
on UnitTestFrameworkPkg.

Signed-off-by: Phil Noh <Phil.Noh@amd.com>
This commit is contained in:
Phil Noh
2025-03-13 11:13:52 -05:00
committed by mergify[bot]
parent 9ac1704af6
commit f47d897f93
3 changed files with 9 additions and 9 deletions

View File

@@ -37,8 +37,8 @@ EFI_PEI_SERVICES mPeiServices = {
UnitTestFfsFindSectionData, // FfsFindSectionData
UnitTestInstallPeiMemory, // InstallPeiMemory
UnitTestAllocatePages, // AllocatePages
UnitTestAllocatePool, // AllocatePool
UnitTestPeiAllocatePages, // AllocatePages
UnitTestPeiAllocatePool, // AllocatePool
(EFI_PEI_COPY_MEM)CopyMem,
(EFI_PEI_SET_MEM)SetMem,
@@ -55,7 +55,7 @@ EFI_PEI_SERVICES mPeiServices = {
UnitTestFfsFindSectionData3, // FfsFindSectionData3
UnitTestFfsGetFileInfo2, // FfsGetFileInfo2
UnitTestResetSystem2, // ResetSystem2
UnitTestFreePages, // FreePages
UnitTestPeiFreePages, // FreePages
};
PEI_CORE_INSTANCE mPrivateData;

View File

@@ -430,7 +430,7 @@ UnitTestInstallPeiMemory (
**/
EFI_STATUS
EFIAPI
UnitTestAllocatePages (
UnitTestPeiAllocatePages (
IN CONST EFI_PEI_SERVICES **PeiServices,
IN EFI_MEMORY_TYPE MemoryType,
IN UINTN Pages,
@@ -455,7 +455,7 @@ UnitTestAllocatePages (
**/
EFI_STATUS
EFIAPI
UnitTestAllocatePool (
UnitTestPeiAllocatePool (
IN CONST EFI_PEI_SERVICES **PeiServices,
IN UINTN Size,
OUT VOID **Buffer
@@ -644,7 +644,7 @@ Frees memory pages.
**/
EFI_STATUS
EFIAPI
UnitTestFreePages (
UnitTestPeiFreePages (
IN CONST EFI_PEI_SERVICES **PeiServices,
IN EFI_PHYSICAL_ADDRESS Memory,
IN UINTN Pages

View File

@@ -176,7 +176,7 @@ UnitTestInstallPeiMemory (
**/
EFI_STATUS
EFIAPI
UnitTestAllocatePages (
UnitTestPeiAllocatePages (
IN CONST EFI_PEI_SERVICES **PeiServices,
IN EFI_MEMORY_TYPE MemoryType,
IN UINTN Pages,
@@ -204,7 +204,7 @@ UnitTestAllocatePages (
**/
EFI_STATUS
EFIAPI
UnitTestAllocatePool (
UnitTestPeiAllocatePool (
IN CONST EFI_PEI_SERVICES **PeiServices,
IN UINTN Size,
OUT VOID **Buffer
@@ -420,7 +420,7 @@ Frees memory pages.
**/
EFI_STATUS
EFIAPI
UnitTestFreePages (
UnitTestPeiFreePages (
IN CONST EFI_PEI_SERVICES **PeiServices,
IN EFI_PHYSICAL_ADDRESS Memory,
IN UINTN Pages