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 11A1CAC18DC for ; Fri, 26 Jan 2024 19:52:45 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=LBy39jRBXf7cidDZRoO2h+NFY5OnyyslGXY8lI7uf6k=; 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=1706298764; v=1; b=WPKwKgDrKm1qhOS4HIykSglj4yzjDLXHWaD2FUVrZHS7buQHYx02Vg6dK/7BNg2o+nFZ1w9Q +eQWKrAyIcTkcy6d7pC1ZffeanjE1xT88eHljThX4B1Bt441Xf+7p/CS/gIHTc3e0lrzCGhWr9a etQA9MD3t/pTrddqJL3ZcjVM= X-Received: by 127.0.0.2 with SMTP id YjrGYY7687511xL4d7yh6Q4I; Fri, 26 Jan 2024 11:52:44 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by mx.groups.io with SMTP id smtpd.web10.2642.1706298764001639643 for ; Fri, 26 Jan 2024 11:52:44 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10964"; a="9937426" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="9937426" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2024 11:52:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10964"; a="736772108" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="736772108" X-Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 26 Jan 2024 11:52:43 -0800 X-Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 26 Jan 2024 11:52:42 -0800 X-Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 26 Jan 2024 11:52:41 -0800 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 26 Jan 2024 11:52:41 -0800 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 26 Jan 2024 11:52:41 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kVDKy5t8QubEKghNXcIVCiYxOxkewSia3zFSCz3U89uSWk2zJ81zFZbtdrwLgcVoDOETI57qxVs7byOM2UgfQ03wIIZylF/w8GaD9UJlQH3xoIfv9sb/28eB43XF30lWpHJ3X3ziRGsOFCfmKUN0L0ARw9D/UJjtBrVaywU7LeauPDYvXP1A5Pb4f7h8ray6ZiG7DCqftbnkMtL1sMhPmrRuvGB8aL8gK8CWhF88AUTpi/YAdFt/ymPTERRAEFuEDSYi4iSkcd2T0Nsskdpwb+dmTMfQQSwyvmOxZQMVoHHVhGYIi/AqXrb7pENQgSnJop3spb6ZSXtHF0Bw1Lmrpw== 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=INmnk0a2tucakIazuzZO7VKiEvOwkOLlZ+voOYjF3mA=; b=Vi/01OlhAosUjwFFoLK2VmqPGf2VCkMs0wdpRq63BNYB/gODlX/yamIXNxQGQEwGkK6lrBK+Zycaa/TgmBSl6i3Fn6JpCmYnGbk4qg1UqorFGLk/7oeSWDe8E+OTtu/2yEzNinV7K1qL+Uo0QsEZxqAGfKfi08fzgLwVoVjicr4dwIvDiumDjVC7bAs0qhao5eADvO74BcZp4QzFJO5uvgdpPzIJ1dm7pZsnzU3ohFYgwA76tdMtfpu6IuWt6UBE1m0YCTdje8EYuRPvwZ2Srhqjrk2e+Y0r43w12S7XoK2PzOPDi0T5tg99mhHHik91EcN2rB3NYnFL3seZtdGKWQ== 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 BN9PR11MB5433.namprd11.prod.outlook.com (2603:10b6:408:11e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.28; Fri, 26 Jan 2024 19:52:39 +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.7228.026; Fri, 26 Jan 2024 19:52:39 +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 v2 12/15] MdePkg: Test: Add gRT_GetTime Google Test Mock Thread-Topic: [PATCH v2 12/15] MdePkg: Test: Add gRT_GetTime Google Test Mock Thread-Index: AQHaT+MvJGovXQAw90WUzrsA4a+uybDsgpLA Date: Fri, 26 Jan 2024 19:52:38 +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_|BN9PR11MB5433:EE_ x-ms-office365-filtering-correlation-id: 912ea9aa-9aa9-4cde-1374-08dc1ea859d3 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: IrPJCbniikwhh/Vo1MRaMXBGwstRgYRxBn6wXP2La+jFzXEmwIaWtyStK8oIvyMmC+xzpfRtDiZ23Wlw8GoMcfic2gwHnSTXMNb/vuGQnnvKtXDvE4SScRlIZVDS7gVHAYbuILXhVuBB7cL7+zPVOfpTOSUTRZAmCY6l4CwkeHpwoiOCkeGV0hHrdfNURCreTnk1f8fN36YCFuz06wy/sU3gShE6aNq8khDLK+zino93rnMWwFW0txCc3zOk59QWr0gzIRcDNnPZh7aNZOBmuh0wAOJhsHG7xzMq0mXUsFuZYOJ7ZbyPKsBj2vXseVgv9xxFEM9s/g2cSjrj23xhF8Nh2SRxetQkdhJkibYzYMmAv4yrF4f1b9SOptxArxsLYVuRNEgP9RIyaWzVwJ0urShaXxHuYA1NKiwHlnUPTkdXAo2IuXgOS8oHN9Hc4QoGgMZaTHxhIo17KPYhhBoCMkx/ipas1LST28xiQpVjuU/X+QmBfKchVGHalVp2H1Bt5X8s0zjPgrXTqrrmDEElaqoDP2I2PdDtHZSJUV/7f07B4T+60JiSjnGAbZ1c2kZBj8eiW8CExoARayappA7uq9lbBNGqUkeqoSQvglEP8jsj8EeO0lOGWhLXwct2rSuv x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?hvl3tD56Fn/aYQ9a+FRyyIsjdvBDGejihiR5lW6uWmDYopVUZv3jk1oKusgv?= =?us-ascii?Q?AfaVr5b7d7OVvTTITNG/ndhk1eegGbrtnT5TT3nl+gUlg2jBVQurLbcblCml?= =?us-ascii?Q?9YrpmjSXJyeHQxW66VnL0txbB5Zv29N/dD8wdDfAasfepQWHLFtz2FgQ062L?= =?us-ascii?Q?ahQnRW2DdzS0xfniaBXrl0DFqH5vjMePq0zuQU73V2Gz1JUcyCA4XS/8n0vm?= =?us-ascii?Q?p1jW0L4G1qSHVleuLwvkZ20fEho2mxkq5cyKcJJ6XhlnDjJy6oz9YQAzHIM6?= =?us-ascii?Q?Xeq+EwiqB3PUQO3mrRxlmPh/TRcObTXY8pw5WpDH6iOiHLCqpepLxbvYH/oH?= =?us-ascii?Q?MxHVbcfw+BA79GSLZjITiPfJWpeMcC7QlpIOMup8iZrNrBreFb3LcmUq0MYA?= =?us-ascii?Q?qvoaoJkXQhzkwscbrfmIB+NuHIqYuGD1CXVupHLU6lCfi81mDly5i0YTrqja?= =?us-ascii?Q?Ir8ie8N8FpVYOB7c9r8CWgQcSOFZBl6S4fOjV2zvX6tUjpWbkOVhvhCqCkmV?= =?us-ascii?Q?rG+gu5VWK8pVAriN1+lp175elzx5+WS5XA6dEWJ4z9RxMfPGoPxrpZi8VexC?= =?us-ascii?Q?2MGs4C51L7lzZZzEzSUqfKIBzXPmwx7dBJWSvN6ddR55uQWj87VA7ZXUIENn?= =?us-ascii?Q?BoKODvtoWyfqG4KAi2WVgtPu54reiM8jbuLdrmWV1esT1aJU25+ldOqqposb?= =?us-ascii?Q?bSNlaPipotd3HvXRk0t12Fzlmvp57lzfXHDnuQhCHTlRfpEUrh0//6j/g+uQ?= =?us-ascii?Q?ZkoL0ODCj+qUJc/mwqs2ByN3kM4R/FFACzz+9GW1MQ7DDXfjGYQmveplL0+b?= =?us-ascii?Q?o2W4DboewG6xjaEg9ldHePrdXD1enZO2VMS/gM22SbEVWUQs+z7QP6ABYZvJ?= =?us-ascii?Q?E3ML9dQ5H9+L1kXqa0Mi50Qd7SDycBx+f0WX6u8sV5WEfhiJJdv2iQuAYCjF?= =?us-ascii?Q?sQfeUFbv8ZIK6Lub8KWro11tFTRyN/LrSIi2EYTL1pdNMRm23kOejf1+v7iY?= =?us-ascii?Q?jR0I5rlWVz56v0L7L8pS3+6VYoXe+pTMUHrwaB1yzqFNonZwba6/8lYSbaKf?= =?us-ascii?Q?T9NOp2kIwtHkxAIa4BuKMKiWM3K2tF2gLolY9ceTgXUXVNjqcYR/vIVPnly5?= =?us-ascii?Q?DLzz68PdRQT4Uc19rBHlp8a7IZI11ZpBU+CdOghOvwqA1zWgadepbb2pzDw1?= =?us-ascii?Q?iQ2gBAFySCNxZfPdbzDjCViR+cJqK1JMtp0qRFQtPSlldYkgojHDVW55es+9?= =?us-ascii?Q?gEAnmovEo3LJSJdDipMWqmYBtlFBdGyBc3j5H+WyThSxZfsqkLdrMYmfFG+Z?= =?us-ascii?Q?N2EMcV2PDi5llGE4OIt/vpl68QAyllbK+H+OkgiRtFmWArjp2vu9sbgbMyWh?= =?us-ascii?Q?3F+tBxBr62upDS/5X/vCIvhkGb6kXM2bA9WwbFPEHlJkJ9DavCYYP5w3PGva?= =?us-ascii?Q?H7zF3CQ0ySC1jDWB38e5KbrHST1dTI2JWZKKO3ss6JK1f25c3VoEeiPdX4eN?= =?us-ascii?Q?zUUTMULdZa5+iqZlXnbmkWC3vmk8YFrX7iFaCN16f3XmZSyk8TjP28iKaxcw?= =?us-ascii?Q?Wuvc3w+hxde37aBGFBrSG34Pqk6GKls3WLMHUywbF8mRmRfoKUQB4B71H4n4?= =?us-ascii?Q?WA=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: 912ea9aa-9aa9-4cde-1374-08dc1ea859d3 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jan 2024 19:52:38.9937 (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: VI6Aao8P78J8rGN+2RCh3ZRcnU4WLz0cLlFgqrMYz24eMEQ1LvS+c0eJGTLXRaItTX8EUgVKP/u77Ex7Ga+jvj3+Gb95tK7PvBdQMm5zcog= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR11MB5433 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: udAxaehCGZ2B9xFJfxeSOlSWx7686176AA= 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=WPKwKgDr; 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: Thursday, January 25, 2024 1:55 PM > To: devel@edk2.groups.io > Cc: Douglas Flick [MSFT] ; Kinney, Michael D > ; Liming Gao ; > Liu, Zhiguang > Subject: [PATCH v2 12/15] 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 (#114625): https://edk2.groups.io/g/devel/message/114625 Mute This Topic: https://groups.io/mt/103964988/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-