Files
compute-runtime/unit_tests/windows/get_devices_tests.cpp
Filip Hazubski 880e891040 Move getDevices to a separate file
Change-Id: Ia5ea548ce233d332a040fd3a50592da294d3d612
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-03-06 17:59:25 +01:00

26 lines
726 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 OCLRT {
bool getDevices(HardwareInfo **hwInfo, size_t &numDevicesReturned, ExecutionEnvironment &executionEnvironment);
} // namespace OCLRT
using GetDevicesTests = ::testing::Test;
HWTEST_F(GetDevicesTests, WhenGetDevicesIsCalledThenSuccessIsReturned) {
OCLRT::HardwareInfo *hwInfo;
size_t numDevicesReturned = 0;
OCLRT::ExecutionEnvironment executionEnviornment;
auto returnValue = OCLRT::getDevices(&hwInfo, numDevicesReturned, executionEnviornment);
EXPECT_EQ(true, returnValue);
}