Files
compute-runtime/shared/test/common/fixtures/linear_stream_fixture.h
Mateusz Jablonski bfc0919999 Remove usage of TestLegacy from shared tests
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-08-16 14:36:33 +02:00

34 lines
719 B
C++

/*
* Copyright (C) 2018-2022 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 "shared/test/common/test_macros/hw_test.h"
#include <cstdint>
namespace NEO {
struct LinearStreamFixture {
LinearStreamFixture()
: gfxAllocation(static_cast<void *>(pCmdBuffer), sizeof(pCmdBuffer)), linearStream(&gfxAllocation) {
}
void setUp() {
}
void tearDown() {
}
MockGraphicsAllocation gfxAllocation;
LinearStream linearStream;
uint32_t pCmdBuffer[1024]{};
};
using LinearStreamTest = Test<LinearStreamFixture>;
} // namespace NEO