mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
25 lines
778 B
C++
25 lines
778 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/helpers/kernel_commands.h"
|
|
#include "test.h"
|
|
#include "unit_tests/fixtures/device_fixture.h"
|
|
#include "unit_tests/mocks/mock_kernel.h"
|
|
|
|
using namespace NEO;
|
|
|
|
using Gen8KernelTest = Test<DeviceFixture>;
|
|
GEN8TEST_F(Gen8KernelTest, givenKernelWhenCanTransformImagesIsCalledThenReturnsFalse) {
|
|
MockKernelWithInternals mockKernel(*pDevice);
|
|
auto retVal = mockKernel.mockKernel->Kernel::canTransformImages();
|
|
EXPECT_FALSE(retVal);
|
|
}
|
|
using Gen8KernelCommandsTest = testing::Test;
|
|
GEN8TEST_F(Gen8KernelCommandsTest, givenGen8PlatformWhenDoBindingTablePrefetchIsCalledThenReturnsTrue) {
|
|
EXPECT_TRUE(KernelCommandsHelper<FamilyType>::doBindingTablePrefetch());
|
|
}
|