mirror of https://github.com/kiwix/libkiwix.git
Clean-up promised in the previous commit
This commit is contained in:
parent
e93ccd18d4
commit
ed46541b6f
|
@ -369,34 +369,16 @@ ExpectedResponseData operator&&(const ExpectedResponseData& a,
|
|||
};
|
||||
}
|
||||
|
||||
class TestContentIn404HtmlResponse
|
||||
class TestContentIn404HtmlResponse : public ExpectedResponseData
|
||||
{
|
||||
public:
|
||||
TestContentIn404HtmlResponse(const std::string& url,
|
||||
const ExpectedResponseData& erd)
|
||||
: url(url)
|
||||
, bookName(erd.bookName)
|
||||
, bookTitle(erd.bookTitle)
|
||||
, expectedBody(erd.expectedBody)
|
||||
: ExpectedResponseData(erd)
|
||||
, url(url)
|
||||
{}
|
||||
|
||||
TestContentIn404HtmlResponse(const std::string& url,
|
||||
const std::string& expectedBody)
|
||||
: url(url)
|
||||
, expectedBody(expectedBody)
|
||||
{}
|
||||
|
||||
TestContentIn404HtmlResponse(const std::string& url,
|
||||
const std::string& bookName,
|
||||
const std::string& bookTitle,
|
||||
const std::string& expectedBody)
|
||||
: url(url)
|
||||
, bookName(bookName)
|
||||
, bookTitle(bookTitle)
|
||||
, expectedBody(expectedBody)
|
||||
{}
|
||||
|
||||
const std::string url, bookName, bookTitle, expectedBody;
|
||||
const std::string url;
|
||||
|
||||
std::string expectedResponse() const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue