Remove usage of TestLegacy from opencl tests

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-08-16 14:51:17 +00:00
committed by Compute-Runtime-Automation
parent 44d218e52e
commit bca852617c
350 changed files with 1295 additions and 1315 deletions

View File

@ -13,7 +13,7 @@
using namespace NEO;
using EhlTest = TestLegacy<ClDeviceFixture>;
using EhlTest = Test<ClDeviceFixture>;
EHLTEST_F(EhlTest, givenDeviceIdWhenAskingForSimulationThenReturnValidValue) {
unsigned short ehlSimulationIds[2] = {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -15,11 +15,11 @@ using namespace NEO;
struct Gen11PlatformCaps : public PlatformFixture, public ::testing::Test {
void SetUp() override {
PlatformFixture::SetUp();
PlatformFixture::setUp();
}
void TearDown() override {
PlatformFixture::TearDown();
PlatformFixture::tearDown();
}
};

View File

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