onnxruntime/winml/test/adapter/AdapterSessionTest.h
Justin Chu eeef157888
Format c++ code under winml/ (#16660)
winml/ was previously excluded from lintrunner config. This change
includes the directory and adds the clang-format config file specific to
winml/ that fits existing style.

---------

Signed-off-by: Justin Chu <justinchu@microsoft.com>
2023-07-25 21:56:50 -07:00

45 lines
1.8 KiB
C

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "test.h"
struct AdapterSessionTestAPI {
SetupClass AdapterSessionTestSetup;
TeardownClass AdapterSessionTestTeardown;
VoidTest AppendExecutionProvider_CPU;
VoidTest AppendExecutionProvider_DML;
VoidTest CreateWithoutModel;
VoidTest GetExecutionProvider;
VoidTest GetExecutionProvider_DML;
VoidTest Initialize;
VoidTest RegisterGraphTransformers;
VoidTest RegisterGraphTransformers_DML;
VoidTest RegisterCustomRegistry;
VoidTest RegisterCustomRegistry_DML;
VoidTest LoadAndPurloinModel;
VoidTest Profiling;
VoidTest CopyInputAcrossDevices;
VoidTest CopyInputAcrossDevices_DML;
VoidTest GetNumberOfIntraOpThreads;
};
const AdapterSessionTestAPI& getapi();
WINML_TEST_CLASS_BEGIN(AdapterSessionTest)
WINML_TEST_CLASS_SETUP_CLASS(AdapterSessionTestSetup)
WINML_TEST_CLASS_TEARDOWN_CLASS(AdapterSessionTestTeardown)
WINML_TEST_CLASS_BEGIN_TESTS
WINML_TEST(AdapterSessionTest, AppendExecutionProvider_CPU)
WINML_TEST(AdapterSessionTest, AppendExecutionProvider_DML)
WINML_TEST(AdapterSessionTest, CreateWithoutModel)
WINML_TEST(AdapterSessionTest, GetExecutionProvider)
WINML_TEST(AdapterSessionTest, GetExecutionProvider_DML)
WINML_TEST(AdapterSessionTest, Initialize)
WINML_TEST(AdapterSessionTest, RegisterGraphTransformers)
WINML_TEST(AdapterSessionTest, RegisterGraphTransformers_DML)
WINML_TEST(AdapterSessionTest, RegisterCustomRegistry)
WINML_TEST(AdapterSessionTest, RegisterCustomRegistry_DML)
WINML_TEST(AdapterSessionTest, LoadAndPurloinModel)
WINML_TEST(AdapterSessionTest, Profiling)
WINML_TEST(AdapterSessionTest, CopyInputAcrossDevices)
WINML_TEST(AdapterSessionTest, CopyInputAcrossDevices_DML)
WINML_TEST(AdapterSessionTest, GetNumberOfIntraOpThreads)
WINML_TEST_CLASS_END()