-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a host-based mock for UefiBootServicesTableLib
- Loading branch information
1 parent
8b09a51
commit 1e67e06
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
MdePkg/Test/Library/MockUefiBootServicesTableLib/MockUefiBootServicesTableLib.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** @file | ||
Mock implementation of the UEFI Boot Services Table Library. | ||
Copyright (C) Microsoft Corporation. | ||
SPDX-License-Identifier: BSD-2-Clause-Patent | ||
**/ | ||
|
||
#include <Uefi.h> | ||
|
||
extern EFI_BOOT_SERVICES MockBoot; | ||
|
||
EFI_BOOT_SERVICES *gBS = &MockBoot; |
25 changes: 25 additions & 0 deletions
25
MdePkg/Test/Library/MockUefiBootServicesTableLib/MockUefiBootServicesTableLib.inf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## @file | ||
# Mock implementation of the UEFI Boot Services Table Library. | ||
# | ||
# Copyright (c) Microsoft Corporation. | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
## | ||
|
||
[Defines] | ||
INF_VERSION = 0x00010005 | ||
BASE_NAME = MockUefiBootServicesTableLib | ||
FILE_GUID = 67EA4614-E276-49EC-9AE6-B97ACCEA676E | ||
MODULE_TYPE = HOST_APPLICATION | ||
VERSION_STRING = 1.0 | ||
LIBRARY_CLASS = UefiBootServicesTableLib|HOST_APPLICATION | ||
|
||
# | ||
# VALID_ARCHITECTURES = IA32 X64 EBC | ||
# | ||
|
||
[Sources] | ||
MockUefiBootServicesTableLib.c | ||
|
||
[Packages] | ||
MdePkg/MdePkg.dec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters