]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/testStore.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / testStore.h
index cd09fd0f3b878bf159eabcdece32304d781bf26f..3229c897f7fd32f95a139fa39affe039a05dbd30 100644 (file)
@@ -1,13 +1,19 @@
+/*
+ * 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.
+ */
 
 #ifndef SQUID_SRC_TEST_STORE_H
 #define SQUID_SRC_TEST_STORE_H
 
-#include "squid.h"
 #include "Store.h"
+#include "store/Controlled.h"
 
 #include <cppunit/extensions/HelperMacros.h>
 
-
 /*
  * test the store framework
  */
@@ -30,12 +36,8 @@ protected:
     void testMaxSize();
 };
 
-
-/* subclass of Store to allow testing of methods without having all the
- * other components live
- */
-
-class TestStore : public Store
+/// allows testing of methods without having all the other components live
+class TestStore : public Store::Controller
 {
 
 public:
@@ -67,15 +69,14 @@ public:
 
     virtual void stat(StoreEntry &) const; /* output stats to the provided store entry */
 
-    virtual void reference(StoreEntry &) {}    /* Reference this object */
+    virtual void reference(StoreEntry &) {} /* Reference this object */
 
     virtual bool dereference(StoreEntry &) { return true; }
 
-    virtual StoreSearch *search(String const url, HttpRequest *);
+    virtual StoreSearch *search();
 };
 
 typedef RefCount<TestStore> TestStorePointer;
 
-
 #endif