mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 07:08:04 +08:00
Improve MockKernel
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
908a7721b2
commit
0897cb11ca
@@ -9,6 +9,7 @@
|
||||
#include "shared/source/device_binary_format/patchtokens_decoder.h"
|
||||
#include "shared/source/kernel/kernel_descriptor.h"
|
||||
#include "shared/source/kernel/kernel_descriptor_from_patchtokens.h"
|
||||
#include "shared/test/common/test_macros/mock_method_macros.h"
|
||||
|
||||
#include "level_zero/core/source/kernel/kernel_hw.h"
|
||||
#include "level_zero/core/source/kernel/kernel_imp.h"
|
||||
@@ -97,6 +98,7 @@ struct WhiteBoxKernelHw : public KernelHw<gfxCoreFamily> {
|
||||
template <>
|
||||
struct Mock<::L0::Kernel> : public WhiteBox<::L0::Kernel> {
|
||||
using BaseClass = WhiteBox<::L0::Kernel>;
|
||||
ADDMETHOD_NOBASE(getProperties, ze_result_t, ZE_RESULT_SUCCESS, (ze_kernel_properties_t * pKernelProperties))
|
||||
|
||||
Mock() : BaseClass(nullptr) {
|
||||
NEO::PatchTokenBinary::KernelFromPatchtokens kernelTokens;
|
||||
|
||||
Reference in New Issue
Block a user