mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Remove usage of TestLegacy from opencl tests
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
44d218e52e
commit
bca852617c
@@ -2557,16 +2557,16 @@ TEST(MemoryManagerTest, givenForcedLinearImages3DImageAndProperDescriptorValuesW
|
||||
alignedFree(hostPtr);
|
||||
}
|
||||
|
||||
class HeapSelectorTest : public TestLegacy<ClDeviceFixture> {
|
||||
class HeapSelectorTest : public Test<ClDeviceFixture> {
|
||||
public:
|
||||
using BaseClass = ClDeviceFixture;
|
||||
void SetUp() override {
|
||||
executionEnvironment = std::unique_ptr<MockExecutionEnvironment>(new MockExecutionEnvironment(defaultHwInfo.get()));
|
||||
memoryManager = std::unique_ptr<MockMemoryManager>(new MockMemoryManager(false, false, *executionEnvironment.get()));
|
||||
BaseClass::SetUp();
|
||||
BaseClass::setUp();
|
||||
}
|
||||
void TearDown() override {
|
||||
BaseClass::TearDown();
|
||||
BaseClass::tearDown();
|
||||
}
|
||||
std::unique_ptr<MockExecutionEnvironment> executionEnvironment;
|
||||
std::unique_ptr<MockMemoryManager> memoryManager;
|
||||
|
||||
@@ -36,7 +36,7 @@ template <bool enableLocalMemory>
|
||||
struct SVMMemoryAllocatorFixture {
|
||||
SVMMemoryAllocatorFixture() : executionEnvironment(defaultHwInfo.get()) {}
|
||||
|
||||
virtual void SetUp() { // NOLINT(readability-identifier-naming)
|
||||
void setUp() {
|
||||
bool svmSupported = executionEnvironment.rootDeviceEnvironments[0]->getHardwareInfo()->capabilityTable.ftrSvm;
|
||||
if (!svmSupported) {
|
||||
GTEST_SKIP();
|
||||
@@ -48,7 +48,7 @@ struct SVMMemoryAllocatorFixture {
|
||||
memoryManager->pageFaultManager.reset(new MockPageFaultManager);
|
||||
}
|
||||
}
|
||||
virtual void TearDown() { // NOLINT(readability-identifier-naming)
|
||||
void tearDown() {
|
||||
}
|
||||
|
||||
MockExecutionEnvironment executionEnvironment;
|
||||
@@ -58,9 +58,9 @@ struct SVMMemoryAllocatorFixture {
|
||||
std::map<uint32_t, DeviceBitfield> deviceBitfields{{mockRootDeviceIndex, mockDeviceBitfield}};
|
||||
};
|
||||
|
||||
using SVMMemoryAllocatorTest = TestLegacy<SVMMemoryAllocatorFixture<false>>;
|
||||
using SVMMemoryAllocatorTest = Test<SVMMemoryAllocatorFixture<false>>;
|
||||
|
||||
using SVMLocalMemoryAllocatorTest = TestLegacy<SVMMemoryAllocatorFixture<true>>;
|
||||
using SVMLocalMemoryAllocatorTest = Test<SVMMemoryAllocatorFixture<true>>;
|
||||
|
||||
TEST_F(SVMMemoryAllocatorTest, whenCreateZeroSizedSVMAllocationThenReturnNullptr) {
|
||||
auto ptr = svmManager->createSVMAlloc(0, {}, rootDeviceIndices, deviceBitfields);
|
||||
|
||||
Reference in New Issue
Block a user