#ifndef UT_MISC_FILE #define UT_MISC_FILE #include #include // Test suite for CFile behavior struct CUTMiscFile : public Test::Suite { CUTMiscFile() { TEST_ADD(CUTMiscFile::copyOneBigFile); TEST_ADD(CUTMiscFile::copyDifferentFileSize); TEST_ADD(CUTMiscFile::moveOneBigFile); TEST_ADD(CUTMiscFile::moveDifferentFileSize); // Add a line here when adding a new test METHOD } private: string _SrcFile; string _DstFile; void setup() { _SrcFile = "__copy_file_src.foo"; _DstFile = "__copy_file_dst.foo"; } void tear_down() { } void copyFileSize(uint fileSize) { // create a source file (using standard c code) FILE *fp = fopen(_SrcFile.c_str(), "wb"); nlverify(fp != NULL); for (uint i=0; i