mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 15:53:13 +08:00
Include files are now grouped and sorted in following order: 1. Header file of the class the current file implements 2. Project files 3. Third party files 4. Standard library Change-Id: If31af05652184169f7fee1d7ad08f1b2ed602cf0 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
47 lines
1.0 KiB
C++
47 lines
1.0 KiB
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/kernel/kernel.h"
|
|
#include "runtime/mem_obj/buffer.h"
|
|
#include "test.h"
|
|
#include "unit_tests/fixtures/context_fixture.h"
|
|
#include "unit_tests/fixtures/device_fixture.h"
|
|
#include "unit_tests/mocks/mock_buffer.h"
|
|
#include "unit_tests/mocks/mock_context.h"
|
|
#include "unit_tests/mocks/mock_kernel.h"
|
|
#include "unit_tests/mocks/mock_program.h"
|
|
|
|
#include "CL/cl.h"
|
|
#include "gtest/gtest.h"
|
|
|
|
#include <memory>
|
|
|
|
using namespace OCLRT;
|
|
|
|
class KernelArgBufferFixture : public ContextFixture, public DeviceFixture {
|
|
|
|
using ContextFixture::SetUp;
|
|
|
|
public:
|
|
KernelArgBufferFixture()
|
|
: retVal(CL_SUCCESS), pProgram(nullptr), pKernel(nullptr), pKernelInfo(nullptr) {
|
|
}
|
|
|
|
protected:
|
|
void SetUp();
|
|
void TearDown();
|
|
|
|
cl_int retVal;
|
|
MockProgram *pProgram;
|
|
MockKernel *pKernel;
|
|
std::unique_ptr<KernelInfo> pKernelInfo;
|
|
SKernelBinaryHeaderCommon kernelHeader;
|
|
char pSshLocal[64];
|
|
char pCrossThreadData[64];
|
|
};
|