Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetupDataPkg: apply cpp uncrustify changes #291

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
VivianNK marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#include <Library/GoogleTestLib.h>
#include <GoogleTest/Library/MockUefiRuntimeServicesTableLib.h>
extern "C" {
#include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/ConfigKnobShimLib.h>
#include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/ConfigKnobShimLib.h>
}

#define CONFIG_KNOB_GUID {0x52d39693, 0x4f64, 0x4ee6, {0x81, 0xde, 0x45, 0x89, 0x37, 0x72, 0x78, 0x55}}
Expand All @@ -23,27 +23,27 @@ using namespace testing;
class GetConfigKnobOverrideFromVariableStorageTest : public Test
{
protected:
StrictMock<MockUefiRuntimeServicesTableLib> RtServicesMock;
EFI_STATUS Status;
EFI_GUID ConfigKnobGuid;
CHAR16 *ConfigKnobName;
UINT64 ProfileDefaultValue;
UINTN ProfileDefaultSize;
UINT64 VariableData;
UINT64 ConfigKnobData;

// Redefining the Test class's SetUp function for test fixtures.
void
SetUp (
) override
{
ConfigKnobGuid = CONFIG_KNOB_GUID;
ConfigKnobName = (CHAR16 *)L"MyDeadBeefDelivery";
ProfileDefaultValue = 0xDEADBEEFDEADBEEF;
ProfileDefaultSize = sizeof (ProfileDefaultValue);
VariableData = 0xBEEF7777BEEF7777;
ConfigKnobData = ProfileDefaultValue;
}
StrictMock<MockUefiRuntimeServicesTableLib> RtServicesMock;
EFI_STATUS Status;
EFI_GUID ConfigKnobGuid;
CHAR16 *ConfigKnobName;
UINT64 ProfileDefaultValue;
UINTN ProfileDefaultSize;
UINT64 VariableData;
UINT64 ConfigKnobData;

// Redefining the Test class's SetUp function for test fixtures.
void
SetUp (
) override
{
ConfigKnobGuid = CONFIG_KNOB_GUID;
ConfigKnobName = (CHAR16 *)L"MyDeadBeefDelivery";
ProfileDefaultValue = 0xDEADBEEFDEADBEEF;
ProfileDefaultSize = sizeof (ProfileDefaultValue);
VariableData = 0xBEEF7777BEEF7777;
ConfigKnobData = ProfileDefaultValue;
}
};

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
#include <GoogleTest/Ppi/MockReadOnlyVariable2.h>

extern "C" {
#include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/ConfigKnobShimLib.h>
#include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/ConfigKnobShimLib.h>
}

#define CONFIG_KNOB_GUID {0x52d39693, 0x4f64, 0x4ee6, {0x81, 0xde, 0x45, 0x89, 0x37, 0x72, 0x78, 0x55}}
Expand All @@ -26,28 +26,28 @@ using namespace testing;
class GetConfigKnobOverrideFromVariableStorageTest : public Test
{
protected:
StrictMock<MockPeiServicesLib> PeiServicesMock;
StrictMock<MockReadOnlyVariable2> PpiVariableServicesMock; // mock of EFI_PEI_READ_ONLY_VARIABLE2_PPI
EFI_STATUS Status;
EFI_GUID ConfigKnobGuid;
CHAR16 *ConfigKnobName;
UINT64 ProfileDefaultValue;
UINTN ProfileDefaultSize;
UINT64 VariableData;
UINT64 ConfigKnobData;

// Redefining the Test class's SetUp function for test fixtures.
void
SetUp (
) override
{
ConfigKnobGuid = CONFIG_KNOB_GUID;
ConfigKnobName = (CHAR16 *)L"MyDeadBeefDelivery";
ProfileDefaultValue = 0xDEADBEEFDEADBEEF;
ProfileDefaultSize = sizeof (ProfileDefaultValue);
VariableData = 0xBEEF7777BEEF7777;
ConfigKnobData = ProfileDefaultValue;
}
StrictMock<MockPeiServicesLib> PeiServicesMock;
StrictMock<MockReadOnlyVariable2> PpiVariableServicesMock; // mock of EFI_PEI_READ_ONLY_VARIABLE2_PPI
EFI_STATUS Status;
EFI_GUID ConfigKnobGuid;
CHAR16 *ConfigKnobName;
UINT64 ProfileDefaultValue;
UINTN ProfileDefaultSize;
UINT64 VariableData;
UINT64 ConfigKnobData;

// Redefining the Test class's SetUp function for test fixtures.
void
SetUp (
) override
{
ConfigKnobGuid = CONFIG_KNOB_GUID;
ConfigKnobName = (CHAR16 *)L"MyDeadBeefDelivery";
ProfileDefaultValue = 0xDEADBEEFDEADBEEF;
ProfileDefaultSize = sizeof (ProfileDefaultValue);
VariableData = 0xBEEF7777BEEF7777;
ConfigKnobData = ProfileDefaultValue;
}
};

//
Expand Down