testRock.cc
Go to the documentation of this file.
175 rep.setHeaders(Http::scOkay, "dummy test object", "x-squid-internal/test", 0, -1, squid_curtime + 100000);
355 httpHeaderInitModule(); /* must go before any header processing (e.g. the one in errorInitialize) */
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
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
static const char * BasePath
common path of all segment names in path-based environments
Definition: Segment.h:45
void startup() override
virtual void finishShutdown()
Meant for cleanup of services needed by the already destroyed objects.
Definition: RunnersRegistry.h:91
Definition: RemovalPolicy.h:20
Definition: RequestFlags.h:23
initializes shared memory segments used by Rock::SwapDir
Definition: RockSwapDir.h:156
uint64_t currentCount() const override
the total number of objects stored right now
Definition: RockSwapDir.cc:156
void create() override
create system resources needed for this store to operate in the future
Definition: RockSwapDir.cc:211
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
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: testRock.cc:44
void commonInit()
CPPUNIT_TEST(testRockCreate)
CPPUNIT_TEST_SUITE(TestRock)
CPPUNIT_TEST_SUITE_END()
CPPUNIT_TEST(testRockSwapOut)
void defaultTo(bool beSet)
enables or disables the option; updating to 'implicit' state
Definition: YesNoNone.h:59
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
StoreEntry * storeGetPublic(const char *uri, const HttpRequestMethod &method)
Definition: store.cc:490
void storeReplAdd(const char *type, REMOVALPOLICYCREATE *create)
Definition: store.cc:1631
CPPUNIT_TEST_SUITE_REGISTRATION(TestRock)