//----------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- #pragma once // stl #include #include #include #include #include #include #include #include #include #include #include // IUnknown must be declared before winrt/base.h is included to light up support for native COM // interfaces with C++/WinRT types (e.g. winrt::com_ptr). #include #include "winrt/base.h" #include "winrt/Windows.Foundation.Collections.h" #include "comp_generated/winrt/windows.ai.machinelearning.h" // WinML #include "Windows.AI.MachineLearning.Native.h" #define EXPECT_THROW_SPECIFIC(statement, exception, condition) \ EXPECT_THROW( \ try { \ statement; \ } catch (const exception& e) { \ EXPECT_TRUE(condition(e)); \ throw; \ } \ , exception); // For old versions of gtest without GTEST_SKIP, stream the message and return success instead #ifndef GTEST_SKIP #define GTEST_SKIP(message) return GTEST_MESSAGE_(message, ::testing::TestPartResult::kSuccess) #endif #ifndef INSTANTIATE_TEST_SUITE_P // Use the old name, removed in newer versions of googletest #define INSTANTIATE_TEST_SUITE_P INSTANTIATE_TEST_CASE_P #endif