]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/TestSwapDir.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / TestSwapDir.cc
index 85b3fdc1a3980ee6a2febe60c823ebf6ba7ef431..a2bc78e4fb0a25100b9b0db3ee194c40fc6341d0 100644 (file)
@@ -1,4 +1,10 @@
-#include "config.h"
+/*
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
 
 #include "squid.h"
 #include "TestSwapDir.h"
@@ -9,6 +15,18 @@ TestSwapDir::maxSize() const
     return 3;
 }
 
+uint64_t
+TestSwapDir::currentSize() const
+{
+    return 2;
+}
+
+uint64_t
+TestSwapDir::currentCount() const
+{
+    return 2;
+}
+
 void
 TestSwapDir::stat(StoreEntry &) const
 {
@@ -16,13 +34,19 @@ TestSwapDir::stat(StoreEntry &) const
 }
 
 void
-TestSwapDir::reconfigure(int, char*)
+TestSwapDir::reconfigure()
 {}
 
 void
 TestSwapDir::init()
 {}
 
+bool
+TestSwapDir::unlinkdUseful() const
+{
+    return false;
+}
+
 bool
 TestSwapDir::canStore(const StoreEntry &, int64_t, int &load) const
 {
@@ -46,8 +70,3 @@ void
 TestSwapDir::parse(int, char*)
 {}
 
-StoreSearch *
-TestSwapDir::search(String, HttpRequest *)
-{
-    return NULL;
-}