TianoCore EDK2 master
|
#include "TestDevicePathLib.h"
Go to the source code of this file.
Data Structures | |
struct | TEST_COMPLEX_DEVICE_PATH |
struct | TEST_SIMPLE_DEVICE_PATH |
struct | SIMPLE_TEST_SUITE_CONTEXT |
Macros | |
#define | UNIT_TEST_NAME "DevicePathLib Unit Test Application" |
#define | UNIT_TEST_VERSION "0.1" |
Variables | |
GLOBAL_REMOVE_IF_UNREFERENCED TEST_COMPLEX_DEVICE_PATH | mComplexDevicePath |
CONST GLOBAL_REMOVE_IF_UNREFERENCED CHAR16 * | mComplexDevicePathString = L"PciRoot(0x0)/Pci(0x0,0x2)/Pci(0x0,0x0)/USB(0x0,0x2)" |
CONST GLOBAL_REMOVE_IF_UNREFERENCED CHAR16 * | mPciEndPointPathString = L"Pci(0x0, 0x0)" |
GLOBAL_REMOVE_IF_UNREFERENCED TEST_SIMPLE_DEVICE_PATH | mSimpleDevicePath |
GLOBAL_REMOVE_IF_UNREFERENCED TEST_SIMPLE_DEVICE_PATH | mInvalidSimpleDevicePath |
UEFI OS based application for unit testing the DevicePathLib.
Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TestDevicePathLib.c.
#define UNIT_TEST_NAME "DevicePathLib Unit Test Application" |
Definition at line 10 of file TestDevicePathLib.c.
#define UNIT_TEST_VERSION "0.1" |
Definition at line 11 of file TestDevicePathLib.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 630 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestAppendDevicePath | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 380 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestAppendDevicePathInstance | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 450 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestAppendDevicePathNode | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 407 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestCreateDeviceNode | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 506 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestDevicePathFromHandle | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 485 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestDevicePathNodeLength | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 225 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestDevicePathSubType | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 203 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestDevicePathType | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 181 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestDuplicateDevicePath | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 361 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestFileDevicePath | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 522 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestGetDevicePathSize | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 341 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestIsDevicePathEnd | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 288 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestIsDevicePathEndType | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 268 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestIsDevicePathValid | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 143 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestNextDevicePathNode | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 247 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestSetDevicePathEndNode | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 325 of file TestDevicePathLib.c.
UNIT_TEST_STATUS EFIAPI TestSetDevicePathNodeLength | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 308 of file TestDevicePathLib.c.
EFI_STATUS EFIAPI UefiTestMain | ( | VOID | ) |
Main fuction sets up the unit test environment
Definition at line 547 of file TestDevicePathLib.c.
GLOBAL_REMOVE_IF_UNREFERENCED TEST_COMPLEX_DEVICE_PATH mComplexDevicePath |
Definition at line 21 of file TestDevicePathLib.c.
CONST GLOBAL_REMOVE_IF_UNREFERENCED CHAR16* mComplexDevicePathString = L"PciRoot(0x0)/Pci(0x0,0x2)/Pci(0x0,0x0)/USB(0x0,0x2)" |
Definition at line 80 of file TestDevicePathLib.c.
GLOBAL_REMOVE_IF_UNREFERENCED TEST_SIMPLE_DEVICE_PATH mInvalidSimpleDevicePath |
Definition at line 112 of file TestDevicePathLib.c.
CONST GLOBAL_REMOVE_IF_UNREFERENCED CHAR16* mPciEndPointPathString = L"Pci(0x0, 0x0)" |
Definition at line 82 of file TestDevicePathLib.c.
GLOBAL_REMOVE_IF_UNREFERENCED TEST_SIMPLE_DEVICE_PATH mSimpleDevicePath |
Definition at line 89 of file TestDevicePathLib.c.