Skip to content

Commit

Permalink
MfciPkg & MsCorePkg: Fix unit test compilation errors.
Browse files Browse the repository at this point in the history
Unit tests started failing due to compilation errors. This stemmed from
a bug fixed in microsoft/mu_basecore#891. Once this bug was fixed, the
unit tests starting to be compiled which blocked pipelines.
  • Loading branch information
apop5 committed Jun 20, 2024
1 parent f7327e7 commit e8bc06e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
25 changes: 0 additions & 25 deletions MfciPkg/MfciDxe/Test/MfciVerifyPolicyAndChangeHostTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,11 @@ UnitTestSetVariable (
IN VOID *Data
);

EFI_STATUS
EFIAPI
UnitTestLocateProtocol (
IN EFI_GUID *Protocol,
IN VOID *Registration OPTIONAL,
OUT VOID **Interface
);

EFI_RUNTIME_SERVICES mMockRuntime = {
.GetVariable = UnitTestGetVariable,
.SetVariable = UnitTestSetVariable,
};

EFI_BOOT_SERVICES mBootSvc = {
.LocateProtocol = UnitTestLocateProtocol
};

EFI_BOOT_SERVICES *gBS = &mBootSvc;

extern BOOLEAN mVarPolicyRegistered;

typedef struct {
Expand Down Expand Up @@ -181,17 +167,6 @@ MFCI_UT_VERIFY_CONTEXT mMfciVerifyContext05 = {
}
};

EFI_STATUS
EFIAPI
UnitTestLocateProtocol (
IN EFI_GUID *Protocol,
IN VOID *Registration OPTIONAL,
OUT VOID **Interface
)
{
return EFI_SUCCESS;
}

/**
A mocked version of GetVariable.
Expand Down
2 changes: 0 additions & 2 deletions MfciPkg/MfciDxe/Test/MfciVerifyPolicyAndChangeRoTHostTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ EFI_RUNTIME_SERVICES mMockRuntime = {
.SetVariable = UnitTestSetVariable,
};

EFI_BOOT_SERVICES *gBS = NULL;

extern MFCI_POLICY_TYPE mCurrentPolicy;
extern BOOLEAN mVarPolicyRegistered;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
BaseMemoryLib
DebugLib
MemoryAllocationLib
UefiLib
UefiBootServicesTableLib
UnitTestLib

Expand Down

0 comments on commit e8bc06e

Please sign in to comment.