20 #ifndef OPFLEX_TEST_MOCKOPFLEXSERVER_H 21 #define OPFLEX_TEST_MOCKOPFLEXSERVER_H 28 class MockOpflexServerImpl;
44 typedef std::pair<uint8_t, std::string>
peer_t;
84 void readPolicy(
const std::string& file);
97 void enableSSL(
const std::string& caStorePath,
98 const std::string& serverKeyPath,
99 const std::string& serverKeyPass,
100 bool verifyPeers =
true);
107 const peer_vec_t& getPeers()
const;
121 uint8_t getRoles()
const;
124 engine::internal::MockOpflexServerImpl* pimpl;
An opflex server we can use for mocking interactions with a real Opflex server.
Definition: MockOpflexServer.h:39
std::pair< uint8_t, std::string > peer_t
a pair of a role bitmask and connectivity string
Definition: MockOpflexServer.h:44
std::vector< peer_t > peer_vec_t
A vector of peers.
Definition: MockOpflexServer.h:49
Definition: OFLogHandler.h:20