compute-runtime/opencl/test/unit_test/offline_compiler/offline_linker_tests.h

31 lines
762 B
C
Raw Normal View History

/*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "gtest/gtest.h"
#include "mock/mock_argument_helper.h"
#include "mock/mock_offline_linker.h"
namespace NEO {
class OfflineLinkerTest : public ::testing::Test {
public:
void SetUp() override;
void TearDown() override;
std::string getEmptySpirvFile() const;
std::string getEmptyLlvmBcFile() const;
MockOfflineLinker::InputFileContent createFileContent(const std::string &content, IGC::CodeType::CodeType_t codeType) const;
protected:
MockOclocArgHelper::FilesMap mockArgHelperFilesMap{};
MockOclocArgHelper mockArgHelper{mockArgHelperFilesMap};
char binaryToReturn[8]{7, 7, 7, 7, 0, 1, 2, 3};
};
} // namespace NEO