2018-03-27 14:30:05 +02:00
|
|
|
/*
|
2022-06-29 19:17:47 +00:00
|
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
2018-03-27 14:30:05 +02:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-03-27 14:30:05 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2022-06-29 19:17:47 +00:00
|
|
|
#include "shared/source/gen8/hw_cmds.h"
|
|
|
|
#include "shared/test/common/test_macros/header/per_product_test_definitions.h"
|
|
|
|
#include "shared/test/common/test_macros/test.h"
|
2021-12-14 17:40:08 +00:00
|
|
|
|
2020-02-22 22:50:57 +01:00
|
|
|
#include "opencl/source/helpers/hardware_commands_helper.h"
|
2020-05-28 14:05:12 +02:00
|
|
|
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
|
2020-02-23 15:20:22 +01:00
|
|
|
#include "opencl/test/unit_test/mocks/mock_kernel.h"
|
2018-03-27 14:30:05 +02:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
using namespace NEO;
|
2018-03-27 14:30:05 +02:00
|
|
|
|
2020-05-28 14:05:12 +02:00
|
|
|
using Gen8KernelTest = Test<ClDeviceFixture>;
|
2018-03-27 14:30:05 +02:00
|
|
|
GEN8TEST_F(Gen8KernelTest, givenKernelWhenCanTransformImagesIsCalledThenReturnsFalse) {
|
2020-01-14 14:32:11 +01:00
|
|
|
MockKernelWithInternals mockKernel(*pClDevice);
|
2018-03-27 14:30:05 +02:00
|
|
|
auto retVal = mockKernel.mockKernel->Kernel::canTransformImages();
|
|
|
|
EXPECT_FALSE(retVal);
|
|
|
|
}
|