std::function< bool(const std::string &aUrl, int &aStatusCode, std::string &aBody, std::string &aError)> RETRIEVER
Allows replacing CURL fetches with a mock for testing.
In-process HTTP library server used by QA tests.
std::vector< std::string > m_requests
int RequestCount(const std::string &aUrl) const
Number of times aUrl has been requested.
void InstallStandardLibrary(const std::string &aRootUrl)
void SetResponse(const std::string &aUrl, RESPONSE aResponse)
Replace the response served for an exact URL.
std::map< std::string, RESPONSE > m_responses
HTTP_LIB_CONNECTION::RETRIEVER MakeRetriever()