mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
ULT renaming: Get Device Info Size tests
Related-To: NEO-2236 Change-Id: I4a164f9eacaaf1305958f21b6605375a1f34c0f5 Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
f211578148
commit
ef2f9e9299
@ -31,7 +31,7 @@ struct GetDeviceInfoSize : public ::testing::TestWithParam<std::pair<uint32_t /*
|
||||
std::pair<uint32_t, size_t> param;
|
||||
};
|
||||
|
||||
TEST_P(GetDeviceInfoSize, sizeIsValid) {
|
||||
TEST_P(GetDeviceInfoSize, GivenParamWhenGettingDeviceInfoThenSizeIsValid) {
|
||||
auto device = std::make_unique<MockClDevice>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(nullptr));
|
||||
|
||||
size_t sizeReturned = GetInfo::invalidSourceSize;
|
||||
@ -142,7 +142,7 @@ INSTANTIATE_TEST_CASE_P(
|
||||
|
||||
struct GetDeviceInfoForImage : public GetDeviceInfoSize {};
|
||||
|
||||
TEST_P(GetDeviceInfoForImage, imageInfoSizeIsValid) {
|
||||
TEST_P(GetDeviceInfoForImage, GivenParamWhenGettingDeviceInfoThenSizeIsValid) {
|
||||
auto device = std::make_unique<ClDevice>(*MockDevice::createWithNewExecutionEnvironment<MockDevice>(nullptr), platform());
|
||||
if (!device->getSharedDeviceInfo().imageSupport) {
|
||||
GTEST_SKIP();
|
||||
@ -208,6 +208,7 @@ TEST(GetDeviceInfoForImage, givenNotImageParamWhenCallGetDeviceInfoForImageThenS
|
||||
EXPECT_NE(paramSize, srcSize);
|
||||
EXPECT_NE(paramSize, retSize);
|
||||
}
|
||||
|
||||
std::pair<uint32_t, size_t> deviceInfoImageParams[] = {
|
||||
{CL_DEVICE_IMAGE2D_MAX_HEIGHT, sizeof(size_t)},
|
||||
{CL_DEVICE_IMAGE2D_MAX_WIDTH, sizeof(size_t)},
|
||||
|
Reference in New Issue
Block a user