]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/TestSwapDir.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / TestSwapDir.cc
index c24fb83ad418f72c6c03b24da64f15f8fb44845d..a2bc78e4fb0a25100b9b0db3ee194c40fc6341d0 100644 (file)
@@ -1,14 +1,32 @@
-#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"
 
-size_t
+uint64_t
 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,16 +34,23 @@ TestSwapDir::stat(StoreEntry &) const
 }
 
 void
-TestSwapDir::reconfigure(int, char*)
+TestSwapDir::reconfigure()
 {}
 
 void
 TestSwapDir::init()
 {}
 
-int
-TestSwapDir::canStore(const StoreEntry&) const
+bool
+TestSwapDir::unlinkdUseful() const
 {
+    return false;
+}
+
+bool
+TestSwapDir::canStore(const StoreEntry &, int64_t, int &load) const
+{
+    load = 0;
     return true;
 }
 
@@ -45,8 +70,3 @@ void
 TestSwapDir::parse(int, char*)
 {}
 
-StoreSearch *
-TestSwapDir::search(String, HttpRequest *)
-{
-    return NULL;
-}