diff --git a/level_zero/tools/test/unit_tests/sources/sysman/diagnostics/linux/mock_zes_sysman_diagnostics.h b/level_zero/tools/test/unit_tests/sources/sysman/diagnostics/linux/mock_zes_sysman_diagnostics.h index d5babda66a..978041b491 100644 --- a/level_zero/tools/test/unit_tests/sources/sysman/diagnostics/linux/mock_zes_sysman_diagnostics.h +++ b/level_zero/tools/test/unit_tests/sources/sysman/diagnostics/linux/mock_zes_sysman_diagnostics.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Intel Corporation + * Copyright (C) 2021-2022 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -68,14 +68,9 @@ struct Mock : public FirmwareUtil { ADDMETHOD_NOBASE(fwGetMemoryErrorCount, ze_result_t, ZE_RESULT_SUCCESS, (zes_ras_error_type_t category, uint32_t subDeviceCount, uint32_t subDeviceId, uint64_t &count)); ADDMETHOD_NOBASE_VOIDRETURN(getDeviceSupportedFwTypes, (std::vector & fwTypes)); }; -struct GlobalOperationsEngineHandleContext : public EngineHandleContext { - GlobalOperationsEngineHandleContext(OsSysman *pOsSysman) : EngineHandleContext(pOsSysman) {} -}; -template <> -struct Mock : public GlobalOperationsEngineHandleContext { - void initMock() {} - Mock(OsSysman *pOsSysman) : GlobalOperationsEngineHandleContext(pOsSysman) {} - MOCK_METHOD(void, init, (), (override)); +struct MockGlobalOperationsEngineHandleContext : public EngineHandleContext { + MockGlobalOperationsEngineHandleContext(OsSysman *pOsSysman) : EngineHandleContext(pOsSysman) {} + void init() override {} }; class DiagSysfsAccess : public SysfsAccess {};