#include "squid.h"
#include "compat/cppunit.h"
#include "MemObject.h"
#include "SquidConfig.h"
#include "Store.h"
#include "store/Disks.h"
#include "StoreSearch.h"
#include "TestSwapDir.h"
Go to the source code of this file.
Classes | |
class | TestStoreController |
Functions | |
CPPUNIT_TEST_SUITE_REGISTRATION (TestStoreController) | |
static void | addSwapDir (TestSwapDirPointer aStore) |
static void | commonInit () |
static StoreEntry * | addedEntry (Store::Disk *aStore, String name, String, String) |
static void | searchCallback (void *) |
Variables | |
static bool | cbcalled |
Function Documentation
◆ addedEntry()
|
static |
Definition at line 105 of file testStoreController.cc.
References SquidConfig::cacheSwap, Config, EBIT_CLR, ENTRY_VALIDATED, StoreEntry::expires, StoreEntry::flags, StoreEntry::hashInsert(), INDEXSD, StoreEntry::lastModified(), StoreEntry::lastref, Store::DiskConfig::n_configured, NOT_IN_MEMORY, PING_NONE, StoreEntry::ping_status, StoreEntry::refcount, StoreEntry::setMemStatus(), squid_curtime, STORE_OK, StoreEntry::store_status, StoreEntry::swap_dirn, StoreEntry::swap_file_sz, StoreEntry::swap_filen, StoreEntry::swap_status, SWAPOUT_DONE, String::termedBuf(), and StoreEntry::timestamp.
Referenced by ClpMap< Key, Value, MemoryUsedBy >::add(), Fs::Ufs::RebuildState::addIfFresh(), and TestStoreController::testSearch().
◆ addSwapDir()
|
static |
Definition at line 39 of file testStoreController.cc.
References allocate_new_swapdir(), SquidConfig::cacheSwap, Config, RefCount< C >::getRaw(), Store::DiskConfig::n_configured, and Store::DiskConfig::swapDirs.
Referenced by TestStoreController::testMaxSize(), TestStoreController::testSearch(), and TestStoreController::testStats().
◆ commonInit()
|
static |
Definition at line 67 of file testStoreController.cc.
References SquidConfig::avgObjectSize, Config, YesNoNone::defaultTo(), Mem::Init(), SquidConfig::maxObjectSize, SquidConfig::memShared, SquidConfig::objectsPerBucket, SquidConfig::Store, SquidConfig::store_dir_select_algorithm, and xstrdup.
Referenced by TestStoreController::testMaxSize(), and TestStoreController::testSearch().
◆ CPPUNIT_TEST_SUITE_REGISTRATION()
CPPUNIT_TEST_SUITE_REGISTRATION | ( | TestStoreController | ) |
◆ searchCallback()
|
static |
Definition at line 141 of file testStoreController.cc.
References cbcalled.
Referenced by TestStoreController::testSearch().
Variable Documentation
◆ cbcalled
|
static |
Definition at line 138 of file testStoreController.cc.
Referenced by searchCallback(), and TestStoreController::testSearch().