UnitTestFrameworkPkg: Add subhook submodule required for gmock
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4389 Add subhook submodule that is required to hook internal functions when using gmock. https://github.com/Zeex/subhook Add SubhookLib library class and SubhookLib library instance. Include the SUBHOOK_STATIC define in the SubhookLib INF file so it builds as a static library. Also include the SUBHOOK_STATIC define in SubhookLib.h so all modules using SubhookLib properly link SubhookLib as a static library. Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <quic_llindhol@quicinc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Michael Kubacki <mikuback@linux.microsoft.com> Cc: Sean Brogan <sean.brogan@microsoft.com> Signed-off-by: Chris Johnson <chris.n.johnson@intel.com> Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com> Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Oliver Smith-Denny <osde@linux.microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
		
				
					committed by
					
						![mergify[bot]](/avatar/e3df20cd7a67969c41a65f03bea54961?size=40) mergify[bot]
						mergify[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							6405cd0304
						
					
				
				
					commit
					0c6d851d25
				
			
							
								
								
									
										11
									
								
								UnitTestFrameworkPkg/Library/SubhookLib/SubhookLib.uni
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								UnitTestFrameworkPkg/Library/SubhookLib/SubhookLib.uni
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| // /** @file | ||||
| // This module provides Subhook Library implementation. | ||||
| // | ||||
| // Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> | ||||
| // SPDX-License-Identifier: BSD-2-Clause-Patent | ||||
| // | ||||
| // **/ | ||||
|  | ||||
| #string STR_MODULE_ABSTRACT             #language en-US "Subhook Library implementation" | ||||
|  | ||||
| #string STR_MODULE_DESCRIPTION          #language en-US "This module provides Subhook Library implementation." | ||||
		Reference in New Issue
	
	Block a user