Changeset 105670 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/UnitTestFrameworkPkg/Include
- Timestamp:
- Aug 14, 2024 1:16:30 PM (9 months ago)
- svn:sync-xref-src-repo-rev:
- 164367
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-159268 /vendor/edk2/current 103735-103757,103769-103776,129194-164365
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/UnitTestFrameworkPkg/Include/Library/GoogleTestLib.h
r101291 r105670 14 14 #include <cstring> 15 15 16 using ::testing::Throws; 17 using ::testing::ThrowsMessage; 18 using ::testing::HasSubstr; 19 20 // 21 // Extended macros for testing exceptions with a specific description string 22 // in the exception message. Typically used to check that the expression 23 // that generates an ASSERT() matches the expected expression. 24 // 25 #define EXPECT_THROW_MESSAGE(statement, description) \ 26 EXPECT_THAT ( \ 27 []() { statement; }, \ 28 ThrowsMessage<std::runtime_error>(HasSubstr (description)) \ 29 ) 30 #define ASSERT_THROW_MESSAGE(statement, description) \ 31 ASSERT_THAT ( \ 32 []() { statement; }, \ 33 ThrowsMessage<std::runtime_error>(HasSubstr (description)) \ 34 ) 35 16 36 extern "C" { 17 #include <Uefi.h>37 #include <Uefi.h> 18 38 } 19 39
Note:
See TracChangeset
for help on using the changeset viewer.