Decrease number of classes deriving from Program 4/n

Change-Id: I73a8616162b72e2dd29e4fa7facbd9bbe1932303
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2018-08-09 10:54:35 +02:00
committed by sys_ocldev
parent 955aaccb74
commit b9310afe76
3 changed files with 24 additions and 48 deletions

View File

@@ -56,7 +56,6 @@ class CompilerInterfaceTest : public DeviceFixture,
DeviceFixture::SetUp();
retVal = CL_SUCCESS;
MockProgram mockProgram;
// create the compiler interface
pCompilerInterface.reset(new MockCompilerInterface());
@@ -287,14 +286,8 @@ TEST_F(CompilerInterfaceTest, CompileClToIr) {
}
TEST_F(CompilerInterfaceTest, GivenProgramCreatedFromIrWhenCompileIsCalledThenIrFormatIsPreserved) {
struct MockProgram : Program {
using Program::isSpirV;
using Program::pDevice;
using Program::programBinaryType;
};
MockProgram prog;
MockProgram prog(pContext, false);
prog.programBinaryType = CL_PROGRAM_BINARY_TYPE_INTERMEDIATE;
prog.pDevice = pContext->getDevice(0);
prog.isSpirV = true;
retVal = pCompilerInterface->compile(prog, inputArgs);
EXPECT_EQ(CL_SUCCESS, retVal);