Skip to content

Commit

Permalink
Add mock function into MockIoLib
Browse files Browse the repository at this point in the history
  • Loading branch information
TsunFeng authored and VivianNK committed Nov 8, 2024
1 parent a418ed9 commit 345357c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions MdePkg/Test/Mock/Include/GoogleTest/Library/MockIoLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@ struct MockIoLib {
IN UINT64 Value
)
);

MOCK_FUNCTION_DECLARATION (
UINT16,
IoWrite16,
(
IN UINTN Port,
IN UINT16 Value
)
);
};

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ MOCK_FUNCTION_DEFINITION (MockIoLib, MmioRead32, 1, EFIAPI);
MOCK_FUNCTION_DEFINITION (MockIoLib, MmioWrite32, 2, EFIAPI);
MOCK_FUNCTION_DEFINITION (MockIoLib, MmioRead64, 1, EFIAPI);
MOCK_FUNCTION_DEFINITION (MockIoLib, MmioWrite64, 2, EFIAPI);
MOCK_FUNCTION_DEFINITION (MockIoLib, IoWrite16, 2, EFIAPI);

0 comments on commit 345357c

Please sign in to comment.