mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Change-Id: I7b2f7733be74abf4ae299396d616b249b67de58e Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
40 lines
889 B
C++
40 lines
889 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "runtime/built_ins/sip.h"
|
|
#include "unit_tests/mocks/mock_execution_environment.h"
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
namespace NEO {
|
|
class MemoryAllocation;
|
|
|
|
class MockSipKernel : public SipKernel {
|
|
public:
|
|
using SipKernel::program;
|
|
using SipKernel::type;
|
|
|
|
MockSipKernel(SipKernelType type, Program *sipProgram);
|
|
MockSipKernel();
|
|
~MockSipKernel();
|
|
|
|
static std::vector<char> dummyBinaryForSip;
|
|
static std::vector<char> getDummyGenBinary();
|
|
static std::vector<char> getBinary();
|
|
static void initDummyBinary();
|
|
static void shutDown();
|
|
|
|
GraphicsAllocation *getSipAllocation() const override;
|
|
|
|
std::unique_ptr<MemoryAllocation> mockSipMemoryAllocation;
|
|
MockExecutionEnvironment executionEnvironment;
|
|
};
|
|
} // namespace NEO
|