Add a struct for test fixtures with correct method naming convention

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-08-11 11:28:20 +00:00
committed by Compute-Runtime-Automation
parent aed890a219
commit e6fc458d4b
363 changed files with 652 additions and 638 deletions

View File

@ -13,7 +13,7 @@
using namespace NEO;
using AubHelperHwTestXeHPAndLater = Test<ClDeviceFixture>;
using AubHelperHwTestXeHPAndLater = TestLegacy<ClDeviceFixture>;
HWCMDTEST_F(IGFX_XE_HP_CORE, AubHelperHwTestXeHPAndLater, givenAubHelperWhenGetDataHintForPml4EntryIsCalledThenTracePpgttLevel4IsReturned) {
AubHelperHw<FamilyType> aubHelper(true);

View File

@ -69,7 +69,7 @@ class DispatchInfoBuilderFixture : public ContextFixture, public ClDeviceFixture
char pCrossThreadData[128];
};
typedef Test<DispatchInfoBuilderFixture> DispatchInfoBuilderTest;
typedef TestLegacy<DispatchInfoBuilderFixture> DispatchInfoBuilderTest;
template <SplitDispatch::Dim Dim, SplitDispatch::SplitMode Mode>
class DispatchInfoBuilderMock : DispatchInfoBuilder<Dim, Mode> {

View File

@ -53,7 +53,7 @@ class DispatchInfoFixture : public ContextFixture, public ClDeviceFixture {
MockKernel *pKernel = nullptr;
};
typedef Test<DispatchInfoFixture> DispatchInfoTest;
typedef TestLegacy<DispatchInfoFixture> DispatchInfoTest;
TEST_F(DispatchInfoTest, GivenNoGeometryWhenDispatchInfoIsCreatedThenValuesAreSetCorrectly) {
std::unique_ptr<DispatchInfo> dispatchInfo(new DispatchInfo);

View File

@ -13,7 +13,7 @@
using namespace NEO;
using EngineNodeHelperTestsXeHPAndLater = ::Test<ClDeviceFixture>;
using EngineNodeHelperTestsXeHPAndLater = ::TestLegacy<ClDeviceFixture>;
HWCMDTEST_F(IGFX_XE_HP_CORE, EngineNodeHelperTestsXeHPAndLater, WhenGetBcsEngineTypeIsCalledThenBcsEngineIsReturned) {
const auto hwInfo = pDevice->getHardwareInfo();

View File

@ -1196,7 +1196,7 @@ TEST_F(HardwareCommandsTest, givenCacheFlushAfterWalkerEnabledWhenPlatformNotSup
EXPECT_EQ(0U, allocationsForCacheFlush.size());
}
using KernelCacheFlushTests = Test<HelloWorldFixture<HelloWorldFixtureFactory>>;
using KernelCacheFlushTests = TestLegacy<HelloWorldFixture<HelloWorldFixtureFactory>>;
HWTEST_F(KernelCacheFlushTests, givenLocallyUncachedBufferWhenGettingAllocationsForFlushThenEmptyVectorIsReturned) {
DebugManagerStateRestore dbgRestore;
@ -1225,7 +1225,7 @@ HWTEST_F(KernelCacheFlushTests, givenLocallyUncachedBufferWhenGettingAllocations
clReleaseMemObject(bufferRegular);
}
struct HardwareCommandsImplicitArgsTests : Test<ClDeviceFixture> {
struct HardwareCommandsImplicitArgsTests : TestLegacy<ClDeviceFixture> {
void SetUp() override {
ClDeviceFixture::SetUp();

View File

@ -13,7 +13,7 @@
namespace NEO {
using AlocationHelperTests = Test<ClDeviceFixture>;
using AlocationHelperTests = TestLegacy<ClDeviceFixture>;
HWTEST_F(AlocationHelperTests, givenLinearStreamTypeWhenUseExternalAllocatorForSshAndDshDisabledThenUse32BitIsFalse) {
DebugManagerStateRestore dbgRestorer;

View File

@ -17,7 +17,7 @@
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
using PipeControlHelperTestsDg2AndLater = ::testing::Test;
using HwHelperTestsDg2AndLater = Test<ClDeviceFixture>;
using HwHelperTestsDg2AndLater = TestLegacy<ClDeviceFixture>;
HWTEST2_F(PipeControlHelperTestsDg2AndLater, WhenAddingPipeControlWAThenCorrectCommandsAreProgrammed, IsAtLeastXeHpgCore) {
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;

View File

@ -12,7 +12,7 @@
using namespace NEO;
using HwHelperDg2OrBelowTests = Test<ClDeviceFixture>;
using HwHelperDg2OrBelowTests = TestLegacy<ClDeviceFixture>;
using isDG2OrBelow = IsAtMostProduct<IGFX_DG2>;
HWTEST2_F(HwHelperDg2OrBelowTests, WhenGettingIsKmdMigrationSupportedThenFalseIsReturned, isDG2OrBelow) {

View File

@ -25,7 +25,7 @@
#include "engine_node.h"
using HwHelperTestXeHPAndLater = Test<ClDeviceFixture>;
using HwHelperTestXeHPAndLater = TestLegacy<ClDeviceFixture>;
HWCMDTEST_F(IGFX_XE_HP_CORE, HwHelperTestXeHPAndLater, WhenGettingMaxBarriersPerSliceThen32IsReturned) {
auto &helper = HwHelper::get(renderCoreFamily);