edk2/SecurityPkg/Library/SecureBootVariableLib/UnitTest
Michael D Kinney 715a8dc067 SecurityPkg/Library/SecureBootVariableLib/UnitTest: Cmocka use issues
Fix mocked versions of GetVariable() and SetVariable().
* VendorGuid parameter use expect_memory() not expect_value()
* MockSetVariable() use check_expected() for Attributes parameter
* MockSetVariable() use check_expected_ptr() for Data parameter
* Calls to MockGetVariable() use (UINTN) cast for will_return()
  of pointer to data buffer returned.

Issues found with Linux GCC NOOPT IA32 builds of unit tests.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2026-01-21 09:15:06 +00:00
..
MockPlatformPKProtectionLib.c SecurityPkg: SecureBootVariableLib: Added unit tests 2022-07-07 01:07:00 +00:00
MockPlatformPKProtectionLib.inf SecurityPkg/Library/SecureBootVariableLib: HOST_APPLICATION IA32/X64 only 2023-04-10 05:59:02 +00:00
MockUefiLib.c SecurityPkg: SecureBootVariableLib: Added unit tests 2022-07-07 01:07:00 +00:00
MockUefiLib.inf SecurityPkg/Library/SecureBootVariableLib: HOST_APPLICATION IA32/X64 only 2023-04-10 05:59:02 +00:00
MockUefiRuntimeServicesTableLib.c SecurityPkg: SecureBootVariableLib: Added unit tests 2022-07-07 01:07:00 +00:00
MockUefiRuntimeServicesTableLib.inf SecurityPkg/Library/SecureBootVariableLib: HOST_APPLICATION IA32/X64 only 2023-04-10 05:59:02 +00:00
SecureBootVariableLibUnitTest.c SecurityPkg/Library/SecureBootVariableLib/UnitTest: Cmocka use issues 2026-01-21 09:15:06 +00:00
SecureBootVariableLibUnitTest.inf SecurityPkg: SecureBootVariableLib: Added unit tests 2022-07-07 01:07:00 +00:00