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 F2801941C8B for ; Wed, 16 Aug 2023 21:15:30 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=99m8AGB1Rw+Oi7WqZvXudR8rK1myhBggKAxzO05s5V0=; c=relaxed/simple; d=groups.io; h=DKIM-Filter:From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1692220529; v=1; b=BDJa/mjSgadHAyQFS2MyvjzG0DskuoPXnVO0aQ5qSOGTHtICoS7cxNE5fwG8+sZ78yugWDUC 2lYX+roU70ZnGCXlX352FTZiP8q2rQ3CgekiR0ROLcQYlWsq4PVxJ17b39acC1cxn2D0esBdJX+ 6VpFrhvLJ7CqODV3vDVERXos= X-Received: by 127.0.0.2 with SMTP id eU8lYY7687511xGkZzBuT8AA; Wed, 16 Aug 2023 14:15:29 -0700 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web10.172578.1692220525974817338 for ; Wed, 16 Aug 2023 14:15:26 -0700 X-Received: from vivian-P520.redmond.corp.microsoft.com (unknown [131.107.1.251]) by linux.microsoft.com (Postfix) with ESMTPSA id 6BF92211F61D; Wed, 16 Aug 2023 14:15:25 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6BF92211F61D From: "VivianNK" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCH v2 4/7] MdePkg: Apply uncrustify formatting to relevant files Date: Wed, 16 Aug 2023 14:15:19 -0700 Message-ID: <20230816211523.12-5-vnowkakeane@linux.microsoft.com> In-Reply-To: <20230816211523.12-1-vnowkakeane@linux.microsoft.com> References: <20230816211523.12-1-vnowkakeane@linux.microsoft.com> MIME-Version: 1.0 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,vnowkakeane@linux.microsoft.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: kNyPRDw6QhQ2ODoiK4QPKYYfx7686176AA= 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="BDJa/mjS"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linux.microsoft.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 Apply uncrustify formatting to GoogleTest cpp and header files. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu =20 Signed-off-by: Vivian Nowka-Keane --- MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/SafeIntLibUintnIntnUnitTests= 32.cpp | 114 ++-- MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/SafeIntLibUintnIntnUnitTests= 64.cpp | 114 ++-- MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/TestBaseSafeIntLib.cpp = | 563 ++++++++++---------- MdePkg/Test/Mock/Include/GoogleTest/Library/MockHobLib.h = | 6 +- MdePkg/Test/Mock/Include/GoogleTest/Library/MockPeiServicesLib.h = | 6 +- MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiLib.h = | 4 +- MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiRuntimeServicesTableLi= b.h | 4 +- MdePkg/Test/Mock/Library/GoogleTest/MockHobLib/MockHobLib.cpp = | 40 +- MdePkg/Test/Mock/Library/GoogleTest/MockPeiServicesLib/MockPeiServicesLib.= cpp | 52 +- MdePkg/Test/Mock/Library/GoogleTest/MockUefiLib/MockUefiLib.cpp = | 6 +- MdePkg/Test/Mock/Library/GoogleTest/MockUefiRuntimeServicesTableLib/MockUe= fiRuntimeServicesTableLib.cpp | 12 +- 11 files changed, 463 insertions(+), 458 deletions(-) diff --git a/MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/SafeIntLibUintnI= ntnUnitTests32.cpp b/MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/SafeIntL= ibUintnIntnUnitTests32.cpp index 6fbf302c1c5e..3f50f0cd99db 100644 --- a/MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/SafeIntLibUintnIntnUnit= Tests32.cpp +++ b/MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/SafeIntLibUintnIntnUnit= Tests32.cpp @@ -14,10 +14,10 @@ extern "C" { #include =0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt32ToUintn) {=0D +TEST (ConversionTestSuite, TestSafeInt32ToUintn) {=0D RETURN_STATUS Status;=0D - INT32 Operand;=0D - UINTN Result;=0D + INT32 Operand;=0D + UINTN Result;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -36,10 +36,10 @@ TEST(ConversionTestSuite, TestSafeInt32ToUintn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint32ToIntn) {=0D +TEST (ConversionTestSuite, TestSafeUint32ToIntn) {=0D RETURN_STATUS Status;=0D - UINT32 Operand;=0D - INTN Result;=0D + UINT32 Operand;=0D + INTN Result;=0D =0D //=0D // If Operand is <=3D MAX_INTN, then it's a cast=0D @@ -58,10 +58,10 @@ TEST(ConversionTestSuite, TestSafeUint32ToIntn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeIntnToInt32) {=0D +TEST (ConversionTestSuite, TestSafeIntnToInt32) {=0D RETURN_STATUS Status;=0D - INTN Operand;=0D - INT32 Result;=0D + INTN Operand;=0D + INT32 Result;=0D =0D //=0D // INTN is same as INT32 in IA32, so this is just a cast=0D @@ -73,10 +73,10 @@ TEST(ConversionTestSuite, TestSafeIntnToInt32) { ASSERT_EQ (0x5bababab, Result);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeIntnToUint32) {=0D +TEST (ConversionTestSuite, TestSafeIntnToUint32) {=0D RETURN_STATUS Status;=0D - INTN Operand;=0D - UINT32 Result;=0D + INTN Operand;=0D + UINT32 Result;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -95,10 +95,10 @@ TEST(ConversionTestSuite, TestSafeIntnToUint32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUintnToUint32) {=0D +TEST (ConversionTestSuite, TestSafeUintnToUint32) {=0D RETURN_STATUS Status;=0D - UINTN Operand;=0D - UINT32 Result;=0D + UINTN Operand;=0D + UINT32 Result;=0D =0D //=0D // UINTN is same as UINT32 in IA32, so this is just a cast=0D @@ -110,10 +110,10 @@ TEST(ConversionTestSuite, TestSafeUintnToUint32) { ASSERT_EQ (0xabababab, Result);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUintnToIntn) {=0D +TEST (ConversionTestSuite, TestSafeUintnToIntn) {=0D RETURN_STATUS Status;=0D - UINTN Operand;=0D - INTN Result;=0D + UINTN Operand;=0D + INTN Result;=0D =0D //=0D // If Operand is <=3D MAX_INTN, then it's a cast=0D @@ -132,10 +132,10 @@ TEST(ConversionTestSuite, TestSafeUintnToIntn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUintnToInt64) {=0D +TEST (ConversionTestSuite, TestSafeUintnToInt64) {=0D RETURN_STATUS Status;=0D - UINTN Operand;=0D - INT64 Result;=0D + UINTN Operand;=0D + INT64 Result;=0D =0D //=0D // UINTN is same as UINT32 in IA32, and UINT32 is a subset of=0D @@ -148,10 +148,10 @@ TEST(ConversionTestSuite, TestSafeUintnToInt64) { ASSERT_EQ (0xabababab, Result);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt64ToIntn) {=0D +TEST (ConversionTestSuite, TestSafeInt64ToIntn) {=0D RETURN_STATUS Status;=0D - INT64 Operand;=0D - INTN Result;=0D + INT64 Operand;=0D + INTN Result;=0D =0D //=0D // If Operand is between MIN_INTN and MAX_INTN2 inclusive, then it's a = cast=0D @@ -179,10 +179,10 @@ TEST(ConversionTestSuite, TestSafeInt64ToIntn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt64ToUintn) {=0D +TEST (ConversionTestSuite, TestSafeInt64ToUintn) {=0D RETURN_STATUS Status;=0D - INT64 Operand;=0D - UINTN Result;=0D + INT64 Operand;=0D + UINTN Result;=0D =0D //=0D // If Operand is between 0 and MAX_UINTN inclusive, then it's a cast=0D @@ -205,10 +205,10 @@ TEST(ConversionTestSuite, TestSafeInt64ToUintn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint64ToIntn) {=0D +TEST (ConversionTestSuite, TestSafeUint64ToIntn) {=0D RETURN_STATUS Status;=0D - UINT64 Operand;=0D - INTN Result;=0D + UINT64 Operand;=0D + INTN Result;=0D =0D //=0D // If Operand is <=3D MAX_INTN, then it's a cast=0D @@ -227,10 +227,10 @@ TEST(ConversionTestSuite, TestSafeUint64ToIntn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint64ToUintn) {=0D +TEST (ConversionTestSuite, TestSafeUint64ToUintn) {=0D RETURN_STATUS Status;=0D - UINT64 Operand;=0D - UINTN Result;=0D + UINT64 Operand;=0D + UINTN Result;=0D =0D //=0D // If Operand is <=3D MAX_UINTN, then it's a cast=0D @@ -249,11 +249,11 @@ TEST(ConversionTestSuite, TestSafeUint64ToUintn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeUintnAdd) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeUintnAdd) {=0D RETURN_STATUS Status;=0D - UINTN Augend;=0D - UINTN Addend;=0D - UINTN Result;=0D + UINTN Augend;=0D + UINTN Addend;=0D + UINTN Result;=0D =0D //=0D // If the result of addition doesn't overflow MAX_UINTN, then it's addit= ion=0D @@ -274,11 +274,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeUintnAdd) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeIntnAdd) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeIntnAdd) {=0D RETURN_STATUS Status;=0D - INTN Augend;=0D - INTN Addend;=0D - INTN Result;=0D + INTN Augend;=0D + INTN Addend;=0D + INTN Result;=0D =0D //=0D // If the result of addition doesn't overflow MAX_INTN=0D @@ -311,11 +311,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeIntnAdd) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeUintnSub) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeUintnSub) {=0D RETURN_STATUS Status;=0D - UINTN Minuend;=0D - UINTN Subtrahend;=0D - UINTN Result;=0D + UINTN Minuend;=0D + UINTN Subtrahend;=0D + UINTN Result;=0D =0D //=0D // If Minuend >=3D Subtrahend, then it's subtraction=0D @@ -336,11 +336,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeUintnSub) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeIntnSub) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeIntnSub) {=0D RETURN_STATUS Status;=0D - INTN Minuend;=0D - INTN Subtrahend;=0D - INTN Result;=0D + INTN Minuend;=0D + INTN Subtrahend;=0D + INTN Result;=0D =0D //=0D // If the result of subtractions doesn't overflow MAX_INTN or=0D @@ -373,11 +373,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeIntnSub) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(MultiplicationTestSuite, TestSafeUintnMult) {=0D +TEST (MultiplicationTestSuite, TestSafeUintnMult) {=0D RETURN_STATUS Status;=0D - UINTN Multiplicand;=0D - UINTN Multiplier;=0D - UINTN Result;=0D + UINTN Multiplicand;=0D + UINTN Multiplier;=0D + UINTN Result;=0D =0D //=0D // If the result of multiplication doesn't overflow MAX_UINTN, it will s= ucceed=0D @@ -398,11 +398,11 @@ TEST(MultiplicationTestSuite, TestSafeUintnMult) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(MultiplicationTestSuite, TestSafeIntnMult) {=0D +TEST (MultiplicationTestSuite, TestSafeIntnMult) {=0D RETURN_STATUS Status;=0D - INTN Multiplicand;=0D - INTN Multiplier;=0D - INTN Result;=0D + INTN Multiplicand;=0D + INTN Multiplier;=0D + INTN Result;=0D =0D //=0D // If the result of multiplication doesn't overflow MAX_INTN and doesn't= =0D diff --git a/MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/SafeIntLibUintnI= ntnUnitTests64.cpp b/MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/SafeIntL= ibUintnIntnUnitTests64.cpp index 6fb0710cfed6..6efdd3be7c5e 100644 --- a/MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/SafeIntLibUintnIntnUnit= Tests64.cpp +++ b/MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/SafeIntLibUintnIntnUnit= Tests64.cpp @@ -14,10 +14,10 @@ extern "C" { #include =0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt32ToUintn) {=0D +TEST (ConversionTestSuite, TestSafeInt32ToUintn) {=0D RETURN_STATUS Status;=0D - INT32 Operand;=0D - UINTN Result;=0D + INT32 Operand;=0D + UINTN Result;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -36,10 +36,10 @@ TEST(ConversionTestSuite, TestSafeInt32ToUintn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint32ToIntn) {=0D +TEST (ConversionTestSuite, TestSafeUint32ToIntn) {=0D RETURN_STATUS Status;=0D - UINT32 Operand;=0D - INTN Result;=0D + UINT32 Operand;=0D + INTN Result;=0D =0D //=0D // For x64, INTN is same as INT64 which is a superset of INT32=0D @@ -56,10 +56,10 @@ TEST(ConversionTestSuite, TestSafeUint32ToIntn) { ASSERT_EQ (0xabababab, Result);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeIntnToInt32) {=0D +TEST (ConversionTestSuite, TestSafeIntnToInt32) {=0D RETURN_STATUS Status;=0D - INTN Operand;=0D - INT32 Result;=0D + INTN Operand;=0D + INT32 Result;=0D =0D //=0D // If Operand is between MIN_INT32 and MAX_INT32 inclusive, then it's a= cast=0D @@ -87,10 +87,10 @@ TEST(ConversionTestSuite, TestSafeIntnToInt32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeIntnToUint32) {=0D +TEST (ConversionTestSuite, TestSafeIntnToUint32) {=0D RETURN_STATUS Status;=0D - INTN Operand;=0D - UINT32 Result;=0D + INTN Operand;=0D + UINT32 Result;=0D =0D //=0D // If Operand is between 0 and MAX_UINT32 inclusive, then it's a cast=0D @@ -113,10 +113,10 @@ TEST(ConversionTestSuite, TestSafeIntnToUint32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUintnToUint32) {=0D +TEST (ConversionTestSuite, TestSafeUintnToUint32) {=0D RETURN_STATUS Status;=0D - UINTN Operand;=0D - UINT32 Result;=0D + UINTN Operand;=0D + UINT32 Result;=0D =0D //=0D // If Operand is <=3D MAX_UINT32, then it's a cast=0D @@ -135,10 +135,10 @@ TEST(ConversionTestSuite, TestSafeUintnToUint32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUintnToIntn) {=0D +TEST (ConversionTestSuite, TestSafeUintnToIntn) {=0D RETURN_STATUS Status;=0D - UINTN Operand;=0D - INTN Result;=0D + UINTN Operand;=0D + INTN Result;=0D =0D //=0D // If Operand is <=3D MAX_INTN (0x7fff_ffff_ffff_ffff), then it's a cast= =0D @@ -157,10 +157,10 @@ TEST(ConversionTestSuite, TestSafeUintnToIntn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUintnToInt64) {=0D +TEST (ConversionTestSuite, TestSafeUintnToInt64) {=0D RETURN_STATUS Status;=0D - UINTN Operand;=0D - INT64 Result;=0D + UINTN Operand;=0D + INT64 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT64, then it's a cast=0D @@ -179,10 +179,10 @@ TEST(ConversionTestSuite, TestSafeUintnToInt64) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt64ToIntn) {=0D +TEST (ConversionTestSuite, TestSafeInt64ToIntn) {=0D RETURN_STATUS Status;=0D - INT64 Operand;=0D - INTN Result;=0D + INT64 Operand;=0D + INTN Result;=0D =0D //=0D // INTN is same as INT64 in x64, so this is just a cast=0D @@ -194,10 +194,10 @@ TEST(ConversionTestSuite, TestSafeInt64ToIntn) { ASSERT_EQ (0x5babababefefefef, Result);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt64ToUintn) {=0D +TEST (ConversionTestSuite, TestSafeInt64ToUintn) {=0D RETURN_STATUS Status;=0D - INT64 Operand;=0D - UINTN Result;=0D + INT64 Operand;=0D + UINTN Result;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -216,10 +216,10 @@ TEST(ConversionTestSuite, TestSafeInt64ToUintn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint64ToIntn) {=0D +TEST (ConversionTestSuite, TestSafeUint64ToIntn) {=0D RETURN_STATUS Status;=0D - UINT64 Operand;=0D - INTN Result;=0D + UINT64 Operand;=0D + INTN Result;=0D =0D //=0D // If Operand is <=3D MAX_INTN (0x7fff_ffff_ffff_ffff), then it's a cast= =0D @@ -238,10 +238,10 @@ TEST(ConversionTestSuite, TestSafeUint64ToIntn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint64ToUintn) {=0D +TEST (ConversionTestSuite, TestSafeUint64ToUintn) {=0D RETURN_STATUS Status;=0D - UINT64 Operand;=0D - UINTN Result;=0D + UINT64 Operand;=0D + UINTN Result;=0D =0D //=0D // UINTN is same as UINT64 in x64, so this is just a cast=0D @@ -253,11 +253,11 @@ TEST(ConversionTestSuite, TestSafeUint64ToUintn) { ASSERT_EQ (0xababababefefefef, Result);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeUintnAdd) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeUintnAdd) {=0D RETURN_STATUS Status;=0D - UINTN Augend;=0D - UINTN Addend;=0D - UINTN Result;=0D + UINTN Augend;=0D + UINTN Addend;=0D + UINTN Result;=0D =0D //=0D // If the result of addition doesn't overflow MAX_UINTN, then it's addit= ion=0D @@ -278,11 +278,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeUintnAdd) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeIntnAdd) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeIntnAdd) {=0D RETURN_STATUS Status;=0D - INTN Augend;=0D - INTN Addend;=0D - INTN Result;=0D + INTN Augend;=0D + INTN Addend;=0D + INTN Result;=0D =0D //=0D // If the result of addition doesn't overflow MAX_INTN=0D @@ -315,11 +315,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeIntnAdd) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeUintnSub) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeUintnSub) {=0D RETURN_STATUS Status;=0D - UINTN Minuend;=0D - UINTN Subtrahend;=0D - UINTN Result;=0D + UINTN Minuend;=0D + UINTN Subtrahend;=0D + UINTN Result;=0D =0D //=0D // If Minuend >=3D Subtrahend, then it's subtraction=0D @@ -340,11 +340,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeUintnSub) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeIntnSub) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeIntnSub) {=0D RETURN_STATUS Status;=0D - INTN Minuend;=0D - INTN Subtrahend;=0D - INTN Result;=0D + INTN Minuend;=0D + INTN Subtrahend;=0D + INTN Result;=0D =0D //=0D // If the result of subtractions doesn't overflow MAX_INTN or=0D @@ -377,11 +377,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeIntnSub) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(MultiplicationTestSuite, TestSafeUintnMult) {=0D +TEST (MultiplicationTestSuite, TestSafeUintnMult) {=0D RETURN_STATUS Status;=0D - UINTN Multiplicand;=0D - UINTN Multiplier;=0D - UINTN Result;=0D + UINTN Multiplicand;=0D + UINTN Multiplier;=0D + UINTN Result;=0D =0D //=0D // If the result of multiplication doesn't overflow MAX_UINTN, it will s= ucceed=0D @@ -402,11 +402,11 @@ TEST(MultiplicationTestSuite, TestSafeUintnMult) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(MultiplicationTestSuite, TestSafeIntnMult) {=0D +TEST (MultiplicationTestSuite, TestSafeIntnMult) {=0D RETURN_STATUS Status;=0D - INTN Multiplicand;=0D - INTN Multiplier;=0D - INTN Result;=0D + INTN Multiplicand;=0D + INTN Multiplier;=0D + INTN Result;=0D =0D //=0D // If the result of multiplication doesn't overflow MAX_INTN and doesn't= =0D diff --git a/MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/TestBaseSafeIntL= ib.cpp b/MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/TestBaseSafeIntLib.c= pp index 1fd51067a1f3..857ab4d1d36c 100644 --- a/MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/TestBaseSafeIntLib.cpp +++ b/MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/TestBaseSafeIntLib.cpp @@ -15,10 +15,10 @@ extern "C" { //=0D // Conversion function tests:=0D //=0D -TEST(ConversionTestSuite, TestSafeInt8ToUint8) {=0D +TEST (ConversionTestSuite, TestSafeInt8ToUint8) {=0D RETURN_STATUS Status;=0D - INT8 Operand;=0D - UINT8 Result;=0D + INT8 Operand;=0D + UINT8 Result;=0D =0D //=0D // Positive UINT8 should result in just a cast=0D @@ -37,10 +37,10 @@ TEST(ConversionTestSuite, TestSafeInt8ToUint8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt8ToUint16) {=0D +TEST (ConversionTestSuite, TestSafeInt8ToUint16) {=0D RETURN_STATUS Status;=0D - INT8 Operand;=0D - UINT16 Result;=0D + INT8 Operand;=0D + UINT16 Result;=0D =0D //=0D // Positive UINT8 should result in just a cast=0D @@ -59,10 +59,10 @@ TEST(ConversionTestSuite, TestSafeInt8ToUint16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt8ToUint32) {=0D +TEST (ConversionTestSuite, TestSafeInt8ToUint32) {=0D RETURN_STATUS Status;=0D - INT8 Operand;=0D - UINT32 Result;=0D + INT8 Operand;=0D + UINT32 Result;=0D =0D //=0D // Positive UINT8 should result in just a cast=0D @@ -81,10 +81,10 @@ TEST(ConversionTestSuite, TestSafeInt8ToUint32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt8ToUintn) {=0D +TEST (ConversionTestSuite, TestSafeInt8ToUintn) {=0D RETURN_STATUS Status;=0D - INT8 Operand;=0D - UINTN Result;=0D + INT8 Operand;=0D + UINTN Result;=0D =0D //=0D // Positive UINT8 should result in just a cast=0D @@ -103,10 +103,10 @@ TEST(ConversionTestSuite, TestSafeInt8ToUintn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt8ToUint64) {=0D +TEST (ConversionTestSuite, TestSafeInt8ToUint64) {=0D RETURN_STATUS Status;=0D - INT8 Operand;=0D - UINT64 Result;=0D + INT8 Operand;=0D + UINT64 Result;=0D =0D //=0D // Positive UINT8 should result in just a cast=0D @@ -125,10 +125,10 @@ TEST(ConversionTestSuite, TestSafeInt8ToUint64) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint8ToInt8) {=0D +TEST (ConversionTestSuite, TestSafeUint8ToInt8) {=0D RETURN_STATUS Status;=0D - UINT8 Operand;=0D - INT8 Result;=0D + UINT8 Operand;=0D + INT8 Result;=0D =0D //=0D // Operand <=3D 0x7F (MAX_INT8) should result in a cast=0D @@ -147,10 +147,10 @@ TEST(ConversionTestSuite, TestSafeUint8ToInt8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint8ToChar8) {=0D +TEST (ConversionTestSuite, TestSafeUint8ToChar8) {=0D RETURN_STATUS Status;=0D - UINT8 Operand;=0D - CHAR8 Result;=0D + UINT8 Operand;=0D + CHAR8 Result;=0D =0D //=0D // CHAR8 is typedefed as char, which by default is signed, thus=0D @@ -174,10 +174,10 @@ TEST(ConversionTestSuite, TestSafeUint8ToChar8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt16ToInt8) {=0D +TEST (ConversionTestSuite, TestSafeInt16ToInt8) {=0D RETURN_STATUS Status;=0D - INT16 Operand;=0D - INT8 Result;=0D + INT16 Operand;=0D + INT8 Result;=0D =0D //=0D // If Operand is between MIN_INT8 and MAX_INT8 inclusive, then it's a ca= st=0D @@ -205,10 +205,10 @@ TEST(ConversionTestSuite, TestSafeInt16ToInt8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt16ToChar8) {=0D +TEST (ConversionTestSuite, TestSafeInt16ToChar8) {=0D RETURN_STATUS Status;=0D - INT16 Operand;=0D - CHAR8 Result;=0D + INT16 Operand;=0D + CHAR8 Result;=0D =0D //=0D // CHAR8 is typedefed as char, which may be signed or unsigned based=0D @@ -252,10 +252,10 @@ TEST(ConversionTestSuite, TestSafeInt16ToChar8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt16ToUint8) {=0D +TEST (ConversionTestSuite, TestSafeInt16ToUint8) {=0D RETURN_STATUS Status;=0D - INT16 Operand;=0D - UINT8 Result;=0D + INT16 Operand;=0D + UINT8 Result;=0D =0D //=0D // If Operand is between 0 and MAX_INT8 inclusive, then it's a cast=0D @@ -278,10 +278,10 @@ TEST(ConversionTestSuite, TestSafeInt16ToUint8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt16ToUint16) {=0D +TEST (ConversionTestSuite, TestSafeInt16ToUint16) {=0D RETURN_STATUS Status;=0D - INT16 Operand =3D 0x5b5b;=0D - UINT16 Result =3D 0;=0D + INT16 Operand =3D 0x5b5b;=0D + UINT16 Result =3D 0;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -298,10 +298,10 @@ TEST(ConversionTestSuite, TestSafeInt16ToUint16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt16ToUint32) {=0D +TEST (ConversionTestSuite, TestSafeInt16ToUint32) {=0D RETURN_STATUS Status;=0D - INT16 Operand;=0D - UINT32 Result;=0D + INT16 Operand;=0D + UINT32 Result;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -320,10 +320,10 @@ TEST(ConversionTestSuite, TestSafeInt16ToUint32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt16ToUintn) {=0D +TEST (ConversionTestSuite, TestSafeInt16ToUintn) {=0D RETURN_STATUS Status;=0D - INT16 Operand;=0D - UINTN Result;=0D + INT16 Operand;=0D + UINTN Result;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -342,10 +342,10 @@ TEST(ConversionTestSuite, TestSafeInt16ToUintn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt16ToUint64) {=0D +TEST (ConversionTestSuite, TestSafeInt16ToUint64) {=0D RETURN_STATUS Status;=0D - INT16 Operand;=0D - UINT64 Result;=0D + INT16 Operand;=0D + UINT64 Result;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -364,10 +364,10 @@ TEST(ConversionTestSuite, TestSafeInt16ToUint64) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint16ToInt8) {=0D +TEST (ConversionTestSuite, TestSafeUint16ToInt8) {=0D RETURN_STATUS Status;=0D - UINT16 Operand;=0D - INT8 Result;=0D + UINT16 Operand;=0D + INT8 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT8, it's a cast=0D @@ -386,10 +386,10 @@ TEST(ConversionTestSuite, TestSafeUint16ToInt8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint16ToChar8) {=0D +TEST (ConversionTestSuite, TestSafeUint16ToChar8) {=0D RETURN_STATUS Status;=0D - UINT16 Operand;=0D - CHAR8 Result;=0D + UINT16 Operand;=0D + CHAR8 Result;=0D =0D // CHAR8 is typedefed as char, which by default is signed, thus=0D // CHAR8 is same as INT8, so same tests as above:=0D @@ -411,10 +411,10 @@ TEST(ConversionTestSuite, TestSafeUint16ToChar8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint16ToUint8) {=0D +TEST (ConversionTestSuite, TestSafeUint16ToUint8) {=0D RETURN_STATUS Status;=0D - UINT16 Operand;=0D - UINT8 Result;=0D + UINT16 Operand;=0D + UINT8 Result;=0D =0D //=0D // If Operand is <=3D MAX_UINT8 (0xff), it's a cast=0D @@ -433,10 +433,10 @@ TEST(ConversionTestSuite, TestSafeUint16ToUint8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint16ToInt16) {=0D +TEST (ConversionTestSuite, TestSafeUint16ToInt16) {=0D RETURN_STATUS Status;=0D - UINT16 Operand;=0D - INT16 Result;=0D + UINT16 Operand;=0D + INT16 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT16 (0x7fff), it's a cast=0D @@ -455,10 +455,10 @@ TEST(ConversionTestSuite, TestSafeUint16ToInt16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt32ToInt8) {=0D +TEST (ConversionTestSuite, TestSafeInt32ToInt8) {=0D RETURN_STATUS Status;=0D - INT32 Operand;=0D - INT8 Result;=0D + INT32 Operand;=0D + INT8 Result;=0D =0D //=0D // If Operand is between MIN_INT8 and MAX_INT8 inclusive, then it's a ca= st=0D @@ -486,10 +486,10 @@ TEST(ConversionTestSuite, TestSafeInt32ToInt8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt32ToChar8) {=0D +TEST (ConversionTestSuite, TestSafeInt32ToChar8) {=0D RETURN_STATUS Status;=0D - INT32 Operand;=0D - CHAR8 Result;=0D + INT32 Operand;=0D + CHAR8 Result;=0D =0D //=0D // CHAR8 is typedefed as char, which may be signed or unsigned based=0D @@ -533,10 +533,10 @@ TEST(ConversionTestSuite, TestSafeInt32ToChar8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt32ToUint8) {=0D +TEST (ConversionTestSuite, TestSafeInt32ToUint8) {=0D RETURN_STATUS Status;=0D - INT32 Operand;=0D - UINT8 Result;=0D + INT32 Operand;=0D + UINT8 Result;=0D =0D //=0D // If Operand is between 0 and MAX_INT8 inclusive, then it's a cast=0D @@ -563,10 +563,10 @@ TEST(ConversionTestSuite, TestSafeInt32ToUint8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt32ToInt16) {=0D +TEST (ConversionTestSuite, TestSafeInt32ToInt16) {=0D RETURN_STATUS Status;=0D - INT32 Operand;=0D - INT16 Result;=0D + INT32 Operand;=0D + INT16 Result;=0D =0D //=0D // If Operand is between MIN_INT16 and MAX_INT16 inclusive, then it's a = cast=0D @@ -594,10 +594,10 @@ TEST(ConversionTestSuite, TestSafeInt32ToInt16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt32ToUint16) {=0D +TEST (ConversionTestSuite, TestSafeInt32ToUint16) {=0D RETURN_STATUS Status;=0D - INT32 Operand;=0D - UINT16 Result;=0D + INT32 Operand;=0D + UINT16 Result;=0D =0D //=0D // If Operand is between 0 and MAX_UINT16 inclusive, then it's a cast=0D @@ -624,10 +624,10 @@ TEST(ConversionTestSuite, TestSafeInt32ToUint16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt32ToUint32) {=0D +TEST (ConversionTestSuite, TestSafeInt32ToUint32) {=0D RETURN_STATUS Status;=0D - INT32 Operand;=0D - UINT32 Result;=0D + INT32 Operand;=0D + UINT32 Result;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -646,10 +646,10 @@ TEST(ConversionTestSuite, TestSafeInt32ToUint32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt32ToUint64) {=0D +TEST (ConversionTestSuite, TestSafeInt32ToUint64) {=0D RETURN_STATUS Status;=0D - INT32 Operand;=0D - UINT64 Result;=0D + INT32 Operand;=0D + UINT64 Result;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -668,10 +668,10 @@ TEST(ConversionTestSuite, TestSafeInt32ToUint64) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint32ToInt8) {=0D +TEST (ConversionTestSuite, TestSafeUint32ToInt8) {=0D RETURN_STATUS Status;=0D - UINT32 Operand;=0D - INT8 Result;=0D + UINT32 Operand;=0D + INT8 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT8, then it's a cast=0D @@ -690,10 +690,10 @@ TEST(ConversionTestSuite, TestSafeUint32ToInt8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint32ToChar8) {=0D +TEST (ConversionTestSuite, TestSafeUint32ToChar8) {=0D RETURN_STATUS Status;=0D - UINT32 Operand;=0D - CHAR8 Result;=0D + UINT32 Operand;=0D + CHAR8 Result;=0D =0D // CHAR8 is typedefed as char, which by default is signed, thus=0D // CHAR8 is same as INT8, so same tests as above:=0D @@ -715,10 +715,10 @@ TEST(ConversionTestSuite, TestSafeUint32ToChar8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint32ToUint8) {=0D +TEST (ConversionTestSuite, TestSafeUint32ToUint8) {=0D RETURN_STATUS Status;=0D - UINT32 Operand;=0D - UINT8 Result;=0D + UINT32 Operand;=0D + UINT8 Result;=0D =0D //=0D // If Operand is <=3D MAX_UINT8, then it's a cast=0D @@ -737,10 +737,10 @@ TEST(ConversionTestSuite, TestSafeUint32ToUint8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint32ToInt16) {=0D +TEST (ConversionTestSuite, TestSafeUint32ToInt16) {=0D RETURN_STATUS Status;=0D - UINT32 Operand;=0D - INT16 Result;=0D + UINT32 Operand;=0D + INT16 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT16, then it's a cast=0D @@ -759,10 +759,10 @@ TEST(ConversionTestSuite, TestSafeUint32ToInt16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint32ToUint16) {=0D +TEST (ConversionTestSuite, TestSafeUint32ToUint16) {=0D RETURN_STATUS Status;=0D - UINT32 Operand;=0D - UINT16 Result;=0D + UINT32 Operand;=0D + UINT16 Result;=0D =0D //=0D // If Operand is <=3D MAX_UINT16, then it's a cast=0D @@ -781,10 +781,10 @@ TEST(ConversionTestSuite, TestSafeUint32ToUint16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint32ToInt32) {=0D +TEST (ConversionTestSuite, TestSafeUint32ToInt32) {=0D RETURN_STATUS Status;=0D - UINT32 Operand;=0D - INT32 Result;=0D + UINT32 Operand;=0D + INT32 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT32, then it's a cast=0D @@ -803,10 +803,10 @@ TEST(ConversionTestSuite, TestSafeUint32ToInt32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeIntnToInt8) {=0D +TEST (ConversionTestSuite, TestSafeIntnToInt8) {=0D RETURN_STATUS Status;=0D - INTN Operand;=0D - INT8 Result;=0D + INTN Operand;=0D + INT8 Result;=0D =0D //=0D // If Operand is between MIN_INT8 and MAX_INT8 inclusive, then it's a ca= st=0D @@ -834,10 +834,10 @@ TEST(ConversionTestSuite, TestSafeIntnToInt8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeIntnToChar8) {=0D +TEST (ConversionTestSuite, TestSafeIntnToChar8) {=0D RETURN_STATUS Status;=0D - INTN Operand;=0D - CHAR8 Result;=0D + INTN Operand;=0D + CHAR8 Result;=0D =0D //=0D // CHAR8 is typedefed as char, which may be signed or unsigned based=0D @@ -881,10 +881,10 @@ TEST(ConversionTestSuite, TestSafeIntnToChar8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeIntnToUint8) {=0D +TEST (ConversionTestSuite, TestSafeIntnToUint8) {=0D RETURN_STATUS Status;=0D - INTN Operand;=0D - UINT8 Result;=0D + INTN Operand;=0D + UINT8 Result;=0D =0D //=0D // If Operand is between 0 and MAX_UINT8 inclusive, then it's a cast=0D @@ -907,10 +907,10 @@ TEST(ConversionTestSuite, TestSafeIntnToUint8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeIntnToInt16) {=0D +TEST (ConversionTestSuite, TestSafeIntnToInt16) {=0D RETURN_STATUS Status;=0D - INTN Operand;=0D - INT16 Result;=0D + INTN Operand;=0D + INT16 Result;=0D =0D //=0D // If Operand is between MIN_INT16 and MAX_INT16 inclusive, then it's a = cast=0D @@ -938,10 +938,10 @@ TEST(ConversionTestSuite, TestSafeIntnToInt16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeIntnToUint16) {=0D +TEST (ConversionTestSuite, TestSafeIntnToUint16) {=0D RETURN_STATUS Status;=0D - INTN Operand;=0D - UINT16 Result;=0D + INTN Operand;=0D + UINT16 Result;=0D =0D //=0D // If Operand is between 0 and MAX_UINT16 inclusive, then it's a cast=0D @@ -964,10 +964,10 @@ TEST(ConversionTestSuite, TestSafeIntnToUint16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeIntnToUintn) {=0D +TEST (ConversionTestSuite, TestSafeIntnToUintn) {=0D RETURN_STATUS Status;=0D - INTN Operand;=0D - UINTN Result;=0D + INTN Operand;=0D + UINTN Result;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -986,10 +986,10 @@ TEST(ConversionTestSuite, TestSafeIntnToUintn) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeIntnToUint64) {=0D +TEST (ConversionTestSuite, TestSafeIntnToUint64) {=0D RETURN_STATUS Status;=0D - INTN Operand;=0D - UINT64 Result;=0D + INTN Operand;=0D + UINT64 Result;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -1008,10 +1008,10 @@ TEST(ConversionTestSuite, TestSafeIntnToUint64) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUintnToInt8) {=0D +TEST (ConversionTestSuite, TestSafeUintnToInt8) {=0D RETURN_STATUS Status;=0D - UINTN Operand;=0D - INT8 Result;=0D + UINTN Operand;=0D + INT8 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT8, then it's a cast=0D @@ -1030,10 +1030,10 @@ TEST(ConversionTestSuite, TestSafeUintnToInt8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUintnToChar8) {=0D +TEST (ConversionTestSuite, TestSafeUintnToChar8) {=0D RETURN_STATUS Status;=0D - UINTN Operand;=0D - CHAR8 Result;=0D + UINTN Operand;=0D + CHAR8 Result;=0D =0D // CHAR8 is typedefed as char, which by default is signed, thus=0D // CHAR8 is same as INT8, so same tests as above:=0D @@ -1055,10 +1055,10 @@ TEST(ConversionTestSuite, TestSafeUintnToChar8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUintnToUint8) {=0D +TEST (ConversionTestSuite, TestSafeUintnToUint8) {=0D RETURN_STATUS Status;=0D - UINTN Operand;=0D - UINT8 Result;=0D + UINTN Operand;=0D + UINT8 Result;=0D =0D //=0D // If Operand is <=3D MAX_UINT8, then it's a cast=0D @@ -1077,10 +1077,10 @@ TEST(ConversionTestSuite, TestSafeUintnToUint8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUintnToInt16) {=0D +TEST (ConversionTestSuite, TestSafeUintnToInt16) {=0D RETURN_STATUS Status;=0D - UINTN Operand;=0D - INT16 Result;=0D + UINTN Operand;=0D + INT16 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT16, then it's a cast=0D @@ -1099,10 +1099,10 @@ TEST(ConversionTestSuite, TestSafeUintnToInt16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUintnToUint16) {=0D +TEST (ConversionTestSuite, TestSafeUintnToUint16) {=0D RETURN_STATUS Status;=0D - UINTN Operand;=0D - UINT16 Result;=0D + UINTN Operand;=0D + UINT16 Result;=0D =0D //=0D // If Operand is <=3D MAX_UINT16, then it's a cast=0D @@ -1121,10 +1121,10 @@ TEST(ConversionTestSuite, TestSafeUintnToUint16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUintnToInt32) {=0D +TEST (ConversionTestSuite, TestSafeUintnToInt32) {=0D RETURN_STATUS Status;=0D - UINTN Operand;=0D - INT32 Result;=0D + UINTN Operand;=0D + INT32 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT32, then it's a cast=0D @@ -1143,10 +1143,10 @@ TEST(ConversionTestSuite, TestSafeUintnToInt32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt64ToInt8) {=0D +TEST (ConversionTestSuite, TestSafeInt64ToInt8) {=0D RETURN_STATUS Status;=0D - INT64 Operand;=0D - INT8 Result;=0D + INT64 Operand;=0D + INT8 Result;=0D =0D //=0D // If Operand is between MIN_INT8 and MAX_INT8 inclusive, then it's a c= ast=0D @@ -1174,10 +1174,10 @@ TEST(ConversionTestSuite, TestSafeInt64ToInt8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt64ToChar8) {=0D +TEST (ConversionTestSuite, TestSafeInt64ToChar8) {=0D RETURN_STATUS Status;=0D - INT64 Operand;=0D - CHAR8 Result;=0D + INT64 Operand;=0D + CHAR8 Result;=0D =0D //=0D // CHAR8 is typedefed as char, which may be signed or unsigned based=0D @@ -1221,10 +1221,10 @@ TEST(ConversionTestSuite, TestSafeInt64ToChar8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt64ToUint8) {=0D +TEST (ConversionTestSuite, TestSafeInt64ToUint8) {=0D RETURN_STATUS Status;=0D - INT64 Operand;=0D - UINT8 Result;=0D + INT64 Operand;=0D + UINT8 Result;=0D =0D //=0D // If Operand is between 0 and MAX_UINT8 inclusive, then it's a cast=0D @@ -1247,10 +1247,10 @@ TEST(ConversionTestSuite, TestSafeInt64ToUint8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt64ToInt16) {=0D +TEST (ConversionTestSuite, TestSafeInt64ToInt16) {=0D RETURN_STATUS Status;=0D - INT64 Operand;=0D - INT16 Result;=0D + INT64 Operand;=0D + INT16 Result;=0D =0D //=0D // If Operand is between MIN_INT16 and MAX_INT16 inclusive, then it's a= cast=0D @@ -1278,10 +1278,10 @@ TEST(ConversionTestSuite, TestSafeInt64ToInt16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt64ToUint16) {=0D +TEST (ConversionTestSuite, TestSafeInt64ToUint16) {=0D RETURN_STATUS Status;=0D - INT64 Operand;=0D - UINT16 Result;=0D + INT64 Operand;=0D + UINT16 Result;=0D =0D //=0D // If Operand is between 0 and MAX_UINT16 inclusive, then it's a cast=0D @@ -1304,10 +1304,10 @@ TEST(ConversionTestSuite, TestSafeInt64ToUint16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt64ToInt32) {=0D +TEST (ConversionTestSuite, TestSafeInt64ToInt32) {=0D RETURN_STATUS Status;=0D - INT64 Operand;=0D - INT32 Result;=0D + INT64 Operand;=0D + INT32 Result;=0D =0D //=0D // If Operand is between MIN_INT32 and MAX_INT32 inclusive, then it's a= cast=0D @@ -1335,10 +1335,10 @@ TEST(ConversionTestSuite, TestSafeInt64ToInt32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt64ToUint32) {=0D +TEST (ConversionTestSuite, TestSafeInt64ToUint32) {=0D RETURN_STATUS Status;=0D - INT64 Operand;=0D - UINT32 Result;=0D + INT64 Operand;=0D + UINT32 Result;=0D =0D //=0D // If Operand is between 0 and MAX_UINT32 inclusive, then it's a cast=0D @@ -1361,10 +1361,10 @@ TEST(ConversionTestSuite, TestSafeInt64ToUint32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeInt64ToUint64) {=0D +TEST (ConversionTestSuite, TestSafeInt64ToUint64) {=0D RETURN_STATUS Status;=0D - INT64 Operand;=0D - UINT64 Result;=0D + INT64 Operand;=0D + UINT64 Result;=0D =0D //=0D // If Operand is non-negative, then it's a cast=0D @@ -1383,10 +1383,10 @@ TEST(ConversionTestSuite, TestSafeInt64ToUint64) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint64ToInt8) {=0D +TEST (ConversionTestSuite, TestSafeUint64ToInt8) {=0D RETURN_STATUS Status;=0D - UINT64 Operand;=0D - INT8 Result;=0D + UINT64 Operand;=0D + INT8 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT8, then it's a cast=0D @@ -1405,10 +1405,10 @@ TEST(ConversionTestSuite, TestSafeUint64ToInt8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint64ToChar8) {=0D +TEST (ConversionTestSuite, TestSafeUint64ToChar8) {=0D RETURN_STATUS Status;=0D - UINT64 Operand;=0D - CHAR8 Result;=0D + UINT64 Operand;=0D + CHAR8 Result;=0D =0D // CHAR8 is typedefed as char, which by default is signed, thus=0D // CHAR8 is same as INT8, so same tests as above:=0D @@ -1430,10 +1430,10 @@ TEST(ConversionTestSuite, TestSafeUint64ToChar8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint64ToUint8) {=0D +TEST (ConversionTestSuite, TestSafeUint64ToUint8) {=0D RETURN_STATUS Status;=0D - UINT64 Operand;=0D - UINT8 Result;=0D + UINT64 Operand;=0D + UINT8 Result;=0D =0D //=0D // If Operand is <=3D MAX_UINT8, then it's a cast=0D @@ -1452,10 +1452,10 @@ TEST(ConversionTestSuite, TestSafeUint64ToUint8) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint64ToInt16) {=0D +TEST (ConversionTestSuite, TestSafeUint64ToInt16) {=0D RETURN_STATUS Status;=0D - UINT64 Operand;=0D - INT16 Result;=0D + UINT64 Operand;=0D + INT16 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT16, then it's a cast=0D @@ -1474,10 +1474,10 @@ TEST(ConversionTestSuite, TestSafeUint64ToInt16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint64ToUint16) {=0D +TEST (ConversionTestSuite, TestSafeUint64ToUint16) {=0D RETURN_STATUS Status;=0D - UINT64 Operand;=0D - UINT16 Result;=0D + UINT64 Operand;=0D + UINT16 Result;=0D =0D //=0D // If Operand is <=3D MAX_UINT16, then it's a cast=0D @@ -1496,10 +1496,10 @@ TEST(ConversionTestSuite, TestSafeUint64ToUint16) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint64ToInt32) {=0D +TEST (ConversionTestSuite, TestSafeUint64ToInt32) {=0D RETURN_STATUS Status;=0D - UINT64 Operand;=0D - INT32 Result;=0D + UINT64 Operand;=0D + INT32 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT32, then it's a cast=0D @@ -1518,10 +1518,10 @@ TEST(ConversionTestSuite, TestSafeUint64ToInt32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint64ToUint32) {=0D +TEST (ConversionTestSuite, TestSafeUint64ToUint32) {=0D RETURN_STATUS Status;=0D - UINT64 Operand;=0D - UINT32 Result;=0D + UINT64 Operand;=0D + UINT32 Result;=0D =0D //=0D // If Operand is <=3D MAX_UINT32, then it's a cast=0D @@ -1540,10 +1540,10 @@ TEST(ConversionTestSuite, TestSafeUint64ToUint32) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(ConversionTestSuite, TestSafeUint64ToInt64) {=0D +TEST (ConversionTestSuite, TestSafeUint64ToInt64) {=0D RETURN_STATUS Status;=0D - UINT64 Operand;=0D - INT64 Result;=0D + UINT64 Operand;=0D + INT64 Result;=0D =0D //=0D // If Operand is <=3D MAX_INT64, then it's a cast=0D @@ -1565,11 +1565,11 @@ TEST(ConversionTestSuite, TestSafeUint64ToInt64) { //=0D // Addition function tests:=0D //=0D -TEST(AdditionSubtractionTestSuite, TestSafeUint8Add) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeUint8Add) {=0D RETURN_STATUS Status;=0D - UINT8 Augend;=0D - UINT8 Addend;=0D - UINT8 Result;=0D + UINT8 Augend;=0D + UINT8 Addend;=0D + UINT8 Result;=0D =0D //=0D // If the result of addition doesn't overflow MAX_UINT8, then it's addit= ion=0D @@ -1590,11 +1590,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeUint8Add= ) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeUint16Add) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeUint16Add) {=0D RETURN_STATUS Status;=0D - UINT16 Augend =3D 0x3a3a;=0D - UINT16 Addend =3D 0x3a3a;=0D - UINT16 Result =3D 0;=0D + UINT16 Augend =3D 0x3a3a;=0D + UINT16 Addend =3D 0x3a3a;=0D + UINT16 Result =3D 0;=0D =0D //=0D // If the result of addition doesn't overflow MAX_UINT16, then it's addi= tion=0D @@ -1612,11 +1612,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeUint16Ad= d) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeUint32Add) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeUint32Add) {=0D RETURN_STATUS Status;=0D - UINT32 Augend;=0D - UINT32 Addend;=0D - UINT32 Result;=0D + UINT32 Augend;=0D + UINT32 Addend;=0D + UINT32 Result;=0D =0D //=0D // If the result of addition doesn't overflow MAX_UINT32, then it's addi= tion=0D @@ -1637,11 +1637,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeUint32Ad= d) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeUint64Add) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeUint64Add) {=0D RETURN_STATUS Status;=0D - UINT64 Augend;=0D - UINT64 Addend;=0D - UINT64 Result;=0D + UINT64 Augend;=0D + UINT64 Addend;=0D + UINT64 Result;=0D =0D //=0D // If the result of addition doesn't overflow MAX_UINT64, then it's addi= tion=0D @@ -1662,11 +1662,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeUint64Ad= d) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeInt8Add) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeInt8Add) {=0D RETURN_STATUS Status;=0D - INT8 Augend;=0D - INT8 Addend;=0D - INT8 Result;=0D + INT8 Augend;=0D + INT8 Addend;=0D + INT8 Result;=0D =0D //=0D // If the result of addition doesn't overflow MAX_INT8=0D @@ -1699,11 +1699,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeInt8Add)= { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeInt16Add) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeInt16Add) {=0D RETURN_STATUS Status;=0D - INT16 Augend;=0D - INT16 Addend;=0D - INT16 Result;=0D + INT16 Augend;=0D + INT16 Addend;=0D + INT16 Result;=0D =0D //=0D // If the result of addition doesn't overflow MAX_INT16=0D @@ -1736,11 +1736,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeInt16Add= ) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeInt32Add) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeInt32Add) {=0D RETURN_STATUS Status;=0D - INT32 Augend;=0D - INT32 Addend;=0D - INT32 Result;=0D + INT32 Augend;=0D + INT32 Addend;=0D + INT32 Result;=0D =0D //=0D // If the result of addition doesn't overflow MAX_INT32=0D @@ -1773,11 +1773,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeInt32Add= ) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeInt64Add) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeInt64Add) {=0D RETURN_STATUS Status;=0D - INT64 Augend;=0D - INT64 Addend;=0D - INT64 Result;=0D + INT64 Augend;=0D + INT64 Addend;=0D + INT64 Result;=0D =0D //=0D // If the result of addition doesn't overflow MAX_INT64=0D @@ -1813,11 +1813,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeInt64Add= ) { //=0D // Subtraction function tests:=0D //=0D -TEST(AdditionSubtractionTestSuite, TestSafeUint8Sub) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeUint8Sub) {=0D RETURN_STATUS Status;=0D - UINT8 Minuend;=0D - UINT8 Subtrahend;=0D - UINT8 Result;=0D + UINT8 Minuend;=0D + UINT8 Subtrahend;=0D + UINT8 Result;=0D =0D //=0D // If Minuend >=3D Subtrahend, then it's subtraction=0D @@ -1838,11 +1838,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeUint8Sub= ) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeUint16Sub) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeUint16Sub) {=0D RETURN_STATUS Status;=0D - UINT16 Minuend;=0D - UINT16 Subtrahend;=0D - UINT16 Result;=0D + UINT16 Minuend;=0D + UINT16 Subtrahend;=0D + UINT16 Result;=0D =0D //=0D // If Minuend >=3D Subtrahend, then it's subtraction=0D @@ -1863,11 +1863,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeUint16Su= b) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeUint32Sub) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeUint32Sub) {=0D RETURN_STATUS Status;=0D - UINT32 Minuend;=0D - UINT32 Subtrahend;=0D - UINT32 Result;=0D + UINT32 Minuend;=0D + UINT32 Subtrahend;=0D + UINT32 Result;=0D =0D //=0D // If Minuend >=3D Subtrahend, then it's subtraction=0D @@ -1888,11 +1888,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeUint32Su= b) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeUint64Sub) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeUint64Sub) {=0D RETURN_STATUS Status;=0D - UINT64 Minuend;=0D - UINT64 Subtrahend;=0D - UINT64 Result;=0D + UINT64 Minuend;=0D + UINT64 Subtrahend;=0D + UINT64 Result;=0D =0D //=0D // If Minuend >=3D Subtrahend, then it's subtraction=0D @@ -1913,11 +1913,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeUint64Su= b) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeInt8Sub) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeInt8Sub) {=0D RETURN_STATUS Status;=0D - INT8 Minuend;=0D - INT8 Subtrahend;=0D - INT8 Result;=0D + INT8 Minuend;=0D + INT8 Subtrahend;=0D + INT8 Result;=0D =0D //=0D // If the result of subtractions doesn't overflow MAX_INT8 or=0D @@ -1950,11 +1950,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeInt8Sub)= { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeInt16Sub) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeInt16Sub) {=0D RETURN_STATUS Status;=0D - INT16 Minuend;=0D - INT16 Subtrahend;=0D - INT16 Result;=0D + INT16 Minuend;=0D + INT16 Subtrahend;=0D + INT16 Result;=0D =0D //=0D // If the result of subtractions doesn't overflow MAX_INT16 or=0D @@ -1987,11 +1987,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeInt16Sub= ) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeInt32Sub) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeInt32Sub) {=0D RETURN_STATUS Status;=0D - INT32 Minuend;=0D - INT32 Subtrahend;=0D - INT32 Result;=0D + INT32 Minuend;=0D + INT32 Subtrahend;=0D + INT32 Result;=0D =0D //=0D // If the result of subtractions doesn't overflow MAX_INT32 or=0D @@ -2024,11 +2024,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeInt32Sub= ) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(AdditionSubtractionTestSuite, TestSafeInt64Sub) {=0D +TEST (AdditionSubtractionTestSuite, TestSafeInt64Sub) {=0D RETURN_STATUS Status;=0D - INT64 Minuend;=0D - INT64 Subtrahend;=0D - INT64 Result;=0D + INT64 Minuend;=0D + INT64 Subtrahend;=0D + INT64 Result;=0D =0D //=0D // If the result of subtractions doesn't overflow MAX_INT64 or=0D @@ -2064,11 +2064,11 @@ TEST(AdditionSubtractionTestSuite, TestSafeInt64Sub= ) { //=0D // Multiplication function tests:=0D //=0D -TEST(MultiplicationTestSuite, TestSafeUint8Mult) {=0D +TEST (MultiplicationTestSuite, TestSafeUint8Mult) {=0D RETURN_STATUS Status;=0D - UINT8 Multiplicand;=0D - UINT8 Multiplier;=0D - UINT8 Result;=0D + UINT8 Multiplicand;=0D + UINT8 Multiplier;=0D + UINT8 Result;=0D =0D //=0D // If the result of multiplication doesn't overflow MAX_UINT8, it will s= ucceed=0D @@ -2089,11 +2089,11 @@ TEST(MultiplicationTestSuite, TestSafeUint8Mult) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(MultiplicationTestSuite, TestSafeUint16Mult) {=0D +TEST (MultiplicationTestSuite, TestSafeUint16Mult) {=0D RETURN_STATUS Status;=0D - UINT16 Multiplicand;=0D - UINT16 Multiplier;=0D - UINT16 Result;=0D + UINT16 Multiplicand;=0D + UINT16 Multiplier;=0D + UINT16 Result;=0D =0D //=0D // If the result of multiplication doesn't overflow MAX_UINT16, it will = succeed=0D @@ -2114,11 +2114,11 @@ TEST(MultiplicationTestSuite, TestSafeUint16Mult) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(MultiplicationTestSuite, TestSafeUint32Mult) {=0D +TEST (MultiplicationTestSuite, TestSafeUint32Mult) {=0D RETURN_STATUS Status;=0D - UINT32 Multiplicand;=0D - UINT32 Multiplier;=0D - UINT32 Result;=0D + UINT32 Multiplicand;=0D + UINT32 Multiplier;=0D + UINT32 Result;=0D =0D //=0D // If the result of multiplication doesn't overflow MAX_UINT32, it will = succeed=0D @@ -2139,11 +2139,11 @@ TEST(MultiplicationTestSuite, TestSafeUint32Mult) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(MultiplicationTestSuite, TestSafeUint64Mult) {=0D +TEST (MultiplicationTestSuite, TestSafeUint64Mult) {=0D RETURN_STATUS Status;=0D - UINT64 Multiplicand;=0D - UINT64 Multiplier;=0D - UINT64 Result;=0D + UINT64 Multiplicand;=0D + UINT64 Multiplier;=0D + UINT64 Result;=0D =0D //=0D // If the result of multiplication doesn't overflow MAX_UINT64, it will = succeed=0D @@ -2164,11 +2164,11 @@ TEST(MultiplicationTestSuite, TestSafeUint64Mult) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(MultiplicationTestSuite, TestSafeInt8Mult) {=0D +TEST (MultiplicationTestSuite, TestSafeInt8Mult) {=0D RETURN_STATUS Status;=0D - INT8 Multiplicand;=0D - INT8 Multiplier;=0D - INT8 Result;=0D + INT8 Multiplicand;=0D + INT8 Multiplier;=0D + INT8 Result;=0D =0D //=0D // If the result of multiplication doesn't overflow MAX_INT8 and doesn't= =0D @@ -2190,11 +2190,11 @@ TEST(MultiplicationTestSuite, TestSafeInt8Mult) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(MultiplicationTestSuite, TestSafeInt16Mult) {=0D +TEST (MultiplicationTestSuite, TestSafeInt16Mult) {=0D RETURN_STATUS Status;=0D - INT16 Multiplicand;=0D - INT16 Multiplier;=0D - INT16 Result;=0D + INT16 Multiplicand;=0D + INT16 Multiplier;=0D + INT16 Result;=0D =0D //=0D // If the result of multiplication doesn't overflow MAX_INT16 and doesn'= t=0D @@ -2216,11 +2216,11 @@ TEST(MultiplicationTestSuite, TestSafeInt16Mult) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(MultiplicationTestSuite, TestSafeInt32Mult) {=0D +TEST (MultiplicationTestSuite, TestSafeInt32Mult) {=0D RETURN_STATUS Status;=0D - INT32 Multiplicand;=0D - INT32 Multiplier;=0D - INT32 Result;=0D + INT32 Multiplicand;=0D + INT32 Multiplier;=0D + INT32 Result;=0D =0D //=0D // If the result of multiplication doesn't overflow MAX_INT32 and doesn'= t=0D @@ -2242,11 +2242,11 @@ TEST(MultiplicationTestSuite, TestSafeInt32Mult) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -TEST(MultiplicationTestSuite, TestSafeInt64Mult) {=0D +TEST (MultiplicationTestSuite, TestSafeInt64Mult) {=0D RETURN_STATUS Status;=0D - INT64 Multiplicand;=0D - INT64 Multiplier;=0D - INT64 Result;=0D + INT64 Multiplicand;=0D + INT64 Multiplier;=0D + INT64 Result;=0D =0D //=0D // If the result of multiplication doesn't overflow MAX_INT64 and doesn'= t=0D @@ -2268,7 +2268,12 @@ TEST(MultiplicationTestSuite, TestSafeInt64Mult) { ASSERT_EQ (RETURN_BUFFER_TOO_SMALL, Status);=0D }=0D =0D -int main(int argc, char* argv[]) {=0D - testing::InitGoogleTest(&argc, argv);=0D - return RUN_ALL_TESTS();=0D +int=0D +main (=0D + int argc,=0D + char *argv[]=0D + )=0D +{=0D + testing::InitGoogleTest (&argc, argv);=0D + return RUN_ALL_TESTS ();=0D }=0D diff --git a/MdePkg/Test/Mock/Include/GoogleTest/Library/MockHobLib.h b/Mde= Pkg/Test/Mock/Include/GoogleTest/Library/MockHobLib.h index 994b8133e5d0..586b479ea5d2 100644 --- a/MdePkg/Test/Mock/Include/GoogleTest/Library/MockHobLib.h +++ b/MdePkg/Test/Mock/Include/GoogleTest/Library/MockHobLib.h @@ -11,9 +11,9 @@ #include =0D #include =0D extern "C" {=0D -#include =0D -#include =0D -#include =0D + #include =0D + #include =0D + #include =0D }=0D =0D struct MockHobLib {=0D diff --git a/MdePkg/Test/Mock/Include/GoogleTest/Library/MockPeiServicesLib= .h b/MdePkg/Test/Mock/Include/GoogleTest/Library/MockPeiServicesLib.h index 4a99fec539c0..6a6424d7c6fc 100644 --- a/MdePkg/Test/Mock/Include/GoogleTest/Library/MockPeiServicesLib.h +++ b/MdePkg/Test/Mock/Include/GoogleTest/Library/MockPeiServicesLib.h @@ -11,9 +11,9 @@ #include =0D #include =0D extern "C" {=0D -#include =0D -#include =0D -#include =0D + #include =0D + #include =0D + #include =0D }=0D =0D struct MockPeiServicesLib {=0D diff --git a/MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiLib.h b/Md= ePkg/Test/Mock/Include/GoogleTest/Library/MockUefiLib.h index dec2c93e1b34..93697da9cf86 100644 --- a/MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiLib.h +++ b/MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiLib.h @@ -11,8 +11,8 @@ #include =0D #include =0D extern "C" {=0D -#include =0D -#include =0D + #include =0D + #include =0D }=0D =0D struct MockUefiLib {=0D diff --git a/MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiRuntimeSer= vicesTableLib.h b/MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiRunti= meServicesTableLib.h index afdfc6b85597..241abc55c079 100644 --- a/MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiRuntimeServicesTa= bleLib.h +++ b/MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiRuntimeServicesTa= bleLib.h @@ -11,8 +11,8 @@ #include =0D #include =0D extern "C" {=0D -#include =0D -#include =0D + #include =0D + #include =0D }=0D =0D struct MockUefiRuntimeServicesTableLib {=0D diff --git a/MdePkg/Test/Mock/Library/GoogleTest/MockHobLib/MockHobLib.cpp = b/MdePkg/Test/Mock/Library/GoogleTest/MockHobLib/MockHobLib.cpp index 5a5a9159fcfe..51ee09065e92 100644 --- a/MdePkg/Test/Mock/Library/GoogleTest/MockHobLib/MockHobLib.cpp +++ b/MdePkg/Test/Mock/Library/GoogleTest/MockHobLib/MockHobLib.cpp @@ -7,24 +7,24 @@ =0D #include =0D =0D -MOCK_INTERFACE_DEFINITION(MockHobLib);=0D +MOCK_INTERFACE_DEFINITION (MockHobLib);=0D =0D -MOCK_FUNCTION_DEFINITION(MockHobLib, GetHobList, 0, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, GetNextHob, 2, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, GetFirstHob, 1, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, GetNextGuidHob, 2, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, GetFirstGuidHob, 1, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, GetBootModeHob, 0, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildModuleHob, 4, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildResourceDescriptorWithOwnerHob, = 5, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildResourceDescriptorHob, 4, EFIAPI= );=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildGuidHob, 2, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildGuidDataHob, 3, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildFvHob, 2, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildFv2Hob, 4, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildFv3Hob, 6, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildCvHob, 2, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildCpuHob, 2, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildStackHob, 2, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildBspStoreHob, 3, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockHobLib, BuildMemoryAllocationHob, 3, EFIAPI);= =0D +MOCK_FUNCTION_DEFINITION (MockHobLib, GetHobList, 0, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, GetNextHob, 2, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, GetFirstHob, 1, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, GetNextGuidHob, 2, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, GetFirstGuidHob, 1, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, GetBootModeHob, 0, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildModuleHob, 4, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildResourceDescriptorWithOwnerHob,= 5, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildResourceDescriptorHob, 4, EFIAP= I);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildGuidHob, 2, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildGuidDataHob, 3, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildFvHob, 2, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildFv2Hob, 4, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildFv3Hob, 6, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildCvHob, 2, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildCpuHob, 2, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildStackHob, 2, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildBspStoreHob, 3, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockHobLib, BuildMemoryAllocationHob, 3, EFIAPI)= ;=0D diff --git a/MdePkg/Test/Mock/Library/GoogleTest/MockPeiServicesLib/MockPei= ServicesLib.cpp b/MdePkg/Test/Mock/Library/GoogleTest/MockPeiServicesLib/Mo= ckPeiServicesLib.cpp index 9a7ff4bd8ffb..c6035bd664cf 100644 --- a/MdePkg/Test/Mock/Library/GoogleTest/MockPeiServicesLib/MockPeiService= sLib.cpp +++ b/MdePkg/Test/Mock/Library/GoogleTest/MockPeiServicesLib/MockPeiService= sLib.cpp @@ -7,30 +7,30 @@ =0D #include =0D =0D -MOCK_INTERFACE_DEFINITION(MockPeiServicesLib);=0D +MOCK_INTERFACE_DEFINITION (MockPeiServicesLib);=0D =0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesInstallPpi, 1, EFI= API);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesReInstallPpi, 2, E= FIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesLocatePpi, 4, EFIA= PI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesNotifyPpi, 1, EFIA= PI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesGetBootMode, 1, EF= IAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesSetBootMode, 1, EF= IAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesGetHobList, 1, EFI= API);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesCreateHob, 3, EFIA= PI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesFfsFindNextVolume,= 2, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesFfsFindNextFile, 3= , EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesFfsFindSectionData= , 3, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesFfsFindSectionData= 3, 5, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesInstallPeiMemory, = 2, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesAllocatePages, 3, = EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesFreePages, 2, EFIA= PI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesAllocatePool, 2, E= FIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesResetSystem, 0, EF= IAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesFfsFindFileByName,= 3, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesFfsGetFileInfo, 2,= EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesFfsGetFileInfo2, 2= , EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesFfsGetVolumeInfo, = 2, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesRegisterForShadow,= 1, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesInstallFvInfoPpi, = 5, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesInstallFvInfo2Ppi,= 6, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockPeiServicesLib, PeiServicesResetSystem2, 4, E= FIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesInstallPpi, 1, EF= IAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesReInstallPpi, 2, = EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesLocatePpi, 4, EFI= API);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesNotifyPpi, 1, EFI= API);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesGetBootMode, 1, E= FIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesSetBootMode, 1, E= FIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesGetHobList, 1, EF= IAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesCreateHob, 3, EFI= API);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesFfsFindNextVolume= , 2, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesFfsFindNextFile, = 3, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesFfsFindSectionDat= a, 3, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesFfsFindSectionDat= a3, 5, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesInstallPeiMemory,= 2, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesAllocatePages, 3,= EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesFreePages, 2, EFI= API);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesAllocatePool, 2, = EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesResetSystem, 0, E= FIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesFfsFindFileByName= , 3, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesFfsGetFileInfo, 2= , EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesFfsGetFileInfo2, = 2, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesFfsGetVolumeInfo,= 2, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesRegisterForShadow= , 1, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesInstallFvInfoPpi,= 5, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesInstallFvInfo2Ppi= , 6, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockPeiServicesLib, PeiServicesResetSystem2, 4, = EFIAPI);=0D diff --git a/MdePkg/Test/Mock/Library/GoogleTest/MockUefiLib/MockUefiLib.cp= p b/MdePkg/Test/Mock/Library/GoogleTest/MockUefiLib/MockUefiLib.cpp index 5339d040c999..2a0c9613eaa2 100644 --- a/MdePkg/Test/Mock/Library/GoogleTest/MockUefiLib/MockUefiLib.cpp +++ b/MdePkg/Test/Mock/Library/GoogleTest/MockUefiLib/MockUefiLib.cpp @@ -6,7 +6,7 @@ **/=0D #include =0D =0D -MOCK_INTERFACE_DEFINITION(MockUefiLib);=0D +MOCK_INTERFACE_DEFINITION (MockUefiLib);=0D =0D -MOCK_FUNCTION_DEFINITION(MockUefiLib, GetVariable2, 4, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockUefiLib, GetEfiGlobalVariable2, 3, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockUefiLib, GetVariable2, 4, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockUefiLib, GetEfiGlobalVariable2, 3, EFIAPI);= =0D diff --git a/MdePkg/Test/Mock/Library/GoogleTest/MockUefiRuntimeServicesTab= leLib/MockUefiRuntimeServicesTableLib.cpp b/MdePkg/Test/Mock/Library/Google= Test/MockUefiRuntimeServicesTableLib/MockUefiRuntimeServicesTableLib.cpp index ecd1ba82366c..14296b0ccb88 100644 --- a/MdePkg/Test/Mock/Library/GoogleTest/MockUefiRuntimeServicesTableLib/M= ockUefiRuntimeServicesTableLib.cpp +++ b/MdePkg/Test/Mock/Library/GoogleTest/MockUefiRuntimeServicesTableLib/M= ockUefiRuntimeServicesTableLib.cpp @@ -6,13 +6,13 @@ **/=0D #include =0D =0D -MOCK_INTERFACE_DEFINITION(MockUefiRuntimeServicesTableLib);=0D +MOCK_INTERFACE_DEFINITION (MockUefiRuntimeServicesTableLib);=0D =0D -MOCK_FUNCTION_DEFINITION(MockUefiRuntimeServicesTableLib, gRT_GetVariable,= 5, EFIAPI);=0D -MOCK_FUNCTION_DEFINITION(MockUefiRuntimeServicesTableLib, gRT_SetVariable,= 5, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockUefiRuntimeServicesTableLib, gRT_GetVariable= , 5, EFIAPI);=0D +MOCK_FUNCTION_DEFINITION (MockUefiRuntimeServicesTableLib, gRT_SetVariable= , 5, EFIAPI);=0D =0D -static EFI_RUNTIME_SERVICES localRt =3D {=0D - {0}, // EFI_TABLE_HEADER=0D +static EFI_RUNTIME_SERVICES localRt =3D {=0D + { 0 }, // EFI_TABLE_HEADER=0D =0D NULL, // EFI_GET_TIME=0D NULL, // EFI_SET_TIME=0D @@ -36,5 +36,5 @@ static EFI_RUNTIME_SERVICES localRt =3D { };=0D =0D extern "C" {=0D - EFI_RUNTIME_SERVICES* gRT =3D &localRt;=0D + EFI_RUNTIME_SERVICES *gRT =3D &localRt;=0D }=0D --=20 2.41.0.windows.3 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107813): https://edk2.groups.io/g/devel/message/107813 Mute This Topic: https://groups.io/mt/100788669/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-