Skip to content

Commit d4f68e3

Browse files
committed
NetworkPkg: Remove protocol gmock cpp from inf
Use new mock protocol instantiator Signed-off-by: Vivian Nowka-Keane <[email protected]>
1 parent d29ed8f commit d4f68e3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

NetworkPkg/UefiPxeBcDxe/GoogleTest/PxeBcDhcp6GoogleTest.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ extern "C" {
2626
#define PACKET_SIZE (1500)
2727
#define REQUEST_OPTION_LENGTH (120)
2828

29+
MOCK_EFI_RNG_PROTOCOL_INSTANCE (gRngProtocol)
30+
2931
typedef struct {
3032
UINT16 OptionCode; // The option code for DHCP6_OPT_SERVER_ID (e.g., 0x03)
3133
UINT16 OptionLen; // The length of the option (e.g., 16 bytes)
@@ -490,7 +492,7 @@ class PxeBcDhcp6DiscoverTest : public ::testing::Test {
490492
protected:
491493
MockUefiRuntimeServicesTableLib RtServicesMock;
492494
MockUefiBootServicesTableLib BsMock;
493-
MockRng RngMock;
495+
MockEfiRngProtocol RngMock;
494496

495497
// Add any setup code if needed
496498
virtual void

NetworkPkg/UefiPxeBcDxe/GoogleTest/UefiPxeBcDxeGoogleTest.inf

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ VERSION_STRING = 1.0
2323
PxeBcDhcp6GoogleTest.h
2424
../PxeBcDhcp6.c
2525
../PxeBcSupport.c
26-
../../../MdePkg/Test/Mock/Library/GoogleTest/Protocol/MockRng.cpp
2726

2827
[Packages]
2928
MdePkg/MdePkg.dec

0 commit comments

Comments
 (0)