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 EhlTest = Test<ClDeviceFixture>;
using EhlTest = TestLegacy<ClDeviceFixture>;
EHLTEST_F(EhlTest, givenDeviceIdWhenAskingForSimulationThenReturnValidValue) {
unsigned short ehlSimulationIds[2] = {

View File

@ -19,7 +19,7 @@
namespace NEO {
using Gen11EnqueueTest = Test<ClDeviceFixture>;
using Gen11EnqueueTest = TestLegacy<ClDeviceFixture>;
GEN11TEST_F(Gen11EnqueueTest, givenKernelRequiringIndependentForwardProgressWhenKernelIsSubmittedThenDefaultPolicyIsProgrammed) {
MockContext mc;
CommandQueueHw<FamilyType> cmdQ{&mc, pClDevice, 0, false};

View File

@ -13,7 +13,7 @@
using namespace NEO;
using IcllpTest = Test<ClDeviceFixture>;
using IcllpTest = TestLegacy<ClDeviceFixture>;
ICLLPTEST_F(IcllpTest, givenIcllpWhenSlmSizeIsRequiredThenReturnCorrectValue) {
EXPECT_EQ(64u, pDevice->getHardwareInfo().capabilityTable.slmSize);

View File

@ -15,7 +15,7 @@
using namespace NEO;
using Gen11KernelTest = Test<ClDeviceFixture>;
using Gen11KernelTest = TestLegacy<ClDeviceFixture>;
GEN11TEST_F(Gen11KernelTest, givenKernelWhenCanTransformImagesIsCalledThenReturnsTrue) {
MockKernelWithInternals mockKernel(*pClDevice);
auto retVal = mockKernel.mockKernel->Kernel::canTransformImages();

View File

@ -13,7 +13,7 @@
using namespace NEO;
using LkfTest = Test<ClDeviceFixture>;
using LkfTest = TestLegacy<ClDeviceFixture>;
LKFTEST_F(LkfTest, givenLkfWhenSlmSizeIsRequiredThenReturnCorrectValue) {
EXPECT_EQ(64u, pDevice->getHardwareInfo().capabilityTable.slmSize);

View File

@ -16,7 +16,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> Gen11SamplerTest;
typedef TestLegacy<ClDeviceFixture> Gen11SamplerTest;
GEN11TEST_F(Gen11SamplerTest, WhenAppendingSamplerStateParamsThenStateIsNotChanged) {
typedef typename FamilyType::SAMPLER_STATE SAMPLER_STATE;

View File

@ -14,7 +14,7 @@
using namespace NEO;
using Gen11TbxCommandStreamReceiverTests = Test<ClDeviceFixture>;
using Gen11TbxCommandStreamReceiverTests = TestLegacy<ClDeviceFixture>;
GEN11TEST_F(Gen11TbxCommandStreamReceiverTests, whenAskedForPollForCompletionParametersThenReturnCorrectValues) {
class MyMockTbxHw : public TbxCommandStreamReceiverHw<FamilyType> {

View File

@ -15,7 +15,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> Gen11DeviceCaps;
typedef TestLegacy<ClDeviceFixture> Gen11DeviceCaps;
GEN11TEST_F(Gen11DeviceCaps, GivenDefaultWhenCheckingPreemptionModeThenMidThreadIsReturned) {
EXPECT_TRUE(PreemptionMode::MidThread == pDevice->getHardwareInfo().capabilityTable.defaultPreemptionMode);

View File

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> Gen11OnlyTeset;
typedef TestLegacy<ClDeviceFixture> Gen11OnlyTeset;
GEN11TEST_F(Gen11OnlyTeset, WhenGettingRenderCoreFamilyThenGen11CoreIsReturned) {
EXPECT_EQ(IGFX_GEN11_CORE, pDevice->getRenderCoreFamily());