Files
compute-runtime/unit_tests/command_stream/command_stream_fixture.h
kamdiedrich 8f44a95ca0 Changing include paths
Change-Id: I3b878463289083c956382e68da3473788cf5c15f
2020-02-22 18:45:39 +01:00

33 lines
535 B
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "command_queue/command_queue.h"
#include <cstdint>
namespace NEO {
struct CommandStreamFixture {
CommandStreamFixture(void)
: pCS(nullptr),
pCmdBuffer(nullptr) {
}
void SetUp(CommandQueue *pCmdQ) {
pCS = &pCmdQ->getCS(1024);
pCmdBuffer = pCS->getCpuBase();
}
virtual void TearDown(void) {
}
LinearStream *pCS;
void *pCmdBuffer;
};
} // namespace NEO