aboutsummaryrefslogtreecommitdiff
path: root/engines/testbed/fs.h
blob: c7180390ddaa24408fff141a736bc15e0ddc6f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef FS_H
#define FS_H

#include "testbed/testsuite.h"

namespace Testbed {

namespace FStests {

// 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

// Helper functions for FS tests
bool readDataFromFile(Common::FSNode &directory, const char *file);

// will contain function declarations for FS tests
bool testReadFile();
bool testWriteFile();
bool testOpeningSaveFile();
// 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