mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Remove redundant constructors from unit tests
Change-Id: I56f939d99397848ccf7588dd7c822fd19035b935 Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
af33d42e88
commit
065c72eb36
@ -78,10 +78,6 @@ void CommandQueueHwFixture::TearDown() {
|
||||
}
|
||||
}
|
||||
|
||||
CommandQueueFixture::CommandQueueFixture()
|
||||
: pCmdQ(nullptr) {
|
||||
}
|
||||
|
||||
CommandQueue *CommandQueueFixture::createCommandQueue(
|
||||
Context *context,
|
||||
ClDevice *device,
|
||||
|
@ -49,8 +49,6 @@ struct OOQueueFixture : public CommandQueueHwFixture {
|
||||
};
|
||||
|
||||
struct CommandQueueFixture {
|
||||
CommandQueueFixture();
|
||||
|
||||
virtual void SetUp(
|
||||
Context *context,
|
||||
ClDevice *device,
|
||||
|
@ -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();
|
||||
|
@ -14,8 +14,6 @@ class Device;
|
||||
|
||||
class BuiltInFixture {
|
||||
public:
|
||||
BuiltInFixture();
|
||||
|
||||
void SetUp(NEO::Device *pDevice);
|
||||
void TearDown();
|
||||
|
||||
|
@ -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),
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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());
|
||||
|
@ -11,12 +11,7 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
struct HardwareInfo;
|
||||
|
||||
class PlatformFixture {
|
||||
public:
|
||||
PlatformFixture();
|
||||
|
||||
protected:
|
||||
void SetUp();
|
||||
void TearDown();
|
||||
|
@ -11,9 +11,7 @@
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
|
||||
TestEnvironment::TestEnvironment(void)
|
||||
: libraryFrontEnd(nullptr), libraryIGC(nullptr),
|
||||
libraryOS(nullptr), hwInfoDefaultDebugVars() {
|
||||
TestEnvironment::TestEnvironment() {
|
||||
igcDebugVarStack.reserve(3);
|
||||
fclDebugVarStack.reserve(3);
|
||||
}
|
||||
|
Reference in New Issue
Block a user