2018-05-11 15:44:37 +08:00
|
|
|
/*
|
2018-09-18 15:11:08 +08:00
|
|
|
* Copyright (C) 2018 Intel Corporation
|
2018-05-11 15:44:37 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-05-11 15:44:37 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-06-12 15:42:47 +08:00
|
|
|
#include "runtime/helpers/hw_info.h"
|
2018-05-11 15:44:37 +08:00
|
|
|
#include "runtime/os_interface/windows/wddm/wddm.h"
|
2018-05-18 16:18:16 +08:00
|
|
|
#include "unit_tests/helpers/debug_manager_state_restore.h"
|
2018-05-11 15:44:37 +08:00
|
|
|
#include "test.h"
|
|
|
|
|
2018-05-18 16:18:16 +08:00
|
|
|
#include <typeinfo>
|
|
|
|
|
2018-05-11 15:44:37 +08:00
|
|
|
using namespace OCLRT;
|
|
|
|
|
2018-05-18 16:18:16 +08:00
|
|
|
TEST(wddmCreateTests, givenInputVersionWhenCreatingThenCreateRequestedObject) {
|
2018-08-14 17:05:17 +08:00
|
|
|
std::unique_ptr<Wddm> wddm(Wddm::createWddm());
|
|
|
|
EXPECT_EQ(typeid(*wddm.get()), typeid(Wddm));
|
2018-05-11 15:44:37 +08:00
|
|
|
}
|