testUfs.cc
Go to the documentation of this file.
49extern REMOVALPOLICYCREATE createRemovalPolicy_lru; /* XXX fails with --enable-removal-policies=heap */
95 httpHeaderInitModule(); /* must go before any header processing (e.g. the one in errorInitialize) */
168 reply.setHeaders(Http::scOkay, "dummy test object", "x-squid-internal/test", 0, -1, squid_curtime + 100000);
RemovalPolicy * REMOVALPOLICYCREATE(wordlist *args)
Definition: RemovalPolicy.h:80
RemovalPolicy * createRemovalPolicy(RemovalPolicySettings *settings)
Definition: store.cc:1657
static void SetCfgLine(char *line)
Set the configuration file line to parse.
Definition: ConfigParser.cc:204
Definition: UFSStrategy.h:25
Definition: UFSSwapDir.h:31
void create() override
create system resources needed for this store to operate in the future
Definition: UFSSwapDir.cc:299
void setHeaders(Http::StatusCode status, const char *reason, const char *ctype, int64_t clen, time_t lmt, time_t expires)
Definition: HttpReply.cc:170
void packHeadersUsingSlowPacker(Packable &p) const
same as packHeadersUsingFastPacker() but assumes that p cannot quickly process small additions
Definition: HttpReply.cc:95
Definition: RemovalPolicy.h:20
Definition: RequestFlags.h:23
struct SquidConfig::@104 Store
char * store_dir_select_algorithm
Definition: SquidConfig.h:500
Definition: testStoreSupport.h:20
Definition: Store.h:42
sfileno swap_filen
unique ID inside a cache_dir for swapped out entries; -1 for others
Definition: Store.h:236
bool setPublicKey(const KeyScope keyScope=ksDefault)
Definition: store.cc:561
virtual bool error() const =0
virtual void next(void(callback)(void *cbdata), void *cbdata)=0
virtual StoreEntry * currentItem()=0
virtual bool isDone() const =0
static int store_dirs_rebuilding
the number of cache_dirs being rebuilt; TODO: move to Disks::Rebuilding
Definition: Controller.h:134
implements test program's main() function while enabling customization
Definition: unitTestMain.h:26
Definition: testUfs.cc:34
CPPUNIT_TEST_SUITE(TestUfs)
CPPUNIT_TEST_SUITE_END()
CPPUNIT_TEST(testUfsDefaultEngine)
CPPUNIT_TEST(testUfsSearch)
void defaultTo(bool beSet)
enables or disables the option; updating to 'implicit' state
Definition: YesNoNone.h:59
hash_table * store_table
char const * visible_appname_string
int64_t store_maxobjsize
void Init(Controller *root=nullptr)
initialize the storage module; a custom root is used by unit tests only
Definition: Controller.cc:945
StoreEntry * storeCreateEntry(const char *url, const char *logUrl, const RequestFlags &flags, const HttpRequestMethod &method)
Definition: store.cc:745
void storeReplAdd(const char *type, REMOVALPOLICYCREATE *create)
Definition: store.cc:1631
CPPUNIT_TEST_SUITE_REGISTRATION(TestUfs)