blob: f44de21956118bd901856ff039b49bef209f6703 [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)
Patrick Williams89d734b2023-05-10 07:50:25 -050020 {}
Asmitha Karunanithieb40f082021-07-22 06:13:04 -050021
22 void setHostname(std::string hn)
23 {
24 SysConfigIntf::hostName(hn);
25 manager.setBIOSTableAttr("vmi_hostname", hn, "String");
26 }
27
28 const std::string getHostname()
29 {
30 return SysConfigIntf::hostName();
31 }
32};
33} // namespace network
34} // namespace phosphor