-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MdeModulePkg: Use proper MockUefiRuntimeServicesTableLib
For DxeResetSystemLibUnitTestHost, use mock from MdePkg. Co-authored-by: Vivian Nowka-Keane <[email protected]> Co-authored-by: Bret Barkelew <[email protected]>
- Loading branch information
Showing
1 changed file
with
66 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,66 @@ | ||
## @file | ||
# MdeModulePkg DSC file used to build host-based unit tests. | ||
# | ||
# Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR> | ||
# Copyright (C) Microsoft Corporation. | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
## | ||
|
||
[Defines] | ||
PLATFORM_NAME = MdeModulePkgHostTest | ||
PLATFORM_GUID = F74AF7C6-698C-4EBA-BA49-FF6816916354 | ||
PLATFORM_VERSION = 0.1 | ||
DSC_SPECIFICATION = 0x00010005 | ||
OUTPUT_DIRECTORY = Build/MdeModulePkg/HostTest | ||
SUPPORTED_ARCHITECTURES = IA32|X64 | ||
BUILD_TARGETS = NOOPT | ||
SKUID_IDENTIFIER = DEFAULT | ||
|
||
!include UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc | ||
|
||
[LibraryClasses] | ||
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf | ||
|
||
[Components] | ||
MdeModulePkg/Library/DxeResetSystemLib/UnitTest/MockUefiRuntimeServicesTableLib.inf | ||
|
||
# | ||
# Build MdeModulePkg HOST_APPLICATION Tests | ||
# | ||
MdeModulePkg/Library/DxeResetSystemLib/UnitTest/DxeResetSystemLibUnitTestHost.inf { | ||
<LibraryClasses> | ||
ResetSystemLib|MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.inf | ||
UefiRuntimeServicesTableLib|MdeModulePkg/Library/DxeResetSystemLib/UnitTest/MockUefiRuntimeServicesTableLib.inf | ||
} | ||
|
||
MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/VariableLockRequestToLockUnitTest.inf { | ||
<LibraryClasses> | ||
VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf | ||
VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf | ||
<PcdsFixedAtBuild> | ||
gEfiMdeModulePkgTokenSpaceGuid.PcdAllowVariablePolicyEnforcementDisable|TRUE | ||
} | ||
|
||
MdeModulePkg/Library/UefiSortLib/UnitTest/UefiSortLibUnitTest.inf { | ||
<LibraryClasses> | ||
UefiSortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf | ||
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf | ||
} | ||
|
||
MdeModulePkg/Library/UefiSortLib/GoogleTest/UefiSortLibGoogleTest.inf { | ||
<LibraryClasses> | ||
UefiSortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf | ||
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf | ||
} | ||
|
||
MdeModulePkg/Library/ImagePropertiesRecordLib/UnitTest/ImagePropertiesRecordLibUnitTestHost.inf { | ||
<LibraryClasses> | ||
ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf | ||
PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf | ||
} | ||
|
||
# | ||
# Build HOST_APPLICATION Libraries | ||
# | ||
MdeModulePkg/Test/Mock/Library/GoogleTest/MockPciHostBridgeLib/MockPciHostBridgeLib.inf | ||
## @file | ||
# MdeModulePkg DSC file used to build host-based unit tests. | ||
# | ||
# Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR> | ||
# Copyright (C) Microsoft Corporation. | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
## | ||
|
||
[Defines] | ||
PLATFORM_NAME = MdeModulePkgHostTest | ||
PLATFORM_GUID = F74AF7C6-698C-4EBA-BA49-FF6816916354 | ||
PLATFORM_VERSION = 0.1 | ||
DSC_SPECIFICATION = 0x00010005 | ||
OUTPUT_DIRECTORY = Build/MdeModulePkg/HostTest | ||
SUPPORTED_ARCHITECTURES = IA32|X64 | ||
BUILD_TARGETS = NOOPT | ||
SKUID_IDENTIFIER = DEFAULT | ||
|
||
!include UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc | ||
|
||
[LibraryClasses] | ||
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf | ||
|
||
[Components] | ||
# MdeModulePkg/Library/DxeResetSystemLib/UnitTest/MockUefiRuntimeServicesTableLib.inf # MU_CHANGE - Move lib to correct home | ||
|
||
# | ||
# Build MdeModulePkg HOST_APPLICATION Tests | ||
# | ||
MdeModulePkg/Library/DxeResetSystemLib/UnitTest/DxeResetSystemLibUnitTestHost.inf { | ||
<LibraryClasses> | ||
ResetSystemLib|MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.inf | ||
UefiRuntimeServicesTableLib|MdePkg/Test/Mock/Library/Cmocka/MockUefiRuntimeServicesTableLib/MockUefiRuntimeServicesTableLib.inf | ||
} | ||
|
||
MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/VariableLockRequestToLockUnitTest.inf { | ||
<LibraryClasses> | ||
VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf | ||
VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf | ||
<PcdsFixedAtBuild> | ||
gEfiMdeModulePkgTokenSpaceGuid.PcdAllowVariablePolicyEnforcementDisable|TRUE | ||
} | ||
|
||
MdeModulePkg/Library/UefiSortLib/UnitTest/UefiSortLibUnitTest.inf { | ||
<LibraryClasses> | ||
UefiSortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf | ||
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf | ||
} | ||
|
||
MdeModulePkg/Library/UefiSortLib/GoogleTest/UefiSortLibGoogleTest.inf { | ||
<LibraryClasses> | ||
UefiSortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf | ||
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf | ||
} | ||
|
||
MdeModulePkg/Library/ImagePropertiesRecordLib/UnitTest/ImagePropertiesRecordLibUnitTestHost.inf { | ||
<LibraryClasses> | ||
ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf | ||
PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf | ||
} | ||
|
||
# | ||
# Build HOST_APPLICATION Libraries | ||
# | ||
MdeModulePkg/Test/Mock/Library/GoogleTest/MockPciHostBridgeLib/MockPciHostBridgeLib.inf |