mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 04:23:00 +08:00
Cleaned up files: shared/source/command_stream/aub_command_stream_receiver_hw.h shared/source/helpers/common_types.h shared/source/os_interface/linux/drm_neo.h shared/source/os_interface/windows/hw_device_id.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
27 lines
1010 B
C++
27 lines
1010 B
C++
/*
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#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"
|
|
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
|
#include "shared/test/common/mocks/mock_execution_environment.h"
|
|
#include "shared/test/common/test_macros/hw_test.h"
|
|
|
|
#include <typeinfo>
|
|
|
|
using namespace NEO;
|
|
|
|
TEST(wddmCreateTests, givenInputVersionWhenCreatingThenCreateRequestedObject) {
|
|
MockExecutionEnvironment executionEnvironment;
|
|
RootDeviceEnvironment rootDeviceEnvironment(executionEnvironment);
|
|
auto hwDeviceIds = OSInterface::discoverDevices(executionEnvironment);
|
|
std::unique_ptr<Wddm> wddm(Wddm::createWddm(std::unique_ptr<HwDeviceIdWddm>(hwDeviceIds[0].release()->as<HwDeviceIdWddm>()), rootDeviceEnvironment));
|
|
EXPECT_NE(nullptr, wddm);
|
|
}
|