Introduce getHelper - common getter for HwInfoConfig and HwHelper

Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>

Added getHelper common getter for hwInfoConfig and hwHelper
and use it as CoreHelper(HwHelper) and ProductHelper(HwInfoConfig)
This commit is contained in:
Kamil Kopryk
2022-11-08 16:16:37 +00:00
committed by Compute-Runtime-Automation
parent eb349484f1
commit 46098e0e17
20 changed files with 140 additions and 103 deletions

View File

@@ -55,8 +55,10 @@ struct HwInfoConfigTestLinux : public HwInfoConfigTest {
HwInfoConfigTest::TearDown();
}
const HwInfoConfig &getHwInfoConfig() {
return executionEnvironment->rootDeviceEnvironments[0]->getHwInfoConfig();
template <typename HelperType>
HelperType &getHelper() const {
auto &helper = executionEnvironment->rootDeviceEnvironments[0]->getHelper<HelperType>();
return helper;
}
OSInterface *osInterface;