UnitTestFrameworkPkg: Apply uncrustify formatting to relevant files

Apply uncrustify formatting to GoogleTest cpp and header files.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Michael Kubacki <mikuback@linux.microsoft.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Signed-off-by: Vivian Nowka-Keane <vnowkakeane@linux.microsoft.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com>
This commit is contained in:
Vivian Nowka-Keane 2023-08-16 14:15:21 -07:00 committed by mergify[bot]
parent a00f7a355a
commit 1e27258a89
2 changed files with 47 additions and 31 deletions

View File

@ -55,10 +55,17 @@ class GlobalVarTests : public ::testing::Test {
VOID *SampleGlobalTestPointer = NULL;
protected:
void SetUp() override {
void
SetUp (
) override
{
ASSERT_EQ ((UINTN)SampleGlobalTestPointer, (UINTN)NULL);
}
void TearDown() {
void
TearDown (
)
{
SampleGlobalTestPointer = NULL;
}
};
@ -68,12 +75,14 @@ TEST_F(GlobalVarTests, GlobalPointerShouldBeChangeable) {
ASSERT_EQ ((UINTN)SampleGlobalTestPointer, (UINTN)((VOID *)-1));
}
/**
Set PcdDebugPropertyMask for each MacroTestsAssertsEnabledDisabled test
**/
class MacroTestsAssertsEnabledDisabled : public testing::TestWithParam<UINT8> {
void SetUp() {
void
SetUp (
)
{
PatchPcdSet8 (PcdDebugPropertyMask, GetParam ());
}
};
@ -243,9 +252,11 @@ TEST_P(MacroTestsAssertsEnabledDisabled, MacroExpectAssertFailure) {
ASSERT_DEATH (DecimalToBcd8 (101), "");
}
INSTANTIATE_TEST_SUITE_P(ValidInput,
INSTANTIATE_TEST_SUITE_P (
ValidInput,
MacroTestsAssertsEnabledDisabled,
::testing::Values(PcdGet8 (PcdDebugPropertyMask) | BIT0, PcdGet8 (PcdDebugPropertyMask) & (~BIT0)));
::testing::Values (PcdGet8 (PcdDebugPropertyMask) | BIT0, PcdGet8 (PcdDebugPropertyMask) & (~BIT0))
);
/**
Sample unit test using the SCOPED_TRACE() macro for trace messages.
@ -257,7 +268,12 @@ TEST(MacroTestsMessages, MacroTraceMessage) {
SCOPED_TRACE ("SCOPED_TRACE message\n");
}
int main(int argc, char* argv[]) {
int
main (
int argc,
char *argv[]
)
{
testing::InitGoogleTest (&argc, argv);
return RUN_ALL_TESTS ();
}