mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Related-To: NEO-2285 Change-Id: I77699b5f540b6ac5b73cf1830712a5591326b766 Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
25 lines
752 B
C++
25 lines
752 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "core/execution_environment/root_device_environment.h"
|
|
#include "core/helpers/hw_info.h"
|
|
#include "core/unit_tests/helpers/debug_manager_state_restore.h"
|
|
#include "runtime/os_interface/windows/wddm/wddm.h"
|
|
#include "test.h"
|
|
#include "unit_tests/mocks/mock_execution_environment.h"
|
|
|
|
#include <typeinfo>
|
|
|
|
using namespace NEO;
|
|
|
|
TEST(wddmCreateTests, givenInputVersionWhenCreatingThenCreateRequestedObject) {
|
|
MockExecutionEnvironment executionEnvironment;
|
|
RootDeviceEnvironment rootDeviceEnvironment(executionEnvironment);
|
|
std::unique_ptr<Wddm> wddm(Wddm::createWddm(rootDeviceEnvironment));
|
|
EXPECT_EQ(typeid(*wddm.get()), typeid(Wddm));
|
|
}
|