REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4389 * Add gmock support to GoogleTestLib * Add FunctionMockLib library class and library instance * Add GoogleTest extension to GoogleTestLib.h for CHAR16 type * Add GoogleTest extension to GoogleTestLib.h for buffer types * HOST_APPLICATION only supports IA32/X64 Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Michael Kubacki <mikuback@linux.microsoft.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Chris Johnson <chris.n.johnson@intel.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>
		
			
				
	
	
		
			64 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ## @file
 | |
| # This Package provides all definitions (including functions, MACROs,
 | |
| # structures library classes, and PCDs) and libraries instances, which are used
 | |
| # to support unit testing and interface testing.
 | |
| #
 | |
| # Copyright (c) Microsoft Corporation.<BR>
 | |
| # SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   DEC_SPECIFICATION = 0x00010005
 | |
|   PACKAGE_NAME      = UnitTestFrameworkPkg
 | |
|   PACKAGE_UNI_FILE  = UnitTestFrameworkPkg.uni
 | |
|   PACKAGE_GUID      = 4A70C4A0-D72C-4D3F-9943-BE7C41C50BA3
 | |
|   PACKAGE_VERSION   = 1.00
 | |
| 
 | |
| [Includes]
 | |
|   Include
 | |
|   Library/CmockaLib/cmocka/include
 | |
|   Library/GoogleTestLib/googletest/googletest/include
 | |
|   Library/GoogleTestLib/googletest/googlemock/include
 | |
|   Library/SubhookLib/subhook
 | |
| 
 | |
| [Includes.Common.Private]
 | |
|   PrivateInclude
 | |
|   Library/CmockaLib/cmocka/include/cmockery
 | |
|   Library/GoogleTestLib/googletest/googletest
 | |
|   Library/GoogleTestLib/googletest/googlemock
 | |
| 
 | |
| [LibraryClasses]
 | |
|   ## @libraryclass Allows save and restore unit test internal state
 | |
|   #
 | |
|   UnitTestPersistenceLib|Include/Library/UnitTestPersistenceLib.h
 | |
| 
 | |
|   ## @libraryclass GoogleTest infrastructure
 | |
|   #
 | |
|   GoogleTestLib|Include/Library/GoogleTestLib.h
 | |
|   SubhookLib|Include/Library/SubhookLib.h
 | |
|   FunctionMockLib|Include/Library/FunctionMockLib.h
 | |
| 
 | |
| [LibraryClasses.Common.Private]
 | |
|   ## @libraryclass Provides a unit test result report
 | |
|   #
 | |
|   UnitTestResultReportLib|PrivateInclude/Library/UnitTestResultReportLib.h
 | |
| 
 | |
|   ## @libraryclass Provides boot-option routines useful in shell-based tests.
 | |
|   #
 | |
|   UnitTestBootLib|PrivateInclude/Library/UnitTestBootLib.h
 | |
| 
 | |
| [Guids]
 | |
|   gUnitTestFrameworkPkgTokenSpaceGuid = { 0x833d3aba, 0x39b4, 0x43a2, { 0xb9, 0x30, 0x7a, 0x34, 0x53, 0x39, 0x31, 0xb3 } }
 | |
| 
 | |
| [PcdsFixedAtBuild]
 | |
|   ## This flag is used to control build time optimization based on unit test
 | |
|   #  log level.  The default value is 0xFFFFFFFF to enable all unit test log
 | |
|   #  messages.
 | |
|   #  BIT0 - Error unit test log messages.<BR>
 | |
|   #  BIT1 - Warning unit test log messages.<BR>
 | |
|   #  BIT2 - Informational unit test log messages.<BR>
 | |
|   #  BIT3 - Verbose unit test log messages.<BR>
 | |
|   # @Prompt  Unit Test Log Message Level
 | |
|   gUnitTestFrameworkPkgTokenSpaceGuid.PcdUnitTestLogLevel|0xFFFFFFFF|UINT32|0x00000001
 |