CreateUniqueTest("c:\\temp\\", "foo", nsIFile::NORMAL_FILE_TYPE, 0644); CreateUniqueTest("c:\\temp\\", "foo", nsIFile::NORMAL_FILE_TYPE, 0644); CreateUniqueTest("c:\\temp\\", "bar.xx", nsIFile::DIRECTORY_TYPE, 0644); CreateUniqueTest("c:\\temp\\", "bar.xx", nsIFile::DIRECTORY_TYPE, 0644); DeletionTest("c:\\temp\\", "foo", PR_TRUE); DeletionTest("c:\\temp\\", "foo-1", PR_TRUE); DeletionTest("c:\\temp\\", "bar.xx", PR_TRUE); DeletionTest("c:\\temp\\", "bar-1.xx", PR_TRUE);
int main(void){    NS_SetupRegistry();#ifdef XP_PC    InitTest("c:\\temp\\", "sub1/sub2/");    InitTest("d:\\temp\\", "sub1/sub2/");    CreationTest("c:\\temp\\", "file.txt", nsIFile::NORMAL_FILE_TYPE, 0644);    DeletionTest("c:\\temp\\", "file.txt", PR_FALSE);    CreationTest("c:\\temp\\", "mumble/a/b/c/d/e/f/g/h/i/j/k/", nsIFile::DIRECTORY_TYPE, 0644);    DeletionTest("c:\\temp\\", "mumble", PR_TRUE);#else#ifdef XP_UNIX    InitTest("/tmp/", "sub1/sub2/");        CreationTest("/tmp", "file.txt", nsIFile::NORMAL_FILE_TYPE, 0644);    DeletionTest("/tmp/", "file.txt", PR_FALSE);        CreationTest("/tmp", "mumble/a/b/c/d/e/f/g/h/i/j/k/", nsIFile::DIRECTORY_TYPE, 0644);    DeletionTest("/tmp", "mumble", PR_TRUE);    CopyTest("/tmp/test.txt", "/tmp/foo");#endif /* XP_UNIX */#endif /* XP_PC */    return 0;}