2010-06-17 11:23:51 +00:00
|
|
|
#ifndef FS_H
|
|
|
|
#define FS_H
|
|
|
|
|
|
|
|
#include "testbed/testsuite.h"
|
|
|
|
|
|
|
|
namespace Testbed {
|
|
|
|
|
|
|
|
namespace FStests {
|
|
|
|
|
2010-06-18 08:45:57 +00:00
|
|
|
// Note: These tests require a game-data directory
|
|
|
|
// So would work if game-path is set in the launcher or invoked as ./scummvm --path="path-to-testbed-data" testbed
|
|
|
|
// from commandline
|
|
|
|
|
2010-06-17 11:23:51 +00:00
|
|
|
// Helper functions for FS tests
|
2010-06-25 20:26:54 +00:00
|
|
|
bool readDataFromFile(Common::FSDirectory *directory, const char *file);
|
2010-06-17 11:23:51 +00:00
|
|
|
|
|
|
|
// will contain function declarations for FS tests
|
2010-06-18 08:45:57 +00:00
|
|
|
bool testReadFile();
|
|
|
|
bool testWriteFile();
|
2010-06-22 20:49:38 +00:00
|
|
|
bool testOpeningSaveFile();
|
2010-06-17 11:23:51 +00:00
|
|
|
// add more here
|
|
|
|
}
|
|
|
|
|
|
|
|
class FSTestSuite : public Testsuite {
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* The constructor for the FSTestSuite
|
|
|
|
* For every test to be executed one must:
|
|
|
|
* 1) Create a function that would invoke the test
|
|
|
|
* 2) Add that test to list by executing addTest()
|
|
|
|
*
|
|
|
|
* @see addTest()
|
|
|
|
*/
|
|
|
|
FSTestSuite();
|
|
|
|
~FSTestSuite(){}
|
|
|
|
const char *getName() const;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // End of namespace Testbed
|
|
|
|
|
|
|
|
#endif
|