#include <RegistrationDbTestContext.h>

The registration database test input is in the form of templates for the registration.xml file. These are normal files, except that the expires values are relative numbers. The ConvertRelativeExpirations TemplateConverter turns these into absolute times relative to the time of conversion.
Public Member Functions | |
| RegistrationDbTestContext (const char *testInputDir, const char *testWorkingDir) | |
| constructor | |
| virtual void | inputFile (const char *filename) |
| Get a file from the testInputDir, copy into testWorkingDir. | |
| virtual | ~RegistrationDbTestContext () |
| destructor | |
Static Public Member Functions | |
| static void | ConvertRelativeExpirations (OsFile *templateFile, OsFile *workingFile) |
Static Public Attributes | |
| static const char * | REGDB_FILENAME |
Static Protected Member Functions | |
| static void | timeShiftExpiresLine (UtlString &line, long timeNow) |
Private Member Functions | |
| RegistrationDbTestContext (const RegistrationDbTestContext &) | |
| There is no copy constructor. | |
| RegistrationDbTestContext & | operator= (const RegistrationDbTestContext &) |
| There is no assignment operator. | |
| RegistrationDbTestContext | ( | const char * | testInputDir, | |
| const char * | testWorkingDir | |||
| ) |
constructor
| testInputDir | directory for test input & template files |
| testWorkingDir | directory for test working files. |
| virtual ~RegistrationDbTestContext | ( | ) | [virtual] |
destructor
| RegistrationDbTestContext | ( | const RegistrationDbTestContext & | ) | [private] |
There is no copy constructor.
| virtual void inputFile | ( | const char * | filename | ) | [virtual] |
| static void ConvertRelativeExpirations | ( | OsFile * | templateFile, | |
| OsFile * | workingFile | |||
| ) | [static] |
| templateFile | input |
| workingFile | output |
| static void timeShiftExpiresLine | ( | UtlString & | line, | |
| long | timeNow | |||
| ) | [static, protected] |
| RegistrationDbTestContext& operator= | ( | const RegistrationDbTestContext & | ) | [private] |
There is no assignment operator.
const char* REGDB_FILENAME [static] |