Skip to content

Commit 6862098

Browse files
Remove not used parameters in PlatformFixture SetUp function
Change-Id: Ib58c97e377218350cea19373dd1f193c4cc32a45
1 parent b563e07 commit 6862098

26 files changed

+35
-35
lines changed

unit_tests/api/cl_api_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ api_fixture::api_fixture()
3636
}
3737

3838
void api_fixture::SetUp() {
39-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
39+
PlatformFixture::SetUp();
4040

4141
ASSERT_EQ(retVal, CL_SUCCESS);
4242
auto pDevice = pPlatform->getDevice(0);

unit_tests/api/cl_get_platform_info_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Intel Corporation
2+
* Copyright (c) 2017 - 2018, Intel Corporation
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a
55
* copy of this software and associated documentation files (the "Software"),
@@ -190,7 +190,7 @@ class GetPlatformInfoTests : public PlatformFixture,
190190
protected:
191191
void SetUp() override {
192192
platformInfo = GetParam();
193-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
193+
PlatformFixture::SetUp();
194194
}
195195

196196
void TearDown() override {

unit_tests/context/context_get_info_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct ContextGetInfoTest : public PlatformFixture,
3939
}
4040

4141
void SetUp() override {
42-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
42+
PlatformFixture::SetUp();
4343
ContextFixture::SetUp(num_devices, devices);
4444
}
4545

unit_tests/context/context_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct ContextTest : public PlatformFixture,
6262
}
6363

6464
void SetUp() override {
65-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
65+
PlatformFixture::SetUp();
6666

6767
cl_platform_id platform = pPlatform;
6868
properties = new cl_context_properties[3];

unit_tests/context/driver_diagnostics_tests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct DriverDiagnosticsTest : public PlatformFixture,
5151
}
5252

5353
void SetUp() override {
54-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
54+
PlatformFixture::SetUp();
5555
memset(userData, 0, maxHintCounter * DriverDiagnostics::maxHintStringSize);
5656
}
5757

unit_tests/context/get_supported_image_formats_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Intel Corporation
2+
* Copyright (c) 2017 - 2018, Intel Corporation
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a
55
* copy of this software and associated documentation files (the "Software"),
@@ -44,7 +44,7 @@ struct GetSupportedImageFormatsTest : public PlatformFixture,
4444
}
4545

4646
void SetUp() override {
47-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
47+
PlatformFixture::SetUp();
4848
ContextFixture::SetUp(num_devices, devices);
4949
}
5050

unit_tests/d3d_sharing/d3d9_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class D3D9Tests : public PlatformFixture, public ::testing::Test {
9191

9292
void SetUp() override {
9393
dbgRestore = new DebugManagerStateRestore();
94-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
94+
PlatformFixture::SetUp();
9595
context = new MockContext(pPlatform->getDevice(0));
9696
context->forcePreferD3dSharedResources(true);
9797
context->setMemoryManager(&mockMM);

unit_tests/d3d_sharing/d3d_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class D3DTests : public PlatformFixture, public ::testing::Test {
108108

109109
void SetUp() override {
110110
dbgRestore = new DebugManagerStateRestore();
111-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
111+
PlatformFixture::SetUp();
112112
context = new MockContext(pPlatform->getDevice(0));
113113
context->forcePreferD3dSharedResources(true);
114114

unit_tests/fixtures/execution_model_kernel_fixture.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Intel Corporation
2+
* Copyright (c) 2017 - 2018, Intel Corporation
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a
55
* copy of this software and associated documentation files (the "Software"),
@@ -42,7 +42,7 @@ class ExecutionModelKernelFixture : public ProgramFromBinaryTest,
4242

4343
protected:
4444
void SetUp() override {
45-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
45+
PlatformFixture::SetUp();
4646

4747
std::string temp;
4848
temp.assign(pPlatform->getDevice(0)->getDeviceInfo().clVersion);

unit_tests/fixtures/platform_fixture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ PlatformFixture::PlatformFixture()
3232
: pPlatform(nullptr), num_devices(0), devices(nullptr) {
3333
}
3434

35-
void PlatformFixture::SetUp(size_t numDevices, const HardwareInfo **pDevices) {
35+
void PlatformFixture::SetUp() {
3636
pPlatform = platform();
3737
ASSERT_EQ(0u, pPlatform->getNumDevices());
3838

unit_tests/fixtures/platform_fixture.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class PlatformFixture {
3333
PlatformFixture();
3434

3535
protected:
36-
void SetUp(size_t numDevices, const HardwareInfo **pDevices);
36+
void SetUp();
3737
void TearDown();
3838

3939
Platform *pPlatform;

unit_tests/fixtures/scenario_test_fixture.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ScenarioTest : public ::testing::Test,
4141

4242
protected:
4343
void SetUp() override {
44-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
44+
PlatformFixture::SetUp();
4545

4646
auto pDevice = pPlatform->getDevice(0);
4747
ASSERT_NE(nullptr, pDevice);

unit_tests/gen10/test_platform_caps_gen10.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ using namespace OCLRT;
2828

2929
struct Gen10PlatformCaps : public PlatformFixture, public ::testing::Test {
3030
void SetUp() override {
31-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
31+
PlatformFixture::SetUp();
3232
}
3333

3434
void TearDown() override {

unit_tests/gen8/test_platform_caps_gen8.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ using namespace OCLRT;
2828

2929
struct Gen8PlatformCaps : public PlatformFixture, public ::testing::Test {
3030
void SetUp() override {
31-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
31+
PlatformFixture::SetUp();
3232
}
3333

3434
void TearDown() override {

unit_tests/gen9/test_platform_caps_gen9.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ using namespace OCLRT;
2929

3030
struct Gen9PlatformCaps : public PlatformFixture, public ::testing::Test {
3131
void SetUp() override {
32-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
32+
PlatformFixture::SetUp();
3333
}
3434

3535
void TearDown() override {

unit_tests/kernel/kernel_reflection_surface_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Intel Corporation
2+
* Copyright (c) 2017 - 2018, Intel Corporation
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a
55
* copy of this software and associated documentation files (the "Software"),
@@ -1248,7 +1248,7 @@ class ReflectionSurfaceHelperFixture : public PlatformFixture, public ::testing:
12481248
}
12491249

12501250
void SetUp() override {
1251-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
1251+
PlatformFixture::SetUp();
12521252
}
12531253

12541254
void TearDown() override {
@@ -1264,7 +1264,7 @@ class ReflectionSurfaceHelperSetKernelDataTest : public testing::TestWithParam<s
12641264
}
12651265

12661266
void SetUp() override {
1267-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
1267+
PlatformFixture::SetUp();
12681268

12691269
samplerStateArray.BorderColorOffset = 0x3;
12701270
samplerStateArray.Count = 1;

unit_tests/mem_obj/buffer_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ struct ValidHostPtr
400400

401401
void SetUp() override {
402402
MemoryManagementFixture::SetUp();
403-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
403+
PlatformFixture::SetUp();
404404
BaseClass::SetUp();
405405

406406
auto pDevice = pPlatform->getDevice(0);

unit_tests/mem_obj/get_mem_object_info_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class GetMemObjectInfo : public ::testing::Test, public PlatformFixture, public
3838

3939
public:
4040
void SetUp() override {
41-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
41+
PlatformFixture::SetUp();
4242
DeviceFixture::SetUp();
4343
BufferDefaults::context = new MockContext;
4444
}

unit_tests/os_interface/hw_info_config_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ using namespace OCLRT;
2929
using namespace std;
3030

3131
void HwInfoConfigTest::SetUp() {
32-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
32+
PlatformFixture::SetUp();
3333

3434
const HardwareInfo &hwInfo = pPlatform->getDevice(0)->getHardwareInfo();
3535
pInHwInfo = const_cast<HardwareInfo *>(&hwInfo);

unit_tests/preamble/preamble_fixture.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Intel Corporation
2+
* Copyright (c) 2017 - 2018, Intel Corporation
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a
55
* copy of this software and associated documentation files (the "Software"),
@@ -54,7 +54,7 @@ class PreambleVfeState : public PlatformFixture,
5454
::testing::Test::SetUp();
5555
LinearStreamFixture::SetUp();
5656
HardwareParse::SetUp();
57-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
57+
PlatformFixture::SetUp();
5858
const HardwareInfo &hwInfo = pPlatform->getDevice(0)->getHardwareInfo();
5959
HardwareInfo *pHwInfo = const_cast<HardwareInfo *>(&hwInfo);
6060
pOldWaTable = pHwInfo->pWaTable;

unit_tests/program/program_data_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Intel Corporation
2+
* Copyright (c) 2017 - 2018, Intel Corporation
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a
55
* copy of this software and associated documentation files (the "Software"),
@@ -58,7 +58,7 @@ class ProgramDataTest : public testing::Test,
5858

5959
protected:
6060
void SetUp() override {
61-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
61+
PlatformFixture::SetUp();
6262
cl_device_id device = pPlatform->getDevice(0);
6363
ContextFixture::SetUp(1, &device);
6464
ProgramFixture::SetUp();

unit_tests/program/program_nonuniform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class ProgramNonUniformTest : public ContextFixture,
197197
}
198198

199199
void SetUp() override {
200-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
200+
PlatformFixture::SetUp();
201201
device = pPlatform->getDevice(0);
202202
ContextFixture::SetUp(1, &device);
203203
ProgramFixture::SetUp();

unit_tests/program/program_with_block_kernels_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ProgramWithBlockKernelsTest : public ContextFixture,
4646
}
4747

4848
void SetUp() override {
49-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
49+
PlatformFixture::SetUp();
5050
device = pPlatform->getDevice(0);
5151
ContextFixture::SetUp(1, &device);
5252
ProgramFixture::SetUp();

unit_tests/program/program_with_source.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Intel Corporation
2+
* Copyright (c) 2017 - 2018, Intel Corporation
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a
55
* copy of this software and associated documentation files (the "Software"),
@@ -53,7 +53,7 @@ class ProgramFromSourceTest : public ContextFixture,
5353
std::tie(SourceFileName, BinaryFileName, KernelName) = GetParam();
5454
kbHelper = new KernelBinaryHelper(BinaryFileName);
5555

56-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
56+
PlatformFixture::SetUp();
5757
cl_device_id device = pPlatform->getDevice(0);
5858
ContextFixture::SetUp(1, &device);
5959
ProgramFixture::SetUp();

unit_tests/sharings/va/context_va_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Intel Corporation
2+
* Copyright (c) 2017 - 2018, Intel Corporation
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a
55
* copy of this software and associated documentation files (the "Software"),
@@ -38,7 +38,7 @@ struct VAContextTest : public PlatformFixture,
3838
}
3939

4040
void SetUp() override {
41-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
41+
PlatformFixture::SetUp();
4242

4343
cl_platform_id platform = pPlatform;
4444
properties = new cl_context_properties[3];

unit_tests/sharings/va/va_sharing_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ using namespace OCLRT;
3737
class VaSharingTests : public ::testing::Test, public PlatformFixture {
3838
public:
3939
void SetUp() override {
40-
PlatformFixture::SetUp(numPlatformDevices, platformDevices);
40+
PlatformFixture::SetUp();
4141
vaSharing = new MockVaSharing;
4242
context.setSharingFunctions(&vaSharing->m_sharingFunctions);
4343
vaSharing->updateAcquiredHandle(sharingHandle);

0 commit comments

Comments
 (0)