~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to src/tests/TestSwapDir.h

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2006-11-11 10:32:06 UTC
  • Revision ID: james.westby@ubuntu.com-20061111103206-f3p0r9g0vq44rp3r
Tags: upstream-3.0.PRE5
ImportĀ upstreamĀ versionĀ 3.0.PRE5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef TEST_TESTSWAPDIR
 
2
#define TEST_TESTSWAPDIR
 
3
 
 
4
#include "squid.h"
 
5
#include "SwapDir.h"
 
6
 
 
7
class TestSwapDir : public SwapDir
 
8
{
 
9
 
 
10
public:
 
11
    TestSwapDir() : SwapDir("test"), statsCalled (false) {}
 
12
 
 
13
    bool statsCalled;
 
14
 
 
15
    virtual size_t maxSize() const;
 
16
    virtual void stat(StoreEntry &) const; /* output stats to the provided store entry */
 
17
 
 
18
    virtual void reconfigure(int, char*);
 
19
    virtual void init();
 
20
    virtual int canStore(const StoreEntry&) const;
 
21
    virtual StoreIOState::Pointer createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *);
 
22
    virtual StoreIOState::Pointer openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *);
 
23
    virtual void parse(int, char*);
 
24
    virtual StoreSearch *search(String, HttpRequest *);
 
25
};
 
26
 
 
27
typedef RefCount<TestSwapDir> TestSwapDirPointer;
 
28
 
 
29
#endif  /* TEST_TESTSWAPDIR */