mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Change-Id: I45d339c233f9a45724db8d84bf5c5bd66233dcab Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
31 lines
944 B
C++
31 lines
944 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "offline_compiler/decoder/binary_decoder.h"
|
|
|
|
struct MockDecoder : public BinaryDecoder {
|
|
MockDecoder() : MockDecoder("", "", ""){};
|
|
MockDecoder(const std::string &file, const std::string &patch, const std::string &dump)
|
|
: BinaryDecoder(file, patch, dump) {
|
|
setMessagePrinter(MessagePrinter{true});
|
|
};
|
|
using BinaryDecoder::binaryFile;
|
|
using BinaryDecoder::decode;
|
|
using BinaryDecoder::getSize;
|
|
using BinaryDecoder::kernelHeader;
|
|
using BinaryDecoder::parseTokens;
|
|
using BinaryDecoder::patchTokens;
|
|
using BinaryDecoder::pathToDump;
|
|
using BinaryDecoder::pathToPatch;
|
|
using BinaryDecoder::processBinary;
|
|
using BinaryDecoder::processKernel;
|
|
using BinaryDecoder::programHeader;
|
|
using BinaryDecoder::readPatchTokens;
|
|
using BinaryDecoder::readStructFields;
|
|
};
|