mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 16:48:45 +08:00
Change-Id: I9fabfea94129fbc419ab0c9bca957cf7b9952c38 Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
27 lines
870 B
C++
27 lines
870 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/gmm_helper/gmm_helper.h"
|
|
#include "runtime/helpers/hardware_commands_helper.h"
|
|
#include "runtime/mem_obj/buffer.h"
|
|
#include "test.h"
|
|
#include "unit_tests/fixtures/device_fixture.h"
|
|
#include "unit_tests/mocks/mock_kernel.h"
|
|
|
|
using namespace NEO;
|
|
|
|
using Gen9KernelTest = Test<DeviceFixture>;
|
|
GEN9TEST_F(Gen9KernelTest, givenKernelWhenCanTransformImagesIsCalledThenReturnsTrue) {
|
|
MockKernelWithInternals mockKernel(*pDevice);
|
|
auto retVal = mockKernel.mockKernel->Kernel::canTransformImages();
|
|
EXPECT_TRUE(retVal);
|
|
}
|
|
using Gen9HardwareCommandsTest = testing::Test;
|
|
GEN9TEST_F(Gen9HardwareCommandsTest, givenGen9PlatformWhenDoBindingTablePrefetchIsCalledThenReturnsTrue) {
|
|
EXPECT_TRUE(HardwareCommandsHelper<FamilyType>::doBindingTablePrefetch());
|
|
}
|