2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-02-27 18:39:32 +08:00
|
|
|
* Copyright (C) 2017-2019 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
|
2019-08-22 22:51:02 +08:00
|
|
|
#include "core/command_stream/linear_stream.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "test.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "unit_tests/mocks/mock_graphics_allocation.h"
|
2019-02-27 18:39:32 +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)
|
|
|
|
: gfxAllocation((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;
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|