2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/command_stream/linear_stream.h"
|
2021-01-21 20:10:13 +08:00
|
|
|
#include "shared/test/common/mocks/mock_graphics_allocation.h"
|
2020-02-24 17:22:30 +08:00
|
|
|
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "test.h"
|
2020-02-23 05:50:57 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
#include <cstdint>
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
struct LinearStreamFixture {
|
|
|
|
LinearStreamFixture(void)
|
2020-06-15 04:18:42 +08:00
|
|
|
: gfxAllocation(static_cast<void *>(pCmdBuffer), sizeof(pCmdBuffer)), linearStream(&gfxAllocation) {
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
virtual void SetUp(void) {
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void TearDown(void) {
|
|
|
|
}
|
|
|
|
MockGraphicsAllocation gfxAllocation;
|
|
|
|
LinearStream linearStream;
|
|
|
|
uint32_t pCmdBuffer[1024];
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef Test<LinearStreamFixture> LinearStreamTest;
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|