Files
system76-edk2/MdeModulePkg/Test/Mock/Include/GoogleTest/Library/MockPciHostBridgeLib.h
Vivian Nowka-Keane 504953ef97 MdeModulePkg: Apply uncrustify formatting to relevant files.
Apply uncrustify formatting to GoogleTest cpp files and respective
header file.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Vivian Nowka-Keane <vnowkakeane@linux.microsoft.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2023-10-27 00:50:49 +00:00

41 lines
927 B
C

/** @file
Google Test mocks for PciHostBridgeLib
Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef MOCK_PCI_HOST_BRIDGE_LIB_H_
#define MOCK_PCI_HOST_BRIDGE_LIB_H_
#include <Library/GoogleTestLib.h>
#include <Library/FunctionMockLib.h>
extern "C" {
#include <Uefi.h>
#include <Library/PciHostBridgeLib.h>
}
struct MockPciHostBridgeLib {
MOCK_INTERFACE_DECLARATION (MockPciHostBridgeLib);
MOCK_FUNCTION_DECLARATION (
PCI_ROOT_BRIDGE *,
PciHostBridgeGetRootBridges,
(UINTN *Count)
);
MOCK_FUNCTION_DECLARATION (
VOID,
PciHostBridgeFreeRootBridges,
(PCI_ROOT_BRIDGE *Bridges,
UINTN Count)
);
MOCK_FUNCTION_DECLARATION (
VOID,
PciHostBridgeResourceConflict,
(EFI_HANDLE HostBridgeHandle,
VOID *Configuration)
);
};
#endif