mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 07:44:16 +08:00
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
26 lines
716 B
C++
26 lines
716 B
C++
/*
|
|
* Copyright (C) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/execution_environment/execution_environment.h"
|
|
#include "runtime/helpers/hw_info.h"
|
|
#include "test.h"
|
|
|
|
namespace NEO {
|
|
bool getDevices(HardwareInfo **hwInfo, size_t &numDevicesReturned, ExecutionEnvironment &executionEnvironment);
|
|
} // namespace NEO
|
|
|
|
using GetDevicesTests = ::testing::Test;
|
|
|
|
HWTEST_F(GetDevicesTests, WhenGetDevicesIsCalledThenSuccessIsReturned) {
|
|
NEO::HardwareInfo *hwInfo;
|
|
size_t numDevicesReturned = 0;
|
|
NEO::ExecutionEnvironment executionEnviornment;
|
|
|
|
auto returnValue = NEO::getDevices(&hwInfo, numDevicesReturned, executionEnviornment);
|
|
EXPECT_EQ(true, returnValue);
|
|
}
|