Remove usage of TestLegacy from opencl tests

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-08-16 14:51:17 +00:00
committed by Compute-Runtime-Automation
parent 44d218e52e
commit bca852617c
350 changed files with 1295 additions and 1315 deletions

View File

@@ -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;

View File

@@ -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);