]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
unbreak testStore testcase.
authorrobertc <>
Sat, 27 May 2006 06:35:05 +0000 (06:35 +0000)
committerrobertc <>
Sat, 27 May 2006 06:35:05 +0000 (06:35 +0000)
src/HttpMsg.cc
src/tests/TestSwapDir.cc
src/tests/TestSwapDir.h
src/tests/stub_HttpReply.cc

index 0a7e1d9d1c994713b495aaf055519db2fb81da06..ad0ddff3a05275c3d6f5fa82fbeaa8181b694131 100644 (file)
@@ -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),
index 86da99c364a31c4143c911fa32290da71edb18ac..c24fb83ad418f72c6c03b24da64f15f8fb44845d 100644 (file)
@@ -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;
 }
index f646970a9eadc40bcd51e39988cb42cbbe7c1848..d93fcd6dbcaf529eb138bebdef4b5780ad2bb374 100644 (file)
@@ -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 *);
 };
index 25dba02c0b460b02dffdd4433c9f71ba612c16f0..e153d37453d260de7c5b48002da77c697ed88cca 100644 (file)
@@ -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
 #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");
+}