Correct method names in device and module fixtures

correct naming in derived classes

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-08-11 14:01:11 +00:00
committed by Compute-Runtime-Automation
parent fea9c9aca7
commit 6a46e8f0ca
215 changed files with 639 additions and 685 deletions

View File

@ -44,7 +44,7 @@ TEST(ClCommandStreamReceiverTest, WhenMakingResidentThenBufferResidencyFlagIsSet
delete buffer;
}
using ClCommandStreamReceiverTests = TestLegacy<DeviceFixture>;
using ClCommandStreamReceiverTests = Test<DeviceFixture>;
HWTEST_F(ClCommandStreamReceiverTests, givenCommandStreamReceiverWhenFenceAllocationIsRequiredAndCreateGlobalFenceAllocationIsCalledThenFenceAllocationIsAllocated) {
RAIIHwHelperFactory<MockHwHelperWithFenceAllocation<FamilyType>> hwHelperBackup{pDevice->getHardwareInfo().platform.eRenderCoreFamily};

View File

@ -11,7 +11,7 @@
using namespace NEO;
using CommandParse = TestLegacy<DeviceFixture>;
using CommandParse = Test<DeviceFixture>;
HWTEST_F(CommandParse, WhenGeneratingCommandBufferThenIsNotNull) {
typedef typename FamilyType::PARSE PARSE;

View File

@ -140,7 +140,7 @@ struct MyMockCsrWithAubDump : CommandStreamReceiverWithAUBDump<BaseCSR> {
struct CommandStreamReceiverWithAubDumpTest : public ::testing::TestWithParam<bool /*createAubCSR*/>, MockAubCenterFixture, DeviceFixture {
void SetUp() override {
DeviceFixture::SetUp();
DeviceFixture::setUp();
MockAubCenterFixture::SetUp();
setMockAubCenter(pDevice->getRootDeviceEnvironmentRef());
executionEnvironment = pDevice->getExecutionEnvironment();
@ -162,7 +162,7 @@ struct CommandStreamReceiverWithAubDumpTest : public ::testing::TestWithParam<bo
void TearDown() override {
delete csrWithAubDump;
MockAubCenterFixture::TearDown();
DeviceFixture::TearDown();
DeviceFixture::tearDown();
}
ExecutionEnvironment *executionEnvironment;
@ -173,13 +173,13 @@ struct CommandStreamReceiverWithAubDumpTest : public ::testing::TestWithParam<bo
struct CommandStreamReceiverWithAubDumpSimpleTest : TestLegacy<MockAubCenterFixture>, DeviceFixture {
void SetUp() override {
DeviceFixture::SetUp();
DeviceFixture::setUp();
MockAubCenterFixture::SetUp();
setMockAubCenter(pDevice->getRootDeviceEnvironmentRef());
}
void TearDown() override {
MockAubCenterFixture::TearDown();
DeviceFixture::TearDown();
DeviceFixture::tearDown();
}
};

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -23,7 +23,7 @@ void api_fixture::SetUp() {
setReferenceTime();
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
DeviceFixture::SetUp();
DeviceFixture::setUp();
ASSERT_NE(nullptr, pDevice);
auto pDevice = pPlatform->getDevice(0);
@ -40,7 +40,7 @@ void api_fixture::TearDown() {
delete pContext;
delete pProgram;
CommandQueueHwFixture::TearDown();
DeviceFixture::TearDown();
DeviceFixture::tearDown();
PlatformFixture::TearDown();
}
} // namespace NEO

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -15,7 +15,7 @@ using NEO::Device;
using NEO::HardwareInfo;
using NEO::platformDevices;
void DeviceFixture::SetUp() {
void DeviceFixture::setUp() {
pDevice = ClDeviceHelper<>::create();
ASSERT_NE(nullptr, pDevice);
@ -24,6 +24,6 @@ void DeviceFixture::SetUp() {
ASSERT_NE(nullptr, const_cast<uint32_t *>(pTagMemory));
}
void DeviceFixture::TearDown() {
void DeviceFixture::tearDown() {
delete pDevice;
}

View File

@ -13,7 +13,7 @@
#include "hw_cmds_xe_hpc_core_base.h"
using namespace NEO;
using XeHpcCoreBuiltInTests = TestLegacy<DeviceFixture>;
using XeHpcCoreBuiltInTests = Test<DeviceFixture>;
XE_HPC_CORETEST_F(XeHpcCoreBuiltInTests, GivenBuiltinTypeBinaryWhenGettingBuiltinResourceForNotRegisteredRevisionThenBinaryBuiltinIsNotAvailable) {
pDevice->getRootDeviceEnvironment().getMutableHardwareInfo()->platform.usRevId += 0xdead;