diff --git a/opencl/test/unit_test/program/program_tests.cpp b/opencl/test/unit_test/program/program_tests.cpp index 5efa015270..8d1d9a1156 100644 --- a/opencl/test/unit_test/program/program_tests.cpp +++ b/opencl/test/unit_test/program/program_tests.cpp @@ -2431,9 +2431,9 @@ TEST_F(ProgramTests, givenProgramWithSpirvWhenRebuildProgramIsCalledThenSpirvPat auto compilerInterface = new MockCompilerInterface(); auto compilerMain = new MockCIFMain(); - compilerInterface->SetFclMain(compilerMain); + compilerInterface->setFclMain(compilerMain); compilerMain->Retain(); - compilerInterface->SetIgcMain(compilerMain); + compilerInterface->setIgcMain(compilerMain); compilerMain->setDefaultCreatorFunc(NEO::MockIgcOclDeviceCtx::Create); compilerMain->setDefaultCreatorFunc(NEO::MockFclOclDeviceCtx::Create); pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()]->compilerInterface.reset(compilerInterface); @@ -2466,7 +2466,7 @@ TEST_F(ProgramTests, whenRebuildingProgramThenStoreDeviceBinaryProperly) { auto compilerInterface = new MockCompilerInterface(); pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()]->compilerInterface.reset(compilerInterface); auto compilerMain = new MockCIFMain(); - compilerInterface->SetIgcMain(compilerMain); + compilerInterface->setIgcMain(compilerMain); compilerMain->setDefaultCreatorFunc(NEO::MockIgcOclDeviceCtx::Create); MockCompilerDebugVars debugVars = {}; diff --git a/shared/test/unit_test/compiler_interface/compiler_interface_tests.cpp b/shared/test/unit_test/compiler_interface/compiler_interface_tests.cpp index 62e716fd2c..1e2c0f4526 100644 --- a/shared/test/unit_test/compiler_interface/compiler_interface_tests.cpp +++ b/shared/test/unit_test/compiler_interface/compiler_interface_tests.cpp @@ -267,7 +267,7 @@ TEST_F(CompilerInterfaceTest, whenCompilerIsNotAvailableThenCompileFailsGraceful fclDebugVars.fileName = clFiles + "copybuffer.elf"; gEnvironment->fclPushDebugVars(fclDebugVars); pCompilerInterface->igcMain->Release(); - pCompilerInterface->SetIgcMain(nullptr); + pCompilerInterface->setIgcMain(nullptr); TranslationOutput translationOutput = {}; auto err = pCompilerInterface->compile(*pDevice, inputArgs, translationOutput); EXPECT_EQ(TranslationOutput::ErrorCode::CompilerNotAvailable, err); @@ -334,7 +334,7 @@ TEST_F(CompilerInterfaceTest, whenCompilerIsNotAvailableThenLinkFailsGracefully) igcDebugVars.fileName = clFiles + "copybuffer.ll"; gEnvironment->igcPushDebugVars(igcDebugVars); pCompilerInterface->igcMain->Release(); - pCompilerInterface->SetIgcMain(nullptr); + pCompilerInterface->setIgcMain(nullptr); TranslationOutput translationOutput = {}; auto err = pCompilerInterface->link(*pDevice, inputArgs, translationOutput); EXPECT_EQ(TranslationOutput::ErrorCode::CompilerNotAvailable, err); @@ -400,7 +400,7 @@ TEST_F(CompilerInterfaceTest, whenCompilerIsNotAvailableThenCreateLibraryFailsGr igcDebugVars.fileName = clFiles + "copybuffer.ll"; gEnvironment->igcPushDebugVars(igcDebugVars); pCompilerInterface->igcMain->Release(); - pCompilerInterface->SetIgcMain(nullptr); + pCompilerInterface->setIgcMain(nullptr); TranslationOutput translationOutput = {}; auto err = pCompilerInterface->createLibrary(*pDevice, inputArgs, translationOutput); EXPECT_EQ(TranslationOutput::ErrorCode::CompilerNotAvailable, err); diff --git a/shared/test/unit_test/mocks/mock_compiler_interface.h b/shared/test/unit_test/mocks/mock_compiler_interface.h index 32129894c0..03f46ad735 100644 --- a/shared/test/unit_test/mocks/mock_compiler_interface.h +++ b/shared/test/unit_test/mocks/mock_compiler_interface.h @@ -77,12 +77,12 @@ class MockCompilerInterface : public CompilerInterface { return std::unique_lock(spinlock); } - void SetIgcMain(CIF::CIFMain *main) { + void setIgcMain(CIF::CIFMain *main) { this->igcMain.release(); this->igcMain.reset(main); } - void SetFclMain(CIF::CIFMain *main) { + void setFclMain(CIF::CIFMain *main) { this->fclMain.release(); this->fclMain.reset(main); }