Remove redundant constructors from unit tests

Change-Id: I56f939d99397848ccf7588dd7c822fd19035b935
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
This commit is contained in:
Jablonski, Mateusz
2020-03-16 18:10:02 +01:00
committed by sys_ocldev
parent af33d42e88
commit 065c72eb36
10 changed files with 4 additions and 41 deletions

View File

@ -16,9 +16,6 @@
using namespace NEO;
BuiltInFixture::BuiltInFixture() : pBuiltIns(nullptr) {
}
void BuiltInFixture::SetUp(Device *pDevice) {
// create an instance of the builtins
pBuiltIns = pDevice->getBuiltIns();

View File

@ -14,8 +14,6 @@ class Device;
class BuiltInFixture {
public:
BuiltInFixture();
void SetUp(NEO::Device *pDevice);
void TearDown();

View File

@ -5,7 +5,7 @@
*
*/
#include "context_fixture.h"
#include "opencl/test/unit_test/fixtures/context_fixture.h"
#include "opencl/test/unit_test/mocks/mock_context.h"
@ -13,10 +13,6 @@
namespace NEO {
ContextFixture::ContextFixture()
: pContext(nullptr) {
}
void ContextFixture::SetUp(cl_uint numDevices, cl_device_id *pDeviceList) {
auto retVal = CL_SUCCESS;
pContext = Context::create<MockContext>(nullptr, ClDeviceVector(pDeviceList, numDevices),

View File

@ -12,9 +12,6 @@ namespace NEO {
class MockContext;
class ContextFixture {
public:
ContextFixture();
protected:
virtual void SetUp(cl_uint numDevices, cl_device_id *pDeviceList);
virtual void TearDown();

View File

@ -17,13 +17,6 @@ using namespace NEO;
class ExecutionModelKernelFixture : public ProgramFromBinaryTest,
public PlatformFixture {
public:
ExecutionModelKernelFixture() : pKernel(nullptr),
retVal(CL_SUCCESS) {
}
~ExecutionModelKernelFixture() override = default;
protected:
void SetUp() override {
PlatformFixture::SetUp();
@ -87,6 +80,6 @@ class ExecutionModelKernelFixture : public ProgramFromBinaryTest,
}
}
Kernel *pKernel;
cl_int retVal;
Kernel *pKernel = nullptr;
cl_int retVal = CL_SUCCESS;
};

View File

@ -13,11 +13,6 @@
#include "gtest/gtest.h"
namespace NEO {
PlatformFixture::PlatformFixture()
: pPlatform(nullptr), num_devices(0), devices(nullptr) {
}
void PlatformFixture::SetUp() {
pPlatform = constructPlatform();
ASSERT_EQ(0u, pPlatform->getNumDevices());

View File

@ -11,12 +11,7 @@
namespace NEO {
struct HardwareInfo;
class PlatformFixture {
public:
PlatformFixture();
protected:
void SetUp();
void TearDown();