blob: 1f5b6e637e040f8d01417c379abe2326b7decc30 [file] [log] [blame]
Asmitha Karunanithieb40f082021-07-22 06:13:04 -05001#pragma once
2
3#include "config.h"
4
5#include "hyp_sys_config.hpp"
6
7#include <gmock/gmock.h>
8
9namespace phosphor
10{
11namespace network
12{
13
14class MockHypSysConfig : public phosphor::network::HypSysConfig
15{
16 public:
Patrick Williamsc38b0712022-07-22 19:26:54 -050017 MockHypSysConfig(sdbusplus::bus_t& bus, const std::string& objPath,
Asmitha Karunanithieb40f082021-07-22 06:13:04 -050018 HypNetworkMgr& parent) :
19 HypSysConfig(bus, objPath, parent)
20 {
21 }
22
23 void setHostname(std::string hn)
24 {
25 SysConfigIntf::hostName(hn);
26 manager.setBIOSTableAttr("vmi_hostname", hn, "String");
27 }
28
29 const std::string getHostname()
30 {
31 return SysConfigIntf::hostName();
32 }
33};
34} // namespace network
35} // namespace phosphor