mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Change-Id: I5e5b4cc45947a8841282c7d431fb69d9c397a2d4 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
25 lines
653 B
C++
25 lines
653 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(size_t &numDevicesReturned, ExecutionEnvironment &executionEnvironment);
|
|
} // namespace NEO
|
|
|
|
using GetDevicesTests = ::testing::Test;
|
|
|
|
HWTEST_F(GetDevicesTests, WhenGetDevicesIsCalledThenSuccessIsReturned) {
|
|
size_t numDevicesReturned = 0;
|
|
NEO::ExecutionEnvironment executionEnviornment;
|
|
|
|
auto returnValue = NEO::getDevices(numDevicesReturned, executionEnviornment);
|
|
EXPECT_EQ(true, returnValue);
|
|
}
|