#define SQUID_UNIT_TEST 1
-#include "squid-old.h"
-
-#include "testStoreHashIndex.h"
+#include "squid.h"
+#include "Mem.h"
+#include "SquidConfig.h"
+#include "SquidTime.h"
#include "Store.h"
-#include "SwapDir.h"
-#include "TestSwapDir.h"
#include "StoreHashIndex.h"
-#include "Mem.h"
#include "StoreSearch.h"
-#include "SquidTime.h"
+#include "SwapDir.h"
+#include "testStoreHashIndex.h"
+#include "TestSwapDir.h"
CPPUNIT_TEST_SUITE_REGISTRATION( testStoreHashIndex );
++Config.cacheSwap.n_configured;
}
-
void
testStoreHashIndex::testStats()
{
e->swap_filen = 0; /* garh - lower level*/
e->swap_dirn = -1;
- for (int i=0; i < Config.cacheSwap.n_configured; i++) {
+ for (int i=0; i < Config.cacheSwap.n_configured; ++i) {
if (INDEXSD (i) == aStore.getRaw())
e->swap_dirn = i;
}