mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 13:18:50 +00:00
Add Windows Implementation Libraries
This commit is contained in:
parent
e00459f68f
commit
f52a0aba24
69 changed files with 61643 additions and 0 deletions
28
Externals/WIL/tests/CppWinRT20Tests.cpp
vendored
Normal file
28
Externals/WIL/tests/CppWinRT20Tests.cpp
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
|
||||
// Prior to C++/WinRT 2.0 this would cause issues since we're not including wil/cppwinrt.h in this translation unit.
|
||||
// However, since we're going to link into the same executable as 'CppWinRTTests.cpp', the 'winrt_to_hresult_handler'
|
||||
// global function pointer should be set, so these should all run successfully
|
||||
|
||||
#include <winrt/base.h>
|
||||
#include <wil/result.h>
|
||||
|
||||
#include "common.h"
|
||||
|
||||
TEST_CASE("CppWinRTTests::CppWinRT20Test", "[cppwinrt]")
|
||||
{
|
||||
auto test = [](HRESULT hr)
|
||||
{
|
||||
try
|
||||
{
|
||||
THROW_HR(hr);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
REQUIRE(hr == winrt::to_hresult());
|
||||
}
|
||||
};
|
||||
|
||||
test(E_OUTOFMEMORY);
|
||||
test(E_INVALIDARG);
|
||||
test(E_UNEXPECTED);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue