56 CPPUNIT_ASSERT_EQUAL(
false, aStore->statsCalled);
57 CPPUNIT_ASSERT_EQUAL(
false, aStore2->statsCalled);
60 CPPUNIT_ASSERT_EQUAL(
true, aStore->statsCalled);
61 CPPUNIT_ASSERT_EQUAL(
true, aStore2->statsCalled);
67 static bool inited =
false;
96 CPPUNIT_ASSERT_EQUAL(
static_cast<uint64_t
>(6),
Store::Root().maxSize());
156 CPPUNIT_ASSERT_EQUAL(
false, search->
error());
157 CPPUNIT_ASSERT_EQUAL(
false, search->
isDone());
163 CPPUNIT_ASSERT_EQUAL(
true,
cbcalled);
166 CPPUNIT_ASSERT_EQUAL(
false, search->
error());
167 CPPUNIT_ASSERT_EQUAL(
false, search->
isDone());
169 CPPUNIT_ASSERT_EQUAL(entry1, search->
currentItem());
175 CPPUNIT_ASSERT_EQUAL(
true,
cbcalled);
178 CPPUNIT_ASSERT_EQUAL(
false, search->
error());
179 CPPUNIT_ASSERT_EQUAL(
false, search->
isDone());
180 CPPUNIT_ASSERT_EQUAL(entry2, search->
currentItem());
186 CPPUNIT_ASSERT_EQUAL(
true,
cbcalled);
189 CPPUNIT_ASSERT_EQUAL(
false, search->
error());
190 CPPUNIT_ASSERT_EQUAL(
true, search->
isDone());
void free_cachedir(Store::DiskConfig *swap)
void allocate_new_swapdir(Store::DiskConfig &swap)
Store::DiskConfig cacheSwap
char * store_dir_select_algorithm
struct SquidConfig::@88 Store
YesNoNone memShared
whether the memory cache is shared among workers
void hashInsert(const cache_key *)
void lastModified(const time_t when)
swap_status_t swap_status
sfileno swap_filen
unique ID inside a cache_dir for swapped out entries; -1 for others
ping_status_t ping_status
store_status_t store_status
void setMemStatus(mem_status_t)
virtual bool error() const =0
virtual void next(void(callback)(void *cbdata), void *cbdata)=0
virtual StoreEntry * currentItem()=0
virtual bool isDone() const =0
RefCount< SwapDir > * swapDirs
manages a single cache_dir
char const * termedBuf() const
CPPUNIT_TEST_SUITE(TestStoreController)
CPPUNIT_TEST(testMaxSize)
void defaultTo(bool beSet)
enables or disables the option; updating to 'implicit' state
#define EBIT_CLR(flag, bit)
@ PING_NONE
Has not considered whether to send ICP queries to peers yet.
Controller & Root()
safely access controller singleton
void Stats(StoreEntry *output)
unsigned char cache_key
Store key.
CPPUNIT_TEST_SUITE_REGISTRATION(TestStoreController)
static void addSwapDir(TestSwapDirPointer aStore)
static StoreEntry * addedEntry(Store::Disk *aStore, String name, String, String)
static void searchCallback(void *)