mirror of
https://github.com/intel/compute-runtime.git
synced 2025-06-28 17:58:30 +08:00

Resolves: NEO-5188 -move MockGraphicsAllocation to shared Change-Id: I17e90af48183f003151fab075a46e40d7df3f160 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
35 lines
715 B
C++
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
|