Correct L0 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 14:00:54 +00:00
committed by Compute-Runtime-Automation
parent d213a8e8cd
commit ab76a39691
27 changed files with 104 additions and 104 deletions

View File

@@ -18,7 +18,7 @@
namespace L0 {
namespace ult {
using AUBHelloWorldL0 = TestLegacy<AUBFixtureL0>;
using AUBHelloWorldL0 = Test<AUBFixtureL0>;
TEST_F(AUBHelloWorldL0, whenAppendMemoryCopyIsCalledThenMemoryIsProperlyCopied) {
uint8_t size = 8;
uint8_t val = 255;

View File

@@ -22,17 +22,17 @@
namespace L0 {
namespace ult {
struct L0BindlessAub : TestLegacy<AUBFixtureL0> {
struct L0BindlessAub : Test<AUBFixtureL0> {
void SetUp() override {
DebugManager.flags.UseBindlessMode.set(1);
DebugManager.flags.UseExternalAllocatorForSshAndDsh.set(1);
AUBFixtureL0::SetUp();
AUBFixtureL0::setUp();
}
void TearDown() override {
module->destroy();
AUBFixtureL0::TearDown();
AUBFixtureL0::tearDown();
}
void createModuleFromFile(const std::string &fileName, ze_context_handle_t context, L0::Device *device) {

View File

@@ -19,7 +19,7 @@
namespace L0 {
namespace ult {
struct AUBAppendKernelIndirectL0 : TestLegacy<AUBFixtureL0> {
struct AUBAppendKernelIndirectL0 : Test<AUBFixtureL0> {
static ze_module_handle_t createModuleFromFile(const std::string &fileName, ze_context_handle_t context, ze_device_handle_t device) {
ze_module_handle_t moduleHandle;

View File

@@ -28,15 +28,15 @@
namespace L0 {
namespace ult {
struct DebuggerAub : TestLegacy<AUBFixtureL0> {
struct DebuggerAub : Test<AUBFixtureL0> {
void SetUp() override {
AUBFixtureL0::SetUp(NEO::defaultHwInfo.get(), true);
AUBFixtureL0::setUp(NEO::defaultHwInfo.get(), true);
}
void TearDown() override {
module->destroy();
AUBFixtureL0::TearDown();
AUBFixtureL0::tearDown();
}
void createModuleFromFile(const std::string &fileName, ze_context_handle_t context, L0::Device *device) {

View File

@@ -33,10 +33,10 @@ void AUBFixtureL0::prepareCopyEngines(NEO::MockDevice &device, const std::string
}
}
void AUBFixtureL0::SetUp() {
SetUp(NEO::defaultHwInfo.get(), false);
void AUBFixtureL0::setUp() {
setUp(NEO::defaultHwInfo.get(), false);
}
void AUBFixtureL0::SetUp(const NEO::HardwareInfo *hardwareInfo, bool debuggingEnabled) {
void AUBFixtureL0::setUp(const NEO::HardwareInfo *hardwareInfo, bool debuggingEnabled) {
ASSERT_NE(nullptr, hardwareInfo);
const auto &hwInfo = *hardwareInfo;
@@ -92,7 +92,7 @@ void AUBFixtureL0::SetUp(const NEO::HardwareInfo *hardwareInfo, bool debuggingEn
pCmdq = CommandQueue::create(hwInfo.platform.eProductFamily, device, csr, &queueDesc, false, false, returnValue);
EXPECT_EQ(ZE_RESULT_SUCCESS, res);
}
void AUBFixtureL0::TearDown() {
void AUBFixtureL0::tearDown() {
context->destroy();
pCmdq->destroy();
}

View File

@@ -43,9 +43,9 @@ class AUBFixtureL0 {
public:
AUBFixtureL0();
virtual ~AUBFixtureL0();
void SetUp(); // NOLINT(readability-identifier-naming)
void SetUp(const NEO::HardwareInfo *hardwareInfo, bool debuggingEnabled); // NOLINT(readability-identifier-naming)
void TearDown(); // NOLINT(readability-identifier-naming)
void setUp();
void setUp(const NEO::HardwareInfo *hardwareInfo, bool debuggingEnabled);
void tearDown();
static void prepareCopyEngines(NEO::MockDevice &device, const std::string &filename);
template <typename FamilyType>

View File

@@ -25,7 +25,7 @@ namespace L0 {
namespace ult {
struct HostPointerManagerFixure {
void SetUp() { // NOLINT(readability-identifier-naming)
void setUp() {
NEO::MockCompilerEnableGuard mock(true);
NEO::DeviceVector devices;
neoDevice = NEO::MockDevice::createWithNewExecutionEnvironment<NEO::MockDevice>(NEO::defaultHwInfo.get());
@@ -51,7 +51,7 @@ struct HostPointerManagerFixure {
context = L0::Context::fromHandle(hContext);
}
void TearDown() { // NOLINT(readability-identifier-naming)
void tearDown() {
context->destroy();
hostDriverHandle->getMemoryManager()->freeSystemMemory(heapPointer);
@@ -72,26 +72,26 @@ struct HostPointerManagerFixure {
};
struct ForceDisabledHostPointerManagerFixure : public HostPointerManagerFixure {
void SetUp() {
void setUp() {
DebugManager.flags.EnableHostPointerImport.set(0);
HostPointerManagerFixure::SetUp();
HostPointerManagerFixure::setUp();
}
void TearDown() {
HostPointerManagerFixure::TearDown();
void tearDown() {
HostPointerManagerFixure::tearDown();
}
};
struct ForceEnabledHostPointerManagerFixure : public HostPointerManagerFixure {
void SetUp() {
void setUp() {
DebugManager.flags.EnableHostPointerImport.set(1);
HostPointerManagerFixure::SetUp();
HostPointerManagerFixure::setUp();
}
void TearDown() {
HostPointerManagerFixure::TearDown();
void tearDown() {
HostPointerManagerFixure::tearDown();
}
};

View File

@@ -17,20 +17,20 @@ namespace ult {
class CacheReservationFixture : public DeviceFixture {
public:
void SetUp() {
void setUp() {
DeviceFixture::setUp();
auto deviceImp = static_cast<DeviceImp *>(device);
ASSERT_NE(nullptr, deviceImp->cacheReservation.get());
cache = deviceImp->cacheReservation.get();
}
void TearDown() {
void tearDown() {
DeviceFixture::tearDown();
}
CacheReservation *cache = nullptr;
};
using CacheReservationTest = TestLegacy<CacheReservationFixture>;
using CacheReservationTest = Test<CacheReservationFixture>;
TEST_F(CacheReservationTest, GivenCacheReservationCreatedWhenCallingReserveCacheThenReturnFalse) {
size_t cacheLevel = 3;

View File

@@ -17,19 +17,19 @@ namespace ult {
class CacheReservationFixture : public DeviceFixture {
public:
void SetUp() {
void setUp() {
DeviceFixture::setUp();
auto deviceImp = static_cast<DeviceImp *>(device);
ASSERT_NE(nullptr, deviceImp->cacheReservation.get());
cache = deviceImp->cacheReservation.get();
}
void TearDown() {
void tearDown() {
DeviceFixture::tearDown();
}
CacheReservation *cache = nullptr;
};
using CacheReservationTest = TestLegacy<CacheReservationFixture>;
using CacheReservationTest = Test<CacheReservationFixture>;
TEST_F(CacheReservationTest, GivenCacheReservationCreatedWhenCallingReserveCacheThenReturnFalse) {
size_t cacheLevel = 3;

View File

@@ -720,7 +720,7 @@ HWTEST2_F(CommandListCreate, whenCommandListIsCreatedThenFlagsAreCorrectlySet, I
}
}
using HostPointerManagerCommandListTest = TestLegacy<HostPointerManagerFixure>;
using HostPointerManagerCommandListTest = Test<HostPointerManagerFixure>;
HWTEST2_F(HostPointerManagerCommandListTest,
givenImportedHostPointerWhenAppendMemoryFillUsingHostPointerThenAppendFillUsingHostPointerAllocation,
IsAtLeastSkl) {

View File

@@ -25,7 +25,7 @@ namespace ult {
class CommandListMemoryExtensionFixture : public DeviceFixture {
public:
void SetUp() {
void setUp() {
DeviceFixture::setUp();
ze_result_t returnValue;
commandList.reset(whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::RenderCompute, 0u, returnValue)));
@@ -52,7 +52,7 @@ class CommandListMemoryExtensionFixture : public DeviceFixture {
EXPECT_NE(nullptr, ptr);
}
void TearDown() {
void tearDown() {
context->freeMem(ptr);
event.reset(nullptr);
eventPool.reset(nullptr);
@@ -67,7 +67,7 @@ class CommandListMemoryExtensionFixture : public DeviceFixture {
void *ptr = nullptr;
};
using CommandListAppendWaitOnMemExtension = TestLegacy<CommandListMemoryExtensionFixture>;
using CommandListAppendWaitOnMemExtension = Test<CommandListMemoryExtensionFixture>;
TEST_F(CommandListAppendWaitOnMemExtension, givenAppendWaitOnMemReturnsUnsupported) {
ze_result_t result = ZE_RESULT_SUCCESS;
@@ -76,7 +76,7 @@ TEST_F(CommandListAppendWaitOnMemExtension, givenAppendWaitOnMemReturnsUnsupport
EXPECT_EQ(ZE_RESULT_ERROR_UNSUPPORTED_FEATURE, result);
}
using CommandListAppendWriteToMemExtension = TestLegacy<CommandListMemoryExtensionFixture>;
using CommandListAppendWriteToMemExtension = Test<CommandListMemoryExtensionFixture>;
TEST_F(CommandListAppendWriteToMemExtension, givenAppendWriteToMemReturnsUnsupported) {
ze_result_t result = ZE_RESULT_SUCCESS;

View File

@@ -326,7 +326,7 @@ TEST_F(ContextTest, whenCreatingAndDestroyingContextThenSuccessIsReturned) {
EXPECT_EQ(ZE_RESULT_SUCCESS, res);
}
using ContextMakeMemoryResidentTests = TestLegacy<HostPointerManagerFixure>;
using ContextMakeMemoryResidentTests = Test<HostPointerManagerFixure>;
TEST_F(ContextMakeMemoryResidentTests,
givenUknownPointerPassedToMakeMemoryResidentThenInvalidArgumentIsReturned) {

View File

@@ -27,7 +27,7 @@ namespace L0 {
namespace ult {
struct ActiveDebuggerFixture {
void SetUp() { // NOLINT(readability-identifier-naming)
void setUp() {
NEO::MockCompilerEnableGuard mock(true);
ze_result_t returnValue;
auto executionEnvironment = new NEO::ExecutionEnvironment();
@@ -67,7 +67,7 @@ struct ActiveDebuggerFixture {
deviceL0 = L0::Device::fromHandle(hDevice);
ASSERT_NE(nullptr, deviceL0);
}
void TearDown() { // NOLINT(readability-identifier-naming)
void tearDown() {
L0::GlobalDriver = nullptr;
}

View File

@@ -21,7 +21,7 @@ namespace L0 {
namespace ult {
struct L0DebuggerFixture {
void SetUp() { // NOLINT(readability-identifier-naming)
void setUp() {
NEO::MockCompilerEnableGuard mock(true);
auto executionEnvironment = new NEO::ExecutionEnvironment();
auto mockBuiltIns = new NEO::MockBuiltins();
@@ -54,7 +54,7 @@ struct L0DebuggerFixture {
device = driverHandle->devices[0];
}
void TearDown() { // NOLINT(readability-identifier-naming)
void tearDown() {
}
std::unique_ptr<Mock<L0::DriverHandleImp>> driverHandle;
@@ -68,14 +68,14 @@ struct L0DebuggerFixture {
};
struct L0DebuggerHwFixture : public L0DebuggerFixture {
void SetUp() {
L0DebuggerFixture::SetUp();
void setUp() {
L0DebuggerFixture::setUp();
debuggerHw = static_cast<DebuggerL0 *>(neoDevice->getExecutionEnvironment()->rootDeviceEnvironments[neoDevice->getRootDeviceIndex()]->debugger.get());
neoDevice->setPreemptionMode(PreemptionMode::Disabled);
}
void TearDown() {
L0DebuggerFixture::TearDown();
void tearDown() {
L0DebuggerFixture::tearDown();
debuggerHw = nullptr;
}
template <typename GfxFamily>
@@ -86,12 +86,12 @@ struct L0DebuggerHwFixture : public L0DebuggerFixture {
};
struct L0DebuggerPerContextAddressSpaceFixture : public L0DebuggerHwFixture {
void SetUp() {
void setUp() {
NEO::DebugManager.flags.DebuggerForceSbaTrackingMode.set(0);
L0DebuggerHwFixture::SetUp();
L0DebuggerHwFixture::setUp();
}
void TearDown() {
L0DebuggerHwFixture::TearDown();
void tearDown() {
L0DebuggerHwFixture::tearDown();
}
DebugManagerStateRestore restorer;
};
@@ -99,10 +99,10 @@ struct L0DebuggerPerContextAddressSpaceFixture : public L0DebuggerHwFixture {
struct L0DebuggerHwParameterizedFixture : ::testing::TestWithParam<int>, public L0DebuggerHwFixture {
void SetUp() override {
NEO::DebugManager.flags.DebuggerForceSbaTrackingMode.set(GetParam());
L0DebuggerHwFixture::SetUp();
L0DebuggerHwFixture::setUp();
}
void TearDown() override {
L0DebuggerHwFixture::TearDown();
L0DebuggerHwFixture::tearDown();
}
DebugManagerStateRestore restorer;
};

View File

@@ -28,7 +28,7 @@ namespace ult {
struct L0DebuggerLinuxFixture {
void SetUp() { // NOLINT(readability-identifier-naming)
void setUp() {
setUp(nullptr);
}
@@ -56,7 +56,7 @@ struct L0DebuggerLinuxFixture {
device = driverHandle->devices[0];
}
void TearDown() { // NOLINT(readability-identifier-naming)
void tearDown() {
drmMock = nullptr;
device = nullptr;
neoDevice = nullptr;
@@ -70,7 +70,7 @@ struct L0DebuggerLinuxFixture {
struct L0DebuggerLinuxMultitileFixture : public L0DebuggerLinuxFixture {
void SetUp() { // NOLINT(readability-identifier-naming)
void setUp() {
DebugManager.flags.CreateMultipleRootDevices.set(1);
constexpr auto numSubDevices = 2u;
@@ -89,8 +89,8 @@ struct L0DebuggerLinuxMultitileFixture : public L0DebuggerLinuxFixture {
subDevice1 = neoDevice->getSubDevice(1)->getSpecializedDevice<Device>();
}
void TearDown() { // NOLINT(readability-identifier-naming)
L0DebuggerLinuxFixture::TearDown();
void tearDown() {
L0DebuggerLinuxFixture::tearDown();
}
DebugManagerStateRestore restorer;
@@ -99,8 +99,8 @@ struct L0DebuggerLinuxMultitileFixture : public L0DebuggerLinuxFixture {
L0::Device *subDevice1 = nullptr;
};
using L0DebuggerLinuxTest = TestLegacy<L0DebuggerLinuxFixture>;
using L0DebuggerLinuxMultitileTest = TestLegacy<L0DebuggerLinuxMultitileFixture>;
using L0DebuggerLinuxTest = Test<L0DebuggerLinuxFixture>;
using L0DebuggerLinuxMultitileTest = Test<L0DebuggerLinuxMultitileFixture>;
TEST_F(L0DebuggerLinuxTest, givenProgramDebuggingEnabledWhenDriverHandleIsCreatedThenItAllocatesL0Debugger) {
EXPECT_NE(nullptr, neoDevice->getDebugger());

View File

@@ -21,7 +21,7 @@
namespace L0 {
namespace ult {
using L0DebuggerTest = TestLegacy<L0DebuggerHwFixture>;
using L0DebuggerTest = Test<L0DebuggerHwFixture>;
using L0DebuggerParameterizedTests = L0DebuggerHwParameterizedFixture;
TEST_F(L0DebuggerTest, givenL0DebuggerWhenCallingIsLegacyThenFalseIsReturned) {
@@ -75,7 +75,7 @@ TEST_F(L0DebuggerTest, givenProgramDebuggingEnabledWhenDebuggerIsCreatedThenComp
EXPECT_FALSE(neoDevice->getHardwareInfo().capabilityTable.ftrRenderCompressedImages);
}
using L0DebuggerPerContextAddressSpaceTest = TestLegacy<L0DebuggerPerContextAddressSpaceFixture>;
using L0DebuggerPerContextAddressSpaceTest = Test<L0DebuggerPerContextAddressSpaceFixture>;
HWTEST_F(L0DebuggerPerContextAddressSpaceTest, givenDebuggingEnabledWhenCommandListIsExecutedThenValidKernelDebugCommandsAreAdded) {
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
using STATE_SIP = typename FamilyType::STATE_SIP;

View File

@@ -32,9 +32,9 @@ struct PerContextAddressSpaceFixture : public Test<DeviceFixture> {
DebugManagerStateRestore restorer;
};
using L0DebuggerPerContextAddressSpaceTest = TestLegacy<L0DebuggerPerContextAddressSpaceFixture>;
using L0DebuggerPerContextAddressSpaceTest = Test<L0DebuggerPerContextAddressSpaceFixture>;
using L0DebuggerTest = TestLegacy<L0DebuggerHwFixture>;
using L0DebuggerTest = Test<L0DebuggerHwFixture>;
using L0DebuggerParameterizedTests = L0DebuggerHwParameterizedFixture;
@@ -332,14 +332,14 @@ HWTEST2_F(L0DebuggerTest, givenDebuggingEnabledWhenCommandListIsExecutedThenSbaB
INSTANTIATE_TEST_CASE_P(SBAModesForDebugger, L0DebuggerParameterizedTests, ::testing::Values(0, 1));
struct L0DebuggerSingleAddressSpace : public TestLegacy<L0DebuggerHwFixture> {
struct L0DebuggerSingleAddressSpace : public Test<L0DebuggerHwFixture> {
void SetUp() override {
NEO::DebugManager.flags.DebuggerForceSbaTrackingMode.set(1);
TestLegacy<L0DebuggerHwFixture>::SetUp();
Test<L0DebuggerHwFixture>::SetUp();
}
void TearDown() override {
TestLegacy<L0DebuggerHwFixture>::TearDown();
Test<L0DebuggerHwFixture>::TearDown();
}
DebugManagerStateRestore restorer;

View File

@@ -25,7 +25,7 @@
namespace L0 {
namespace ult {
using DeviceWithDebuggerEnabledTest = TestLegacy<ActiveDebuggerFixture>;
using DeviceWithDebuggerEnabledTest = Test<ActiveDebuggerFixture>;
TEST_F(DeviceWithDebuggerEnabledTest, givenDebuggingEnabledWhenModuleIsCreatedThenDebugOptionsAreUsed) {
NEO::MockCompilerEnableGuard mock(true);
auto cip = new NEO::MockCompilerInterfaceCaptureBuildOptions();
@@ -376,7 +376,7 @@ HWTEST_F(KernelDebugSurfaceTest, givenDebuggerAndBindfulKernelWhenAppendingKerne
EXPECT_EQ(RENDER_SURFACE_STATE::SURFACE_TYPE_SURFTYPE_BUFFER, debugSurfaceState->getSurfaceType());
}
using ModuleWithDebuggerL0Test = TestLegacy<L0DebuggerHwFixture>;
using ModuleWithDebuggerL0Test = Test<L0DebuggerHwFixture>;
TEST_F(ModuleWithDebuggerL0Test, givenDebuggingEnabledWhenModuleIsCreatedThenDebugOptionsAreNotUsed) {
NEO::MockCompilerEnableGuard mock(true);
auto cip = new NEO::MockCompilerInterfaceCaptureBuildOptions();
@@ -401,7 +401,7 @@ TEST_F(ModuleWithDebuggerL0Test, givenDebuggingEnabledWhenModuleIsCreatedThenDeb
EXPECT_FALSE(CompilerOptions::contains(cip->buildOptions, L0::BuildOptions::optDisable));
}
using KernelInitializeTest = TestLegacy<L0DebuggerHwFixture>;
using KernelInitializeTest = Test<L0DebuggerHwFixture>;
TEST_F(KernelInitializeTest, givenDebuggingEnabledWhenKernelsAreInitializedThenAllocationsAreNotResidentAndNotCopied) {
uint32_t kernelHeap = 0xDEAD;
@@ -549,7 +549,7 @@ HWTEST_F(ModuleWithDebuggerL0Test, GivenNoDebugDataWhenInitializingModuleThenDoN
EXPECT_EQ(0u, getMockDebuggerL0Hw<FamilyType>()->notifyModuleCreateCount);
}
using ModuleWithZebinAndL0DebuggerTest = TestLegacy<L0DebuggerHwFixture>;
using ModuleWithZebinAndL0DebuggerTest = Test<L0DebuggerHwFixture>;
HWTEST_F(ModuleWithZebinAndL0DebuggerTest, GivenZebinDebugDataWhenInitializingModuleThenRegisterElfAndNotifyModuleCreate) {
NEO::MockCompilerEnableGuard mock(true);

View File

@@ -25,7 +25,7 @@
namespace L0 {
namespace ult {
using CommandQueueDebugCommandsTest = TestLegacy<ActiveDebuggerFixture>;
using CommandQueueDebugCommandsTest = Test<ActiveDebuggerFixture>;
HWTEST2_F(CommandQueueDebugCommandsTest, givenDebuggingEnabledWhenCommandListIsExecutedThenKernelDebugCommandsAreAdded, IsAtMostGen12lp) {
NEO::MockCompilerEnableGuard mock(true);
@@ -158,7 +158,7 @@ HWTEST2_F(CommandQueueDebugCommandsTest, givenDebuggingEnabledWhenCommandListIsE
commandQueue->destroy();
}
using SLDebuggerInternalUsageTest = TestLegacy<ActiveDebuggerFixture>;
using SLDebuggerInternalUsageTest = Test<ActiveDebuggerFixture>;
HWTEST2_F(SLDebuggerInternalUsageTest, givenDebuggingEnabledWhenInternalCmdQIsUsedThenDebuggerPathsAreNotExecuted, IsAtLeastSkl) {
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
@@ -232,7 +232,7 @@ HWTEST2_F(SLDebuggerInternalUsageTest, givenDebuggingEnabledWhenInternalCmdQIsUs
commandList->destroy();
}
using DeviceWithDebuggerEnabledTest = TestLegacy<ActiveDebuggerFixture>;
using DeviceWithDebuggerEnabledTest = Test<ActiveDebuggerFixture>;
TEST_F(DeviceWithDebuggerEnabledTest, givenDebuggingEnabledWhenDeviceIsCreatedThenItHasDebugSurfaceCreatedWithCorrectAllocationType) {
ASSERT_NE(nullptr, deviceL0->getDebugSurface());
@@ -247,10 +247,10 @@ struct TwoSubDevicesDebuggerEnabledTest : public ActiveDebuggerFixture, public :
void SetUp() override {
DebugManager.flags.CreateMultipleSubDevices.set(2);
VariableBackup<bool> mockDeviceFlagBackup(&MockDevice::createSingleDevice, false);
ActiveDebuggerFixture::SetUp();
ActiveDebuggerFixture::setUp();
}
void TearDown() override {
ActiveDebuggerFixture::TearDown();
ActiveDebuggerFixture::tearDown();
}
DebugManagerStateRestore restorer;
};

View File

@@ -32,7 +32,7 @@ namespace L0 {
namespace ult {
struct L0DebuggerWindowsFixture {
void SetUp() {
void setUp() {
executionEnvironment = new NEO::ExecutionEnvironment;
executionEnvironment->prepareRootDeviceEnvironments(1);
executionEnvironment->setDebuggingEnabled();
@@ -62,7 +62,7 @@ struct L0DebuggerWindowsFixture {
device = driverHandle->devices[0];
}
void TearDown() {
void tearDown() {
}
std::unique_ptr<Mock<L0::DriverHandleImp>> driverHandle;
@@ -74,7 +74,7 @@ struct L0DebuggerWindowsFixture {
MockGdi *gdi = nullptr;
};
using L0DebuggerWindowsTest = TestLegacy<L0DebuggerWindowsFixture>;
using L0DebuggerWindowsTest = Test<L0DebuggerWindowsFixture>;
TEST_F(L0DebuggerWindowsTest, givenProgramDebuggingEnabledWhenDriverHandleIsCreatedThenItAllocatesL0Debugger) {
EXPECT_NE(nullptr, neoDevice->getDebugger());

View File

@@ -15,7 +15,7 @@
namespace L0 {
namespace ult {
using HostPointerManagerTest = TestLegacy<HostPointerManagerFixure>;
using HostPointerManagerTest = Test<HostPointerManagerFixure>;
TEST_F(HostPointerManagerTest,
givenMultipleGraphicsAllocationWhenCopyingHostPointerDataThenCopyOnlyExistingAllocations) {
@@ -437,7 +437,7 @@ TEST_F(HostPointerManagerTest, givenMisalignedPointerRegisteredWhenGettingRelati
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
}
using ForceDisabledHostPointerManagerTest = TestLegacy<ForceDisabledHostPointerManagerFixure>;
using ForceDisabledHostPointerManagerTest = Test<ForceDisabledHostPointerManagerFixure>;
TEST_F(ForceDisabledHostPointerManagerTest, givenHostPointerManagerForceDisabledThenReturnFeatureUnsupported) {
EXPECT_EQ(nullptr, hostDriverHandle->hostPointerManager.get());
@@ -458,7 +458,7 @@ TEST_F(ForceDisabledHostPointerManagerTest, givenHostPointerManagerForceDisabled
EXPECT_EQ(ZE_RESULT_ERROR_UNSUPPORTED_FEATURE, result);
}
using ForceEnabledHostPointerManagerTest = TestLegacy<ForceEnabledHostPointerManagerFixure>;
using ForceEnabledHostPointerManagerTest = Test<ForceEnabledHostPointerManagerFixure>;
TEST_F(ForceEnabledHostPointerManagerTest, givenHostPointerManagerForceEnabledThenReturnSuccess) {
EXPECT_NE(nullptr, hostDriverHandle->hostPointerManager.get());

View File

@@ -640,20 +640,20 @@ TEST(zeDriverGetIpcProperties, whenZeDriverGetIpcPropertiesIsCalledThenGetIPCPro
}
struct HostImportApiFixture : public HostPointerManagerFixure {
void SetUp() {
HostPointerManagerFixure::SetUp();
void setUp() {
HostPointerManagerFixure::setUp();
driverHandle = hostDriverHandle->toHandle();
}
void TearDown() {
HostPointerManagerFixure::TearDown();
void tearDown() {
HostPointerManagerFixure::tearDown();
}
ze_driver_handle_t driverHandle;
};
using DriverExperimentalApiTest = TestLegacy<HostImportApiFixture>;
using DriverExperimentalApiTest = Test<HostImportApiFixture>;
TEST_F(DriverExperimentalApiTest, whenRetrievingApiFunctionThenExpectProperPointer) {
decltype(&zexDriverImportExternalPointer) expectedImport = L0::zexDriverImportExternalPointer;

View File

@@ -38,14 +38,14 @@ class ZeAPITracingCoreTestsFixture {
ZeAPITracingCoreTestsFixture(){};
protected:
virtual void SetUp() { // NOLINT(readability-identifier-naming)
void setUp() {
driver_ddiTable.enableTracing = true;
myThreadPrivateTracerData.onList = false;
myThreadPrivateTracerData.isInitialized = false;
myThreadPrivateTracerData.testAndSetThreadTracerDataInitializedAndOnList();
}
virtual void TearDown() { // NOLINT(readability-identifier-naming)
void tearDown() {
myThreadPrivateTracerData.removeThreadTracerDataFromList();
driver_ddiTable.enableTracing = false;
}
@@ -55,11 +55,11 @@ class ZeApiTracingCoreTests : public ZeAPITracingCoreTestsFixture, public ::test
protected:
void SetUp() override {
ZeAPITracingCoreTestsFixture::SetUp();
ZeAPITracingCoreTestsFixture::setUp();
}
void TearDown() override {
ZeAPITracingCoreTestsFixture::TearDown();
ZeAPITracingCoreTestsFixture::tearDown();
}
};
@@ -76,7 +76,7 @@ class ZeApiTracingRuntimeTests : public ZeAPITracingCoreTestsFixture, public ::t
void SetUp() override {
ze_result_t result;
ZeAPITracingCoreTestsFixture::SetUp();
ZeAPITracingCoreTestsFixture::setUp();
userData = &defaultUserData;
tracerDesc.pUserData = userData;
result = zetTracerExpCreate(nullptr, &tracerDesc, &apiTracerHandle);
@@ -91,7 +91,7 @@ class ZeApiTracingRuntimeTests : public ZeAPITracingCoreTestsFixture, public ::t
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
result = zetTracerExpDestroy(apiTracerHandle);
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
ZeAPITracingCoreTestsFixture::TearDown();
ZeAPITracingCoreTestsFixture::tearDown();
}
void setTracerCallbacksAndEnableTracer() {
@@ -136,7 +136,7 @@ class ZeApiTracingRuntimeMultipleArgumentsTests : public ZeAPITracingCoreTestsFi
void SetUp() override {
ze_result_t result;
ZeAPITracingCoreTestsFixture::SetUp();
ZeAPITracingCoreTestsFixture::setUp();
pUserData0 = &defaultUserData0;
tracerDesc0.pUserData = pUserData0;
@@ -185,7 +185,7 @@ class ZeApiTracingRuntimeMultipleArgumentsTests : public ZeAPITracingCoreTestsFi
result = zetTracerExpDestroy(apiTracerHandle3);
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
ZeAPITracingCoreTestsFixture::TearDown();
ZeAPITracingCoreTestsFixture::tearDown();
}
void setTracerCallbacksAndEnableTracer() {

View File

@@ -24,8 +24,8 @@
namespace L0 {
namespace ult {
using CommandQueueDebugCommandsForSldXeHP = TestLegacy<ActiveDebuggerFixture>;
using CommandQueueDebugCommandsDebuggerL0XeHP = TestLegacy<L0DebuggerHwFixture>;
using CommandQueueDebugCommandsForSldXeHP = Test<ActiveDebuggerFixture>;
using CommandQueueDebugCommandsDebuggerL0XeHP = Test<L0DebuggerHwFixture>;
XEHPTEST_F(CommandQueueDebugCommandsForSldXeHP, givenSteppingA0OrBWhenGlobalSipIsUsedThenMmioIsRestoredAtTheEndOfCmdBuffer) {
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;

View File

@@ -1660,7 +1660,7 @@ TEST_F(MultiTileDebugSessionTest, givenAllSlicesInRequestWhenAllInterruptsReturn
}
struct DebugSessionRegistersAccess {
void SetUp() { // NOLINT(readability-identifier-naming)
void setUp() {
zet_debug_config_t config = {};
config.pid = 0x1234;
auto hwInfo = *NEO::defaultHwInfo.get();
@@ -1673,7 +1673,7 @@ struct DebugSessionRegistersAccess {
session->allThreads[stoppedThreadId]->stopThread(1u);
}
void TearDown() { // NOLINT(readability-identifier-naming)
void tearDown() {
}
void dumpRegisterState() {
@@ -1701,7 +1701,7 @@ struct DebugSessionRegistersAccess {
NEO::MockDevice *neoDevice = nullptr;
};
using DebugSessionRegistersAccessTest = TestLegacy<DebugSessionRegistersAccess>;
using DebugSessionRegistersAccessTest = Test<DebugSessionRegistersAccess>;
TEST_F(DebugSessionRegistersAccessTest, givenTypeToRegsetDescCalledThenCorrectRegdescIsReturned) {
session->stateSaveAreaHeader = MockSipData::createStateSaveAreaHeader(2);

View File

@@ -99,21 +99,21 @@ struct MockDebugSessionWindows : DebugSessionWindows {
};
struct DebugApiWindowsFixture : public DeviceFixture {
void SetUp() {
void setUp() {
DeviceFixture::setUp();
mockWddm = new WddmEuDebugInterfaceMock(*neoDevice->executionEnvironment->rootDeviceEnvironments[0]);
neoDevice->executionEnvironment->rootDeviceEnvironments[0]->osInterface.reset(new NEO::OSInterface);
neoDevice->executionEnvironment->rootDeviceEnvironments[0]->osInterface->setDriverModel(std::unique_ptr<DriverModel>(mockWddm));
}
void TearDown() {
void tearDown() {
DeviceFixture::tearDown();
}
static constexpr uint8_t bufferSize = 16;
WddmEuDebugInterfaceMock *mockWddm = nullptr;
};
using DebugApiWindowsTest = TestLegacy<DebugApiWindowsFixture>;
using DebugApiWindowsTest = Test<DebugApiWindowsFixture>;
TEST_F(DebugApiWindowsTest, GivenReadOfGpuVaFailDueToEscapeCallFailureWhenTryingToReadSbaThenErrorIsReported) {
zet_debug_config_t config = {};
@@ -849,7 +849,7 @@ TEST(DebugSessionWindowsTest, whenTranslateEscapeErrorStatusCalledThenCorrectZeR
EXPECT_EQ(ZE_RESULT_ERROR_UNKNOWN, DebugSessionWindows::translateEscapeReturnStatusToZeResult(DBGUMD_RETURN_TYPE_MAX));
}
using DebugApiWindowsAsyncThreadTest = TestLegacy<DebugApiWindowsFixture>;
using DebugApiWindowsAsyncThreadTest = Test<DebugApiWindowsFixture>;
TEST_F(DebugApiWindowsAsyncThreadTest, GivenDebugSessionWhenStartingAndClosingAsyncThreadThenThreadIsStartedAndFinishes) {
auto session = std::make_unique<MockDebugSessionWindows>(zet_debug_config_t{0x1234}, device);

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -37,7 +37,7 @@ class SysmanKmdManagerFixture : public ::testing::Test {
protected:
Mock<MockKmdSysManager> *pKmdSysManager = nullptr;
void SetUp() {
void SetUp() override {
if (!sysmanUltsEnable) {
GTEST_SKIP();
}