haiku/src/tests/kits/storage/FileTest.h
ejakowatz 52a3801208 It is accomplished ...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 12:24:59 +00:00

50 lines
978 B
C++

// FileTest.h
#ifndef __sk_file_test_h__
#define __sk_file_test_h__
#include "NodeTest.h"
class FileTest : public NodeTest
{
public:
static Test* Suite();
virtual void CreateRONodes(TestNodes& testEntries);
virtual void CreateRWNodes(TestNodes& testEntries);
virtual void CreateUninitializedNodes(TestNodes& testEntries);
// This function called before *each* test added in Suite()
void setUp();
// This function called after *each* test added in Suite()
void tearDown();
// test methods
void InitTest1();
void InitTest2();
void RWAbleTest();
void RWTest();
void PositionTest();
void SizeTest();
void AssignmentTest();
// helper functions
struct InitTestCase {
const char * filename;
uint32 rwmode;
uint32 createFile;
uint32 failIfExists;
uint32 eraseFile;
bool removeAfterTest;
status_t initCheck;
};
static const InitTestCase initTestCases[];
static const int32 initTestCasesCount;
};
#endif // __sk_file_test_h__