sysman: simplify ULT for device reset
device reset is heavily dependant on gmock for ULT reduce depencency on GMock. Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
This commit is contained in:
parent
388adcca77
commit
4d5d31d80d
|
@ -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<DiagnosticsFwInterface> : 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<std::string> & fwTypes));
|
||||
};
|
||||
struct GlobalOperationsEngineHandleContext : public EngineHandleContext {
|
||||
GlobalOperationsEngineHandleContext(OsSysman *pOsSysman) : EngineHandleContext(pOsSysman) {}
|
||||
};
|
||||
template <>
|
||||
struct Mock<GlobalOperationsEngineHandleContext> : public GlobalOperationsEngineHandleContext {
|
||||
void initMock() {}
|
||||
Mock<GlobalOperationsEngineHandleContext>(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 {};
|
||||
|
|
Loading…
Reference in New Issue