From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.101096.1683526674075852574 for ; Sun, 07 May 2023 23:17:54 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=LJcFKfmx; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: victorx.hsu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683526674; x=1715062674; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/APhNRJh0MRXJ9j8fbk3mp9EX22+B2y+aveUH8cgiak=; b=LJcFKfmxQtjWPKyA0KQSVijpbNZJCgOI+Rqwg8SKsFdT6tZQwTl5dUt+ VjvLicXFMSSEYOaRjih6gLtk7Qa2frRr2kwJ9/9Fffi1B2eSyU+srILuX /rUrNvzfWMaLcE6d/yHcMihVtb5KJu5+SIKpv+yQ/SyOI1ssM0fqHMABk afsQwo+NKjY+eznt/jbYxYRgPsQzlN7ut74J46lT4qIl0PSnRPZXQ68dK k7CoK81mPeVI5REKL58XYrmugOXgFWq1Vf6T7RHfmTQVj71jrCMIzwX19 5rgwksO0t/rUfs83Bf0sTYHDakTlHNMtrOIFzPs1hywDDXO+U5r60NpI3 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10703"; a="349600335" X-IronPort-AV: E=Sophos;i="5.99,258,1677571200"; d="scan'208";a="349600335" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2023 23:17:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10703"; a="1028303208" X-IronPort-AV: E=Sophos;i="5.99,258,1677571200"; d="scan'208";a="1028303208" Received: from gguo-desk.gar.corp.intel.com ([10.5.215.23]) by fmsmga005.fm.intel.com with ESMTP; 07 May 2023 23:17:53 -0700 From: victorx.hsu@intel.com To: devel@edk2.groups.io Cc: michael.d.kinney@intel.com, Gua Guo Subject: [PATCH v2 0/2] Add more google mock library Date: Mon, 8 May 2023 14:17:46 +0800 Message-Id: <20230508061748.104-1-victorx.hsu@intel.com> X-Mailer: git-send-email 2.39.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Gua Guo Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=4443 PR: https://github.com/tianocore/edk2/pull/4335 V2: Fixed Azure build failure V1: Add google mock support for HobLib Add google mock support for PciHostBridgeLib Add google mock support for PeiServicesLib Gua Guo (2): MdeModulePkg: Add more PciHostBridgeLib gmock support MdePkg: Add more HobLib/PeiServicesLib gmock support MdeModulePkg/MdeModulePkg.dec | 1 + MdeModulePkg/Test/MdeModulePkgHostTest.dsc | 5 + .../GoogleTest/Library/MockPciHostBridgeLib.h | 40 ++++ .../MockPciHostBridgeLib.cpp | 14 ++ .../MockPciHostBridgeLib.inf | 35 ++++ MdePkg/Test/MdePkgHostTest.dsc | 2 + .../Include/GoogleTest/Library/MockHobLib.h | 150 ++++++++++++++ .../GoogleTest/Library/MockPeiServicesLib.h | 189 ++++++++++++++++++ .../GoogleTest/MockHobLib/MockHobLib.cpp | 30 +++ .../GoogleTest/MockHobLib/MockHobLib.inf | 33 +++ .../MockPeiServicesLib/MockPeiServicesLib.cpp | 36 ++++ .../MockPeiServicesLib/MockPeiServicesLib.inf | 33 +++ 12 files changed, 568 insertions(+) create mode 100644 MdeModulePkg/Test/Mock/Include/GoogleTest/Library/MockPciHostBridgeLib.h create mode 100644 MdeModulePkg/Test/Mock/Library/GoogleTest/MockPciHostBridgeLib/MockPciHostBridgeLib.cpp create mode 100644 MdeModulePkg/Test/Mock/Library/GoogleTest/MockPciHostBridgeLib/MockPciHostBridgeLib.inf create mode 100644 MdePkg/Test/Mock/Include/GoogleTest/Library/MockHobLib.h create mode 100644 MdePkg/Test/Mock/Include/GoogleTest/Library/MockPeiServicesLib.h create mode 100644 MdePkg/Test/Mock/Library/GoogleTest/MockHobLib/MockHobLib.cpp create mode 100644 MdePkg/Test/Mock/Library/GoogleTest/MockHobLib/MockHobLib.inf create mode 100644 MdePkg/Test/Mock/Library/GoogleTest/MockPeiServicesLib/MockPeiServicesLib.cpp create mode 100644 MdePkg/Test/Mock/Library/GoogleTest/MockPeiServicesLib/MockPeiServicesLib.inf -- 2.39.2.windows.1