mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
Compute-Runtime-Automation

parent
aed890a219
commit
e6fc458d4b
@ -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);
|
||||
|
@ -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> {
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
using AlocationHelperTests = Test<ClDeviceFixture>;
|
||||
using AlocationHelperTests = TestLegacy<ClDeviceFixture>;
|
||||
|
||||
HWTEST_F(AlocationHelperTests, givenLinearStreamTypeWhenUseExternalAllocatorForSshAndDshDisabledThenUse32BitIsFalse) {
|
||||
DebugManagerStateRestore dbgRestorer;
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user