rv = NS_NewLocalFile(outDir, getter_AddRefs(outDirFile));
rv = NS_NewLocalFile(outDir, PR_FALSE, getter_AddRefs(outDirFile));
main(int argc, char* argv[]){    nsresult rv;    if (argc < 2) {        printf("usage: %s <in-dir> <out-dir>\n", argv[0]);        return -1;    }    char* inDir = argv[1];    char* outDir = argv[2];    rv = NS_AutoregisterComponents();    if (NS_FAILED(rv)) return rv;    nsCOMPtr<nsILocalFile> inDirFile;    rv = NS_NewLocalFile(inDir, getter_AddRefs(inDirFile));    if (NS_FAILED(rv)) return rv;    nsCOMPtr<nsILocalFile> outDirFile;    rv = NS_NewLocalFile(outDir, getter_AddRefs(outDirFile));    if (NS_FAILED(rv)) return rv;    CreateFun create = FileChannelWorker::Create;    Test(create, 1, inDirFile, outDirFile, 16 * 1024);#if 1    printf("FileChannelWorker *****************************\n");    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);#endif    create = FileSpecWorker::Create;    printf("FileSpecWorker ********************************\n");#if 1    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);    Test(create, 20, inDirFile, outDirFile, 16 * 1024);#endif#if 1    Test(create, 20, inDirFile, outDirFile, 4 * 1024);    Test(create, 20, inDirFile, outDirFile, 4 * 1024);    Test(create, 20, inDirFile, outDirFile, 4 * 1024);    Test(create, 20, inDirFile, outDirFile, 4 * 1024);    Test(create, 20, inDirFile, outDirFile, 4 * 1024);    Test(create, 20, inDirFile, outDirFile, 4 * 1024);    Test(create, 20, inDirFile, outDirFile, 4 * 1024);    Test(create, 20, inDirFile, outDirFile, 4 * 1024);    Test(create, 20, inDirFile, outDirFile, 4 * 1024);#endif    return 0;}