1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/files/test_file_opener.h Sun Mar 14 17:17:09 2021 +0100
1.3 @@ -0,0 +1,23 @@
1.4 +#pragma once
1.5 +
1.6 +#include "opener_resource.h"
1.7 +
1.8 +/* Support for providing access to files. */
1.9 +
1.10 +class TestFileOpener : public OpenerResource
1.11 +{
1.12 +protected:
1.13 + offset_t _file_size;
1.14 +
1.15 + /* Configurable methods. */
1.16 +
1.17 + virtual fileid_t get_fileid(const char *path);
1.18 +
1.19 + virtual Accessor *make_accessor(fileid_t fileid);
1.20 +
1.21 +public:
1.22 + explicit TestFileOpener(Accessing *accessing, Paging *paging, Pages *pages,
1.23 + offset_t file_size=0);
1.24 +};
1.25 +
1.26 +// vim: tabstop=4 expandtab shiftwidth=4