Files
compute-runtime/opencl/test/unit_test/command_stream/linear_stream_fixture.h
lgotszal 3bd4bca911 Copyright header update
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).

Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
2021-05-17 20:38:19 +02:00

35 lines
712 B
C++

/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/command_stream/linear_stream.h"
#include "shared/test/common/mocks/mock_graphics_allocation.h"
#include "test.h"
#include <cstdint>
namespace NEO {
struct LinearStreamFixture {
LinearStreamFixture(void)
: gfxAllocation(static_cast<void *>(pCmdBuffer), sizeof(pCmdBuffer)), linearStream(&gfxAllocation) {
}
virtual void SetUp(void) {
}
virtual void TearDown(void) {
}
MockGraphicsAllocation gfxAllocation;
LinearStream linearStream;
uint32_t pCmdBuffer[1024];
};
typedef Test<LinearStreamFixture> LinearStreamTest;
} // namespace NEO