Files
compute-runtime/opencl/test/unit_test/command_stream/linear_stream_fixture.h
Mateusz Hoppe 4d2750161d Move OsAgnosticMemoryManager to shared
Resolves: NEO-5188
-move MockGraphicsAllocation to shared

Change-Id: I17e90af48183f003151fab075a46e40d7df3f160
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-02 21:02:53 +01:00

35 lines
715 B
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/command_stream/linear_stream.h"
#include "shared/test/unit_test/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