2018-03-27 20:30:05 +08:00
|
|
|
/*
|
2018-09-18 15:11:08 +08:00
|
|
|
* Copyright (C) 2018 Intel Corporation
|
2018-03-27 20:30:05 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-03-27 20:30:05 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-09-17 17:24:21 +08:00
|
|
|
#include "runtime/helpers/kernel_commands.h"
|
2018-03-27 20:30:05 +08:00
|
|
|
#include "unit_tests/fixtures/device_fixture.h"
|
|
|
|
#include "unit_tests/mocks/mock_kernel.h"
|
|
|
|
#include "test.h"
|
|
|
|
|
|
|
|
using namespace OCLRT;
|
|
|
|
|
|
|
|
using Gen8KernelTest = Test<DeviceFixture>;
|
|
|
|
GEN8TEST_F(Gen8KernelTest, givenKernelWhenCanTransformImagesIsCalledThenReturnsFalse) {
|
|
|
|
MockKernelWithInternals mockKernel(*pDevice);
|
|
|
|
auto retVal = mockKernel.mockKernel->Kernel::canTransformImages();
|
|
|
|
EXPECT_FALSE(retVal);
|
|
|
|
}
|
2018-09-17 17:24:21 +08:00
|
|
|
using Gen8KernelCommandsTest = testing::Test;
|
|
|
|
GEN8TEST_F(Gen8KernelCommandsTest, givenGen8PlatformWhenDoBindingTablePrefetchIsCalledThenReturnsTrue) {
|
|
|
|
EXPECT_TRUE(KernelCommandsHelper<FamilyType>::doBindingTablePrefetch());
|
|
|
|
}
|