mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
Correct shared fixture methods name to meet clang-tidy requirements
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
6ab8480ade
commit
5ffeac44c5
@ -46,14 +46,14 @@
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
using DrmMemoryManagerTest = TestLegacy<DrmMemoryManagerFixture>;
|
||||
using DrmMemoryManagerTest = Test<DrmMemoryManagerFixture>;
|
||||
|
||||
struct ClDrmMemoryManagerTest : public DrmMemoryManagerTest {
|
||||
void SetUp() override {
|
||||
MemoryManagementFixture::SetUp();
|
||||
MemoryManagementFixture::setUp();
|
||||
|
||||
executionEnvironment = MockClDevice::prepareExecutionEnvironment(defaultHwInfo.get(), numRootDevices - 1);
|
||||
DrmMemoryManagerFixture::SetUp(new DrmMockCustom(*executionEnvironment->rootDeviceEnvironments[0]), false);
|
||||
DrmMemoryManagerFixture::setUp(new DrmMockCustom(*executionEnvironment->rootDeviceEnvironments[0]), false);
|
||||
pClDevice = new MockClDevice{device}; // NOLINT(clang-analyzer-cplusplus.NewDeleteLeaks)
|
||||
device->incRefInternal();
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
using DrmVaSharingTest = TestLegacy<DrmMemoryManagerFixture>;
|
||||
using DrmVaSharingTest = Test<DrmMemoryManagerFixture>;
|
||||
|
||||
TEST_F(DrmVaSharingTest, givenDrmMemoryManagerWhenSharedVaSurfaceIsImportedWithDrmPrimeFdToHandleThenDrmPrimeFdCanBeClosed) {
|
||||
mock->ioctl_expected.total = -1;
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
using FileLoggerTests = TestLegacy<MockExecutionEnvironmentGmmFixture>;
|
||||
using FileLoggerTests = Test<MockExecutionEnvironmentGmmFixture>;
|
||||
|
||||
TEST_F(FileLoggerTests, GivenLogAllocationMemoryPoolFlagThenLogsCorrectInfo) {
|
||||
std::string testFile = "testfile";
|
||||
|
@ -27,7 +27,7 @@ using namespace NEO;
|
||||
|
||||
struct Wddm23TestsWithoutWddmInit : public ::testing::Test, GdiDllFixture {
|
||||
void SetUp() override {
|
||||
GdiDllFixture::SetUp();
|
||||
GdiDllFixture::setUp();
|
||||
|
||||
executionEnvironment = platform()->peekExecutionEnvironment();
|
||||
wddm = static_cast<WddmMock *>(Wddm::createWddm(nullptr, *executionEnvironment->rootDeviceEnvironments[0].get()));
|
||||
@ -51,7 +51,7 @@ struct Wddm23TestsWithoutWddmInit : public ::testing::Test, GdiDllFixture {
|
||||
}
|
||||
|
||||
void TearDown() override {
|
||||
GdiDllFixture::TearDown();
|
||||
GdiDllFixture::tearDown();
|
||||
}
|
||||
|
||||
std::unique_ptr<OsContextWin> osContext;
|
||||
|
@ -43,8 +43,8 @@
|
||||
using namespace NEO;
|
||||
using namespace ::testing;
|
||||
|
||||
void WddmMemoryManagerFixture::SetUp() {
|
||||
GdiDllFixture::SetUp();
|
||||
void WddmMemoryManagerFixture::setUp() {
|
||||
GdiDllFixture::setUp();
|
||||
|
||||
executionEnvironment = platform()->peekExecutionEnvironment();
|
||||
rootDeviceEnvironment = executionEnvironment->rootDeviceEnvironments[rootDeviceIndex].get();
|
||||
|
@ -32,10 +32,10 @@ using namespace ::testing;
|
||||
|
||||
class WddmMemoryManagerFixture : public GdiDllFixture {
|
||||
public:
|
||||
void SetUp() override;
|
||||
void setUp();
|
||||
|
||||
void TearDown() override {
|
||||
GdiDllFixture::TearDown();
|
||||
void tearDown() {
|
||||
GdiDllFixture::tearDown();
|
||||
}
|
||||
|
||||
ExecutionEnvironment *executionEnvironment;
|
||||
@ -45,7 +45,7 @@ class WddmMemoryManagerFixture : public GdiDllFixture {
|
||||
const uint32_t rootDeviceIndex = 0u;
|
||||
};
|
||||
|
||||
typedef ::TestLegacy<WddmMemoryManagerFixture> WddmMemoryManagerTest;
|
||||
typedef ::Test<WddmMemoryManagerFixture> WddmMemoryManagerTest;
|
||||
|
||||
class MockWddmMemoryManagerFixture {
|
||||
public:
|
||||
@ -141,16 +141,16 @@ class BufferWithWddmMemory : public ::testing::Test,
|
||||
public WddmMemoryManagerFixture {
|
||||
public:
|
||||
protected:
|
||||
void SetUp() {
|
||||
WddmMemoryManagerFixture::SetUp();
|
||||
void SetUp() override {
|
||||
WddmMemoryManagerFixture::setUp();
|
||||
tmp = context.getMemoryManager();
|
||||
context.memoryManager = memoryManager.get();
|
||||
flags = 0;
|
||||
}
|
||||
|
||||
void TearDown() {
|
||||
void TearDown() override {
|
||||
context.memoryManager = tmp;
|
||||
WddmMemoryManagerFixture::TearDown();
|
||||
WddmMemoryManagerFixture::tearDown();
|
||||
}
|
||||
|
||||
MemoryManager *tmp;
|
||||
|
Reference in New Issue
Block a user