From: robertc <> Date: Sat, 27 May 2006 06:35:05 +0000 (+0000) Subject: unbreak testStore testcase. X-Git-Tag: SQUID_3_0_PRE4~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5add4d5c837127cf6b3fdc2abbbcbaf9f99b3693;p=thirdparty%2Fsquid.git unbreak testStore testcase. --- diff --git a/src/HttpMsg.cc b/src/HttpMsg.cc index 0a7e1d9d1c..ad0ddff3a0 100644 --- a/src/HttpMsg.cc +++ b/src/HttpMsg.cc @@ -1,6 +1,6 @@ /* - * $Id: HttpMsg.cc,v 1.29 2006/05/06 22:13:18 wessels Exp $ + * $Id: HttpMsg.cc,v 1.30 2006/05/27 00:35:05 robertc Exp $ * * DEBUG: section 74 HTTP Message * AUTHOR: Alex Rousskov @@ -35,7 +35,6 @@ #include "squid.h" #include "HttpMsg.h" -#include "HttpRequest.h" #include "MemBuf.h" HttpMsg::HttpMsg(http_hdr_owner_type owner): header(owner), diff --git a/src/tests/TestSwapDir.cc b/src/tests/TestSwapDir.cc index 86da99c364..c24fb83ad4 100644 --- a/src/tests/TestSwapDir.cc +++ b/src/tests/TestSwapDir.cc @@ -30,13 +30,13 @@ TestSwapDir::canStore(const StoreEntry&) const } StoreIOState::Pointer -TestSwapDir::createStoreIO(StoreEntry&, StoreIOState::STFNCB, StoreIOState::STIOCB, void*) +TestSwapDir::createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *) { return NULL; } StoreIOState::Pointer -TestSwapDir::openStoreIO(StoreEntry&, StoreIOState::STFNCB, StoreIOState::STIOCB, void*) +TestSwapDir::openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *) { return NULL; } diff --git a/src/tests/TestSwapDir.h b/src/tests/TestSwapDir.h index f646970a9e..d93fcd6dbc 100644 --- a/src/tests/TestSwapDir.h +++ b/src/tests/TestSwapDir.h @@ -18,14 +18,8 @@ public: virtual void reconfigure(int, char*); virtual void init(); virtual int canStore(const StoreEntry&) const; - virtual StoreIOState::Pointer createStoreIO(StoreEntry&, - StoreIOState::STFNCB, - StoreIOState::STIOCB, - void*); - virtual StoreIOState::Pointer openStoreIO(StoreEntry&, - StoreIOState::STFNCB, - StoreIOState::STIOCB, - void*); + virtual StoreIOState::Pointer createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *); + virtual StoreIOState::Pointer openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *); virtual void parse(int, char*); virtual StoreSearch *search(String, HttpRequest *); }; diff --git a/src/tests/stub_HttpReply.cc b/src/tests/stub_HttpReply.cc index 25dba02c0b..e153d37453 100644 --- a/src/tests/stub_HttpReply.cc +++ b/src/tests/stub_HttpReply.cc @@ -1,5 +1,5 @@ /* - * $Id: stub_HttpReply.cc,v 1.2 2005/12/18 09:23:40 serassio Exp $ + * $Id: stub_HttpReply.cc,v 1.3 2006/05/27 00:35:05 robertc Exp $ * * DEBUG: section 84 Helper process maintenance * AUTHOR: Robert Collins @@ -35,6 +35,16 @@ #include "squid.h" #include "HttpReply.h" +HttpReply::HttpReply() : HttpMsg(hoReply) +{ + fatal ("Not implemented."); +} + +HttpReply::~HttpReply() +{ + fatal ("Not implemented."); +} + void HttpReply::absorb(HttpReply * new_rep) { @@ -64,3 +74,43 @@ httpBodyPackInto(const HttpBody * body, Packer * p) { fatal ("Not implemented"); } + +bool +HttpReply::sanityCheckStartLine(MemBuf *buf, http_status *error) +{ + fatal ("Not implemented"); + return false; +} + +int +HttpReply::httpMsgParseError() +{ + fatal ("Not implemented"); + return 0; +} + +bool +HttpReply::expectingBody(method_t, ssize_t&) const +{ + fatal ("Not implemented"); + return false; +} + +void +HttpReply::packFirstLineInto(Packer * p, bool) const +{ + fatal ("Not implemented"); +} + +bool +HttpReply::parseFirstLine(const char *start, const char *end) +{ + fatal ("Not implemented"); + return false; +} + +void +HttpReply::hdrCacheInit() +{ + fatal ("Not implemented"); +}