#ifndef MESSMER_CPPUTILS_NETWORK_FAKEHTTPCLIENT_H #define MESSMER_CPPUTILS_NETWORK_FAKEHTTPCLIENT_H #include "HttpClient.h" #include "../macros.h" #include namespace cpputils { class FakeHttpClient final : public HttpClient { public: FakeHttpClient(); void addWebsite(const std::string &url, const std::string &content); boost::optional get(const std::string &url, boost::optional timeoutMsec = boost::none) override; private: std::map _sites; DISALLOW_COPY_AND_ASSIGN(FakeHttpClient); }; } #endif