2019-03-01 14:58:11 +01:00
|
|
|
/*
|
|
|
|
|
* 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"
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2019-03-01 14:58:11 +01:00
|
|
|
bool getDevices(HardwareInfo **hwInfo, size_t &numDevicesReturned, ExecutionEnvironment &executionEnvironment);
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|
2019-03-01 14:58:11 +01:00
|
|
|
|
|
|
|
|
using GetDevicesTests = ::testing::Test;
|
|
|
|
|
|
|
|
|
|
HWTEST_F(GetDevicesTests, WhenGetDevicesIsCalledThenSuccessIsReturned) {
|
2019-03-26 11:59:46 +01:00
|
|
|
NEO::HardwareInfo *hwInfo;
|
2019-03-01 14:58:11 +01:00
|
|
|
size_t numDevicesReturned = 0;
|
2019-03-26 11:59:46 +01:00
|
|
|
NEO::ExecutionEnvironment executionEnviornment;
|
2019-03-01 14:58:11 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
auto returnValue = NEO::getDevices(&hwInfo, numDevicesReturned, executionEnviornment);
|
2019-03-01 14:58:11 +01:00
|
|
|
EXPECT_EQ(true, returnValue);
|
|
|
|
|
}
|