From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.17510.1683250694545605269 for ; Thu, 04 May 2023 18:38:15 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=iWDi0aVQ; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: gua.guo@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683250694; x=1714786694; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=LkzwCidGNH+IvimjKQDhVK0Xcaw1Ig9qDZk/8xJbb7c=; b=iWDi0aVQcNOAVhU2VgaSx81gDMAuS6CnDU/Rx16c3AHoVZpZAqwz9K38 ngmpNBNX05LRL35a+pRNx69FfgypdArIwMyQq72pupZtvSjF9BgvBQQh2 CHcw9SzGeIKJ3T0KszMUsVRN+T2Teuq+mIj+JMGMwmfo95l5/LnI6/Qlb 7IXASMg3JFKqfBWAqkXhDgNkmufi5cjt5HiMbR9dQ7QW7mX5CdLBDvPb3 iwX2g8i1/spfePMnWGbVsKM8Qt4MqhktJxgawqQD/4JJb+IFOT87cI7NQ 8he/Uz1knUkg+Umyfa9TzYRNpmmDe2AyAeIPIuu+86HHk4d17KeaUDq6S g==; X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="329464074" X-IronPort-AV: E=Sophos;i="5.99,250,1677571200"; d="scan'208";a="329464074" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2023 18:38:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="727823244" X-IronPort-AV: E=Sophos;i="5.99,250,1677571200"; d="scan'208";a="727823244" Received: from gguo-desk.gar.corp.intel.com ([10.5.215.23]) by orsmga008.jf.intel.com with ESMTP; 04 May 2023 18:37:59 -0700 From: "Guo, Gua" To: devel@edk2.groups.io Cc: gua.guo@intel.com Subject: [PATCH v1 0/2] Add more google mock library Date: Fri, 5 May 2023 09:37:49 +0800 Message-Id: <20230505013751.497-1-gua.guo@intel.com> X-Mailer: git-send-email 2.39.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Gua Guo Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4443=0D =0D PR: https://github.com/tianocore/edk2/pull/4335=0D =0D V1:=0D Add google mock support for HobLib=0D Add google mock support for PciHostBridgeLib=0D 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/MockP= ciHostBridgeLib.h create mode 100644 MdeModulePkg/Test/Mock/Library/GoogleTest/MockPciHostBr= idgeLib/MockPciHostBridgeLib.cpp create mode 100644 MdeModulePkg/Test/Mock/Library/GoogleTest/MockPciHostBr= idgeLib/MockPciHostBridgeLib.inf create mode 100644 MdePkg/Test/Mock/Include/GoogleTest/Library/MockHobLib.h create mode 100644 MdePkg/Test/Mock/Include/GoogleTest/Library/MockPeiServ= icesLib.h create mode 100644 MdePkg/Test/Mock/Library/GoogleTest/MockHobLib/MockHobL= ib.cpp create mode 100644 MdePkg/Test/Mock/Library/GoogleTest/MockHobLib/MockHobL= ib.inf create mode 100644 MdePkg/Test/Mock/Library/GoogleTest/MockPeiServicesLib/= MockPeiServicesLib.cpp create mode 100644 MdePkg/Test/Mock/Library/GoogleTest/MockPeiServicesLib/= MockPeiServicesLib.inf --=20 2.39.2.windows.1