1 #pragma once
2 
3 #include "config.h"
4 
5 #include "hyp_network_manager.hpp"
6 #include "hyp_sys_config.hpp"
7 
8 #include <gmock/gmock.h>
9 
10 namespace phosphor
11 {
12 namespace network
13 {
14 
15 class MockHypSysConfig : public phosphor::network::HypSysConfig
16 {
17   public:
MockHypSysConfig(sdbusplus::bus_t & bus,const std::string & objPath,HypNetworkMgr & parent)18     MockHypSysConfig(sdbusplus::bus_t& bus, const std::string& objPath,
19                      HypNetworkMgr& parent) : HypSysConfig(bus, objPath, parent)
20     {}
21 
setHostname(std::string hn)22     void setHostname(std::string hn)
23     {
24         SysConfigIntf::hostName(hn);
25         manager.setBIOSTableAttr("vmi_hostname", hn, "String");
26     }
27 
getHostname()28     const std::string getHostname()
29     {
30         return SysConfigIntf::hostName();
31     }
32 };
33 } // namespace network
34 } // namespace phosphor
35