mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
26 lines
780 B
C++
26 lines
780 B
C++
/*
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "opencl/source/helpers/hardware_commands_helper.h"
|
|
#include "test.h"
|
|
|
|
#include "fixtures/device_fixture.h"
|
|
#include "mocks/mock_kernel.h"
|
|
|
|
using namespace NEO;
|
|
|
|
using Gen8KernelTest = Test<DeviceFixture>;
|
|
GEN8TEST_F(Gen8KernelTest, givenKernelWhenCanTransformImagesIsCalledThenReturnsFalse) {
|
|
MockKernelWithInternals mockKernel(*pClDevice);
|
|
auto retVal = mockKernel.mockKernel->Kernel::canTransformImages();
|
|
EXPECT_FALSE(retVal);
|
|
}
|
|
using Gen8HardwareCommandsTest = testing::Test;
|
|
GEN8TEST_F(Gen8HardwareCommandsTest, givenGen8PlatformWhenDoBindingTablePrefetchIsCalledThenReturnsTrue) {
|
|
EXPECT_TRUE(HardwareCommandsHelper<FamilyType>::doBindingTablePrefetch());
|
|
}
|