VirtualBox

Ignore:
Timestamp:
Aug 14, 2024 1:16:30 PM (9 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164367
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/UnitTestFrameworkPkg/Include/Library/GoogleTestLib.h

    r101291 r105670  
    1414#include <cstring>
    1515
     16using ::testing::Throws;
     17using ::testing::ThrowsMessage;
     18using ::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
    1636extern "C" {
    17 #include <Uefi.h>
     37  #include <Uefi.h>
    1838}
    1939
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette