Lines Matching refs:CFile
2 #include <CFile.h>
74 class FileDataIOFixture<CFile> : public Test
78 : Test(wxT("FileDataIO"), wxT("CFile - ") + testName) {}
81 CFile* m_emptyFile;
82 CFile* m_predefFile;
89 m_emptyFile = new CFile();
93 m_emptyFile->Open(emptyPath, CFile::read_write);
96 m_predefFile = new CFile();
100 m_predefFile->Open(datPath, CFile::read_write);
611 CFile* file = dynamic_cast<CFile*>(this->m_emptyFile);
627 ReadTest<CFile, uint8, 1> CFileReadUInt8Test;
628 ReadTest<CFile, uint16, 2> CFileReadUInt16Test;
629 ReadTest<CFile, uint32, 4> CFileReadUInt32Test;
630 ReadTest<CFile, CMD4Hash, 16> CFileReadCMD4HashTest;
631 ReadTest<CFile, CUInt128, 16> CFileReadCUInt128Test;
633 WriteTest<CFile, uint8, 1> CFileWriteUInt8Test;
634 WriteTest<CFile, uint16, 2> CFileWriteUInt16Test;
635 WriteTest<CFile, uint32, 4> CFileWriteUInt32Test;
636 WriteTest<CFile, CMD4Hash, 16> CFileWriteCMD4HashTest;
637 WriteTest<CFile, CUInt128, 16> CFileWriteCUInt128Test;
639 SeekTest<CFile> CFileSeekTest;
640 WritePastEndTest<CFile> CFileWritePastEnd;
641 StringTest<CFile> CFileStringTest;
643 LargeFileTest<CFile> CFileLargeFileTest;
732 // CFile specific tests
737 DECLARE(CFile);
755 TEST(CFile, Constructor)
759 CFile file;
762 ASSERT_TRUE(file.fd() == CFile::fd_invalid);
772 ASSERT_TRUE(file.fd() == CFile::fd_invalid);
777 CFile file;
784 CFile file(testFile, CFile::read);
787 ASSERT_TRUE(file.fd() != CFile::fd_invalid);
796 CFile file(testFile, CFile::write);
799 ASSERT_TRUE(file.fd() != CFile::fd_invalid);
810 CFile file(testFile, CFile::read_write);
813 ASSERT_TRUE(file.fd() != CFile::fd_invalid);
825 CFile file(testFile, CFile::write_append);
828 ASSERT_TRUE(file.fd() != CFile::fd_invalid);
836 ASSERT_TRUE(file.Open(testFile, CFile::read));
844 TEST(CFile, Create)
852 CFile file;
854 ASSERT_TRUE(file.fd() == CFile::fd_invalid);
857 ASSERT_TRUE(file.fd() != CFile::fd_invalid);
860 ASSERT_TRUE(file.fd() == CFile::fd_invalid);
871 CFile file;
879 CFile file;
881 ASSERT_TRUE(file.fd() == CFile::fd_invalid);
885 ASSERT_TRUE(file.Open(testFile, CFile::read));
887 ASSERT_TRUE(file.fd() != CFile::fd_invalid);
892 ASSERT_TRUE(file.fd() == CFile::fd_invalid);
898 CFile file;
901 ASSERT_TRUE(file.fd() != CFile::fd_invalid);
905 ASSERT_TRUE(file.fd() == CFile::fd_invalid);
914 TEST(CFile, SetLength)
916 CFile file(testFile, CFile::write);
928 TEST(CFile, GetAvailable)
931 CFile file(testFile, CFile::write);
936 CFile file(testFile, CFile::read);