Files
compute-runtime/opencl/test/unit_test/mocks/mock_sip.h
Mateusz Jablonski 97154f7f98 Use ProgramInfo instead of Program in sip kernel
Related-To: NEO-5001
Change-Id: I58eda3ecc52fe1215ea8bbc35f97eea3a9d848e0
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-10-15 16:41:18 +02:00

41 lines
929 B
C++

/*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/built_ins/sip.h"
#include "opencl/test/unit_test/mocks/mock_execution_environment.h"
#include <memory>
#include <vector>
namespace NEO {
class MemoryAllocation;
class MockSipKernel : public SipKernel {
public:
using SipKernel::programInfo;
using SipKernel::type;
MockSipKernel(SipKernelType type, ProgramInfo &&sipProgramInfo);
MockSipKernel();
~MockSipKernel() override;
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