Correct fixture methods name to meet clang-tidy requirements

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-08-12 12:37:42 +00:00
committed by Compute-Runtime-Automation
parent 6a46e8f0ca
commit e66bbb54bc
6 changed files with 40 additions and 40 deletions

View File

@@ -239,16 +239,16 @@ HWTEST_F(CommandListCreate, givenUseCsrImmediateSubmissionEnabledForCopyImmediat
class CommandListImmediateFlushTaskTests : public DeviceFixture {
public:
void SetUp() {
void setUp() {
DeviceFixture::setUp();
}
void TearDown() {
void tearDown() {
DeviceFixture::tearDown();
}
DebugManagerStateRestore restorer;
};
using CommandListImmediateFlushTaskComputeTests = TestLegacy<CommandListImmediateFlushTaskTests>;
using CommandListImmediateFlushTaskComputeTests = Test<CommandListImmediateFlushTaskTests>;
HWTEST2_F(CommandListImmediateFlushTaskComputeTests, givenDG2CommandListIsInititalizedThenByDefaultFlushTaskSubmissionEnabled, IsDG2) {
ze_command_queue_desc_t queueDesc = {};
ze_result_t returnValue;

View File

@@ -65,7 +65,7 @@ class AppendFillFixture : public DeviceFixture {
uint32_t numberOfCallsToAppendLaunchKernelWithParams = 0;
};
void SetUp() {
void setUp() {
dstPtr = new uint8_t[allocSize];
immediateDstPtr = new uint8_t[allocSize];
@@ -79,7 +79,7 @@ class AppendFillFixture : public DeviceFixture {
device = driverHandle->devices[0];
}
void TearDown() {
void tearDown() {
delete[] immediateDstPtr;
delete[] dstPtr;
}
@@ -98,18 +98,18 @@ class AppendFillFixture : public DeviceFixture {
};
struct MultiTileAppendFillFixture : public AppendFillFixture {
void SetUp() {
void setUp() {
DebugManager.flags.CreateMultipleSubDevices.set(2);
DebugManager.flags.EnableImplicitScaling.set(1);
AppendFillFixture::SetUp();
AppendFillFixture::setUp();
}
DebugManagerStateRestore restorer;
};
using AppendFillTest = TestLegacy<AppendFillFixture>;
using AppendFillTest = Test<AppendFillFixture>;
using MultiTileAppendFillTest = TestLegacy<MultiTileAppendFillFixture>;
using MultiTileAppendFillTest = Test<MultiTileAppendFillFixture>;
HWTEST2_F(AppendFillTest,
givenCallToAppendMemoryFillWithImmediateValueThenSuccessIsReturned, IsAtLeastSkl) {

View File

@@ -1799,7 +1799,7 @@ TEST_F(EventPoolCreateNegativeTest, whenInitializingEventPoolButMemoryManagerFai
class EventFixture : public DeviceFixture {
public:
void SetUp() {
void setUp() {
DeviceFixture::setUp();
auto hDevice = device->toHandle();
@@ -1807,7 +1807,7 @@ class EventFixture : public DeviceFixture {
eventPool = whiteboxCast(EventPool::create(device->getDriverHandle(), context, 1, &hDevice, &eventPoolDesc, result));
}
void TearDown() {
void tearDown() {
eventPool->destroy();
DeviceFixture::tearDown();
@@ -1823,7 +1823,7 @@ class EventFixture : public DeviceFixture {
EventPool *eventPool;
};
using EventTests = TestLegacy<EventFixture>;
using EventTests = Test<EventFixture>;
TEST_F(EventTests, WhenQueryingStatusThenSuccessIsReturned) {
auto event = whiteboxCast(Event::create<uint32_t>(eventPool, &eventDesc, device));
@@ -1967,12 +1967,12 @@ TEST_F(EventTests, WhenSettingL3FlushOnEventThenSetOnParticularKernel) {
}
struct EventSizeFixture : public DeviceFixture {
void SetUp() {
void setUp() {
DeviceFixture::setUp();
hDevice = device->toHandle();
}
void TearDown() {
void tearDown() {
eventObj0.reset(nullptr);
eventObj1.reset(nullptr);
eventPool.reset(nullptr);
@@ -2011,7 +2011,7 @@ struct EventSizeFixture : public DeviceFixture {
std::unique_ptr<L0::Event> eventObj1;
};
using EventSizeTests = TestLegacy<EventSizeFixture>;
using EventSizeTests = Test<EventSizeFixture>;
HWTEST_F(EventSizeTests, whenCreatingEventPoolThenUseCorrectSizeAndAlignment) {
ze_result_t result = ZE_RESULT_SUCCESS;

View File

@@ -831,11 +831,11 @@ TEST_F(ModuleSpecConstantsLongTests, givenSpecializationConstantsSetWhenCompiler
}
struct ModuleStaticLinkFixture : public DeviceFixture {
void SetUp() {
void setUp() {
DeviceFixture::setUp();
}
void TearDown() {
void tearDown() {
DeviceFixture::tearDown();
}

View File

@@ -473,11 +473,11 @@ void initStateSaveArea(std::vector<char> &stateSaveArea, SIP::version version) {
}
struct DebugApiLinuxFixture : public DeviceFixture {
void SetUp() {
SetUp(nullptr);
void setUp() {
setUp(nullptr);
}
void SetUp(NEO::HardwareInfo *hwInfo) {
void setUp(NEO::HardwareInfo *hwInfo) {
if (hwInfo != nullptr) {
auto executionEnvironment = MockDevice::prepareExecutionEnvironment(hwInfo, 0u);
DeviceFixture::setupWithExecutionEnvironment(*executionEnvironment);
@@ -502,7 +502,7 @@ struct DebugApiLinuxFixture : public DeviceFixture {
neoDevice->executionEnvironment->rootDeviceEnvironments[0]->osInterface->setDriverModel(std::unique_ptr<DriverModel>(mockDrm));
}
void TearDown() {
void tearDown() {
DeviceFixture::tearDown();
}
DrmQueryMock *mockDrm = nullptr;
@@ -510,7 +510,7 @@ struct DebugApiLinuxFixture : public DeviceFixture {
};
struct DebugApiLinuxMultiDeviceFixture : public MultipleDevicesWithCustomHwInfo {
void SetUp() {
void setUp() {
MultipleDevicesWithCustomHwInfo::setUp();
neoDevice = driverHandle->devices[0]->getNEODevice();
@@ -536,7 +536,7 @@ struct DebugApiLinuxMultiDeviceFixture : public MultipleDevicesWithCustomHwInfo
neoDevice->getExecutionEnvironment()->rootDeviceEnvironments[0]->osInterface->setDriverModel(std::unique_ptr<DriverModel>(mockDrm));
}
void TearDown() {
void tearDown() {
MultipleDevicesWithCustomHwInfo::tearDown();
}
NEO::Device *neoDevice = nullptr;
@@ -871,7 +871,7 @@ TEST(DebugSessionTest, GivenNullptrEventWhenReadingEventThenErrorNullptrReturned
EXPECT_EQ(ZE_RESULT_ERROR_INVALID_NULL_POINTER, result);
}
using DebugApiLinuxTest = TestLegacy<DebugApiLinuxFixture>;
using DebugApiLinuxTest = Test<DebugApiLinuxFixture>;
TEST_F(DebugApiLinuxTest, givenDeviceWhenCallingDebugAttachThenSuccessAndValidSessionHandleAreReturned) {
zet_debug_config_t config = {};
@@ -3622,8 +3622,8 @@ TEST_F(DebugApiLinuxTest, GivenUuidEventOfKnownClassWhenHandlingEventThenGpuAddr
}
struct DebugApiLinuxVmBindFixture : public DebugApiLinuxFixture {
void SetUp() {
DebugApiLinuxFixture::SetUp();
void setUp() {
DebugApiLinuxFixture::setUp();
zet_debug_config_t config = {};
config.pid = 0x1234;
@@ -3686,8 +3686,8 @@ struct DebugApiLinuxVmBindFixture : public DebugApiLinuxFixture {
session->clientHandleToConnection[MockDebugSessionLinux::mockClientHandle]->uuidMap.emplace(stateSaveUUID, std::move(stateSaveUuidData));
}
void TearDown() {
DebugApiLinuxFixture::TearDown();
void tearDown() {
DebugApiLinuxFixture::tearDown();
}
const uint64_t sbaClassHandle = 1;
@@ -3710,7 +3710,7 @@ struct DebugApiLinuxVmBindFixture : public DebugApiLinuxFixture {
std::unique_ptr<MockDebugSessionLinux> session;
};
using DebugApiLinuxVmBindTest = TestLegacy<DebugApiLinuxVmBindFixture>;
using DebugApiLinuxVmBindTest = Test<DebugApiLinuxVmBindFixture>;
TEST_F(DebugApiLinuxVmBindTest, GivenVmBindEventWithKnownUuidClassWhenHandlingEventThenBindInfoIsStoredForVm) {
uint64_t sbaAddress = 0x1234000;
@@ -5408,7 +5408,7 @@ TEST_F(DebugApiLinuxTest, givenEnginesEventHandledThenLrcToContextHandleMapIsFil
EXPECT_TRUE(hasSubstr(infoMessage, std::string("ENGINES event: client_handle = 34, ctx_handle = 20, num_engines = 2 DESTROY")));
}
using DebugApiLinuxAttentionTest = TestLegacy<DebugApiLinuxFixture>;
using DebugApiLinuxAttentionTest = Test<DebugApiLinuxFixture>;
TEST_F(DebugApiLinuxAttentionTest, GivenEuAttentionEventForThreadsWhenHandlingEventThenNewlyStoppedThreadsSaved) {
zet_debug_config_t config = {};
@@ -5809,7 +5809,7 @@ TEST_F(DebugApiLinuxAttentionTest, GivenInvalidVmHandleWhenHandlingAttentionEven
EXPECT_EQ(0u, sessionMock->pendingInterrupts.size());
EXPECT_FALSE(sessionMock->triggerEvents);
}
using DebugApiLinuxAsyncThreadTest = TestLegacy<DebugApiLinuxFixture>;
using DebugApiLinuxAsyncThreadTest = Test<DebugApiLinuxFixture>;
TEST_F(DebugApiLinuxAsyncThreadTest, GivenPollReturnsErrorAndEinvalWhenReadingInternalEventsAsyncThenDetachEventIsGenerated) {
zet_debug_config_t config = {};
@@ -6099,11 +6099,11 @@ TEST_F(DebugApiLinuxAsyncThreadTest, GivenInterruptedThreadsWhenNoAttentionEvent
}
struct DebugApiRegistersAccessFixture : public DebugApiLinuxFixture {
void SetUp() {
void setUp() {
hwInfo = *NEO::defaultHwInfo.get();
hwInfo.gtSystemInfo.SubSliceCount = 6 * hwInfo.gtSystemInfo.SliceCount;
DebugApiLinuxFixture::SetUp(&hwInfo);
DebugApiLinuxFixture::setUp(&hwInfo);
mockBuiltins = new MockBuiltins();
mockBuiltins->stateSaveAreaHeader = MockSipData::createStateSaveAreaHeader(1);
@@ -6118,8 +6118,8 @@ struct DebugApiRegistersAccessFixture : public DebugApiLinuxFixture {
session->allThreads[stoppedThreadId]->stopThread(1u);
}
void TearDown() {
DebugApiLinuxFixture::TearDown();
void tearDown() {
DebugApiLinuxFixture::tearDown();
}
NEO::HardwareInfo hwInfo;
std::unique_ptr<MockDebugSessionLinux> session;
@@ -6133,7 +6133,7 @@ struct DebugApiRegistersAccessFixture : public DebugApiLinuxFixture {
EuThread::ThreadId stoppedThreadId{0, stoppedThread};
};
using DebugApiRegistersAccessTest = TestLegacy<DebugApiRegistersAccessFixture>;
using DebugApiRegistersAccessTest = Test<DebugApiRegistersAccessFixture>;
TEST_F(DebugApiRegistersAccessTest, givenInvalidClientHandleWhenReadRegistersCalledThenErrorIsReturned) {
session->clientHandle = MockDebugSessionLinux::invalidClientHandle;
@@ -6645,7 +6645,7 @@ TEST_F(DebugApiRegistersAccessTest, givenWriteSbaRegistersCalledThenErrorInvalid
EXPECT_EQ(ZE_RESULT_ERROR_INVALID_ARGUMENT, zetDebugWriteRegisters(session->toHandle(), {0, 0, 0, 0}, ZET_DEBUG_REGSET_TYPE_SBA_INTEL_GPU, 0, 1, nullptr));
}
using DebugApiLinuxMultitileTest = TestLegacy<DebugApiLinuxMultiDeviceFixture>;
using DebugApiLinuxMultitileTest = Test<DebugApiLinuxMultiDeviceFixture>;
TEST_F(DebugApiLinuxMultitileTest, GivenMultitileDeviceWhenCallingResumeThenThreadsFromBothTilesAreResumed) {
zet_debug_config_t config = {};

View File

@@ -19,7 +19,7 @@ namespace L0 {
namespace ult {
struct DebugApiFixture : public DeviceFixture {
void SetUp() {
void setUp() {
DeviceFixture::setUp();
neoDevice->executionEnvironment->rootDeviceEnvironments[0]->osInterface.reset(new NEO::OSInterface);
mockBuiltins = new MockBuiltins();
@@ -27,14 +27,14 @@ struct DebugApiFixture : public DeviceFixture {
neoDevice->executionEnvironment->rootDeviceEnvironments[0]->builtins.reset(mockBuiltins);
}
void TearDown() {
void tearDown() {
DeviceFixture::tearDown();
}
MockBuiltins *mockBuiltins = nullptr;
};
using DebugApiTest = TestLegacy<DebugApiFixture>;
using DebugApiTest = Test<DebugApiFixture>;
TEST_F(DebugApiTest, givenDeviceWhenGettingDebugPropertiesThenNoFlagIsSet) {
zet_device_debug_properties_t debugProperties = {};