From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 738BB7803CC for ; Wed, 24 Jan 2024 18:50:21 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=B7w8JgbEX0YdHsG9r3gK7AEBVZitQHogGirYVRhqgVA=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1706122220; v=1; b=PrqGNKoRB7pKXog+PGRRlN1hcQ5njdIMMwOutYbXDAuuoa8jb+Ql/9wLJqVO/5M5XTXr0bMR ORQ0g5o0diChgS7j18ZWcIY/WPXRlOWXja1+Dxz54htTl1I6/2LavLqf4JfTKH0dRArMXEEC1hK TD5vrglkOXPKi5R7rq/2d7yY= X-Received: by 127.0.0.2 with SMTP id YGc5YY7687511x2ea1Hr4jTN; Wed, 24 Jan 2024 10:50:20 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by mx.groups.io with SMTP id smtpd.web11.31420.1706122219122406395 for ; Wed, 24 Jan 2024 10:50:19 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="8615665" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="8615665" X-Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2024 10:50:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="20799893" X-Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmviesa002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 24 Jan 2024 10:50:18 -0800 X-Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 24 Jan 2024 10:50:17 -0800 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 24 Jan 2024 10:50:16 -0800 X-Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Wed, 24 Jan 2024 10:50:16 -0800 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 24 Jan 2024 10:50:16 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lPEbZ4GmN5ISFGd7F4LnbuhE7SuLJ7uIcmxK1c5778kZo0bN51QRva//FolZBHfwAo0lXbSupe72HLG0PZnIw3hDD+zCEiDJeTCYRNwgReJJQUMLJdaae8EEgWGcJsXQXLyYHVv88AuTAukRa20FI283tG2oT09hT4leNETpiesfMXLrpunMbdYFIEWOccTh+PT2IENbx3YLKOrKOwPccY5FN0zveE97K14cJTJrtUinbACTdx4PPr1iKUQDMMIBJdCCZ37b00NpaKbiT7BWyR80vSpzkFEw+JWA/9yLMrtiG+4MrO05kjRShtvTyAmx5okoM9JTxpgACMcIDhnYOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iQHDH7CRAx+BQipQ2s4ypFPElgag9rqI5ayfIwP+94k=; b=RXMn/ekte4mxjq07pnEnBAL5FcFKXdpafl0taNBLhZhxqFt41rbYN9d45QTNRbmRtKe90B6OmX+RxIKxqQpRJ7Y8av5RZE3K9vfZJ1K4z1zWQ6jvx04zpmrYZb59VN1pFGnWfCUcYZR9GBml8Vk2zpYLMof3DdzbsXUHmsPj+z9CZIlF98lyiljVHXNbxbBS4x4K7DckUYZIjx18qaqnPEC0lWibzFRHvA0QLhjMXBskTznhiSd2QoPwk42a61lWKaISKJ2eEhu6xsiZuBY5fiu5c20UFjKWcURHOmzCqbGv0izjvpKarmItFul0l7rzRsjjfWN+zUYbOyvkhoYLFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from CO1PR11MB4929.namprd11.prod.outlook.com (2603:10b6:303:6d::19) by PH8PR11MB8015.namprd11.prod.outlook.com (2603:10b6:510:23b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.22; Wed, 24 Jan 2024 18:50:12 +0000 X-Received: from CO1PR11MB4929.namprd11.prod.outlook.com ([fe80::7e42:1633:d0a6:9c00]) by CO1PR11MB4929.namprd11.prod.outlook.com ([fe80::7e42:1633:d0a6:9c00%6]) with mapi id 15.20.7202.035; Wed, 24 Jan 2024 18:50:12 +0000 From: "Michael D Kinney" To: "Douglas Flick [MSFT]" , "devel@edk2.groups.io" CC: Liming Gao , "Liu, Zhiguang" , "Kinney, Michael D" Subject: Re: [edk2-devel] [PATCH 11/14] MdePkg: Test: Add gRT_GetTime Google Test Mock Thread-Topic: [PATCH 11/14] MdePkg: Test: Add gRT_GetTime Google Test Mock Thread-Index: AQHaToUUe8HiyHz+4Ea7eIGc+FeE/7DpTx/Q Date: Wed, 24 Jan 2024 18:50:12 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO1PR11MB4929:EE_|PH8PR11MB8015:EE_ x-ms-office365-filtering-correlation-id: 6449eed1-c309-4ea7-f021-08dc1d0d4c07 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: e2Nm2UwGvo/4sX6y9ZeVIlPOwkP34rUHiNe66a/O8tJdxY40p5JfjypZKlF+oApIVHS9fANHBK6MoQ8Van+cAZWQ7WfMg3pnfc2EmgxBagCTov41sdNQN5PKClblXrrGWq+hVQe7dMJj7Gu8HQOz8pltvkP3exEWFF7XRJUuQdGmbz5gwe54600D7VzCmUh4dE0EeCPCT09wmlaMskzbNSzCgX65UK0ir7ua5iUh8egXxLb57gqDVW1UzmVU4Voxff+blaXbqcyEEX1ISIwTL1K9Y5pDAoBH4oUQPY5N/UhgEm2ceB9TkrGeQH0yTWeXjJ1PVj7AOqF0wbDTFes3UExn12Hz62ysZLXSTVsoF82wUAkthuKq4KFJTA2M473hu37tCrasz15b1iWvivNlpMjZmTCYS8EsyhihsxJVsoC+xlblZeVOkqyt3y16HcG6LWTRCMZgSCSPCD/S9K2ahBaQLUUM3qGR/p/4I+qwv7w8kR6EWzcAP/Tfm3uZG1aFf8KFQfIu9jB/cqQcDrD94ECvYPlocv4qHlOIT1vQZDnXdyGMtAGqVeJN1KGdeKdbnqs2gUnJh9cDl7y8L+AuBcpLUAoZuL54TShK7h/wjjYuouwrJkZbhY/qI/egMSr+ x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?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ET98iITZFQbxqqhYXurre3rvZugTACe?= =?us-ascii?Q?MCmZFby1mrbDjqe81ms6IVkyNqdw3K9nKIT/BbOjmP9GPr+PnZStXdWFCTlM?= =?us-ascii?Q?D/tMfnF7wnuWMgyP6IL738P/+o3UlwLLZDNmauB70yg0ltJpbNvrrEDTw4Qi?= =?us-ascii?Q?EBg26NKzezz8K+GlkUCrU618kv/sMnT4FE6ZaAxVq8WJjk7BCqp8mtW0sxlf?= =?us-ascii?Q?uIivZpApc9m7BbzdqupZXktY1bPVBHreWLQRv8sFblx+crFvFgCoif/kAb2o?= =?us-ascii?Q?taZYh8wTx1HjgIbazIRVxVXxrLccFUWl+VxGSKKVpteKzGcQESaCJjuaTbmZ?= =?us-ascii?Q?xU+ukRc9gA4kI18LUNYUQFfT9yWYpLuzWmkqSfMGHcF+RkxRqtgCB9aeY2aE?= =?us-ascii?Q?37Ragc9OpLUULNUNxwszTYZdU53LQ4eqswD+RzlqtvsGNkpNf9nXEYAGbYaJ?= =?us-ascii?Q?RHjMYYWPeYTXjlwJxsFkVoRl7jjExF1pVTI0w3omhU6tcacDIxjzrJHCtS6k?= =?us-ascii?Q?ds5euSXnEBXDz10lwutC1FiE3oRB0V9AZk7toFmzykwT++hdjMfQvvdTcq5/?= =?us-ascii?Q?mdACehQckbCm2QEsbZbvQJe9Q64PPLDr2Juo+VBwSQC+6srFCulmjsnRLSSR?= =?us-ascii?Q?CpBMzXBDGRzYMmCG+J6i+b9bKn48EygCqpZEkf/3j531WzcdnhMbD8TcoQUk?= =?us-ascii?Q?MLk8JJxaVa5K+i2AtKxxx+nnU+FY/qi8QOm9nNt4W1JyUPYJYa4UpLSaAx5G?= =?us-ascii?Q?dA=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4929.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6449eed1-c309-4ea7-f021-08dc1d0d4c07 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2024 18:50:12.5574 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /Z37LsERtBNo7rSQsax9EXv1oCRVZ/wySyJQtzq4wfw5unDsxOvS3DeZMVmBEN56pFXnMSoP5IqrgqOvvU5nZ+UICIoS3Z8TKlNQdcqmK1E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR11MB8015 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,michael.d.kinney@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Oj3H0fsSJZDseV2MD56koWJMx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=PrqGNKoR; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Reviewed-by: Michael D Kinney > -----Original Message----- > From: Douglas Flick [MSFT] > Sent: Tuesday, January 23, 2024 7:34 PM > To: devel@edk2.groups.io > Cc: Douglas Flick [MSFT] ; Kinney, Michael D > ; Liming Gao ; > Liu, Zhiguang > Subject: [PATCH 11/14] MdePkg: Test: Add gRT_GetTime Google Test Mock >=20 > This adds support for GetTime Google Test Mock >=20 > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu >=20 > Signed-off-by: Doug Flick [MSFT] > --- > .../GoogleTest/Library/MockUefiRuntimeServicesTableLib.h | 7 +++++++ > .../MockUefiRuntimeServicesTableLib.cpp | 5 +++-- > 2 files changed, 10 insertions(+), 2 deletions(-) >=20 > diff --git > a/MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiRuntimeServicesTab > leLib.h > b/MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiRuntimeServicesTab > leLib.h > index 241abc55c079..bcc902cb93c2 100644 > --- > a/MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiRuntimeServicesTab > leLib.h > +++ > b/MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiRuntimeServicesTab > leLib.h > @@ -37,6 +37,13 @@ struct MockUefiRuntimeServicesTableLib { > IN UINTN DataSize, >=20 > IN VOID *Data) >=20 > ); >=20 > + >=20 > + MOCK_FUNCTION_DECLARATION ( >=20 > + EFI_STATUS, >=20 > + gRT_GetTime, >=20 > + (OUT EFI_TIME *Time, >=20 > + OUT EFI_TIME_CAPABILITIES *Capabilities OPTIONAL) >=20 > + ); >=20 > }; >=20 >=20 >=20 > #endif >=20 > diff --git > a/MdePkg/Test/Mock/Library/GoogleTest/MockUefiRuntimeServicesTableLib/Mo > ckUefiRuntimeServicesTableLib.cpp > b/MdePkg/Test/Mock/Library/GoogleTest/MockUefiRuntimeServicesTableLib/Mo > ckUefiRuntimeServicesTableLib.cpp > index 14296b0ccb88..8d2afd5dd63a 100644 > --- > a/MdePkg/Test/Mock/Library/GoogleTest/MockUefiRuntimeServicesTableLib/Mo > ckUefiRuntimeServicesTableLib.cpp > +++ > b/MdePkg/Test/Mock/Library/GoogleTest/MockUefiRuntimeServicesTableLib/Mo > ckUefiRuntimeServicesTableLib.cpp > @@ -10,11 +10,12 @@ MOCK_INTERFACE_DEFINITION > (MockUefiRuntimeServicesTableLib); >=20 >=20 > MOCK_FUNCTION_DEFINITION (MockUefiRuntimeServicesTableLib, > gRT_GetVariable, 5, EFIAPI); >=20 > MOCK_FUNCTION_DEFINITION (MockUefiRuntimeServicesTableLib, > gRT_SetVariable, 5, EFIAPI); >=20 > +MOCK_FUNCTION_DEFINITION (MockUefiRuntimeServicesTableLib, gRT_GetTime, > 2, EFIAPI); >=20 >=20 >=20 > static EFI_RUNTIME_SERVICES localRt =3D { >=20 > - { 0 }, // EFI_TABLE_HEADER >=20 > + { 0 }, // EFI_TABLE_HEADER >=20 >=20 >=20 > - NULL, // EFI_GET_TIME >=20 > + gRT_GetTime, // EFI_GET_TIME >=20 > NULL, // EFI_SET_TIME >=20 > NULL, // EFI_GET_WAKEUP_TIME >=20 > NULL, // EFI_SET_WAKEUP_TIME >=20 > -- > 2.43.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114349): https://edk2.groups.io/g/devel/message/114349 Mute This Topic: https://groups.io/mt/103926742/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/19134562= 12/xyzzy [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-