2018-05-11 09:44:37 +02:00
|
|
|
/*
|
2021-01-10 21:36:01 +01:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2018-05-11 09:44:37 +02:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-05-11 09:44:37 +02:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/execution_environment/root_device_environment.h"
|
|
|
|
|
#include "shared/source/helpers/hw_info.h"
|
|
|
|
|
#include "shared/source/os_interface/os_interface.h"
|
|
|
|
|
#include "shared/source/os_interface/windows/wddm/wddm.h"
|
2021-01-21 13:10:13 +01:00
|
|
|
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
2020-02-24 10:22:30 +01:00
|
|
|
|
2020-02-23 15:20:22 +01:00
|
|
|
#include "opencl/test/unit_test/mocks/mock_execution_environment.h"
|
2018-05-11 09:44:37 +02:00
|
|
|
#include "test.h"
|
2020-02-22 22:50:57 +01:00
|
|
|
|
2018-05-18 10:18:16 +02:00
|
|
|
#include <typeinfo>
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
using namespace NEO;
|
2018-05-11 09:44:37 +02:00
|
|
|
|
2018-05-18 10:18:16 +02:00
|
|
|
TEST(wddmCreateTests, givenInputVersionWhenCreatingThenCreateRequestedObject) {
|
2019-11-06 18:14:30 +01:00
|
|
|
MockExecutionEnvironment executionEnvironment;
|
|
|
|
|
RootDeviceEnvironment rootDeviceEnvironment(executionEnvironment);
|
2020-03-17 07:26:46 +01:00
|
|
|
auto hwDeviceIds = OSInterface::discoverDevices(executionEnvironment);
|
2020-02-17 16:14:22 +01:00
|
|
|
std::unique_ptr<Wddm> wddm(Wddm::createWddm(std::move(hwDeviceIds[0]), rootDeviceEnvironment));
|
2021-01-10 21:36:01 +01:00
|
|
|
EXPECT_NE(nullptr, wddm);
|
2018-05-11 09:44:37 +02:00
|
|
|
}
|