mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
Move non-ult shared files to single directory
Add SKIP_SHARED_UNIT_TESTS flag Related-To: NEO-5201 Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1a0b7dc393
commit
8a700c5187
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/command_stream/linear_stream.h"
|
||||
#include "shared/source/helpers/state_base_address.h"
|
||||
#include "shared/source/indirect_heap/indirect_heap.h"
|
||||
#include "shared/test/unit_test/fixtures/device_fixture.h"
|
||||
#include "shared/test/unit_test/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/unit_test/mocks/mock_graphics_allocation.h"
|
||||
|
||||
#include "test.h"
|
||||
|
||||
struct SBATest : public NEO::DeviceFixture, public ::testing::Test {
|
||||
void SetUp() override {
|
||||
NEO::DeviceFixture::SetUp();
|
||||
size_t sizeStream = 512;
|
||||
size_t alignmentStream = 0x1000;
|
||||
sshBuffer = alignedMalloc(sizeStream, alignmentStream);
|
||||
ASSERT_NE(nullptr, sshBuffer);
|
||||
|
||||
ssh.replaceBuffer(sshBuffer, sizeStream);
|
||||
auto graphicsAllocation = new MockGraphicsAllocation(sshBuffer, sizeStream);
|
||||
ssh.replaceGraphicsAllocation(graphicsAllocation);
|
||||
|
||||
linearStreamBuffer = alignedMalloc(sizeStream, alignmentStream);
|
||||
commandStream.replaceBuffer(linearStreamBuffer, alignmentStream);
|
||||
}
|
||||
|
||||
void TearDown() override {
|
||||
alignedFree(linearStreamBuffer);
|
||||
delete ssh.getGraphicsAllocation();
|
||||
alignedFree(sshBuffer);
|
||||
NEO::DeviceFixture::TearDown();
|
||||
}
|
||||
IndirectHeap ssh = {nullptr};
|
||||
void *sshBuffer = nullptr;
|
||||
void *linearStreamBuffer = nullptr;
|
||||
DebugManagerStateRestore restorer;
|
||||
LinearStream commandStream;
|
||||
};
|
||||
Reference in New Issue
Block a user