michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* fileio.cpp - a test program */ michael@0: michael@0: #include "rcfileio.h" michael@0: michael@0: #include michael@0: #include michael@0: michael@0: #define DEFAULT_ITERATIONS 100 michael@0: michael@0: PRIntn main(PRIntn argc, char **argv) michael@0: { michael@0: PRStatus rv; michael@0: RCFileIO fd; michael@0: RCFileInfo info; michael@0: rv = fd.Open("filio.dat", PR_CREATE_FILE, 0666); michael@0: PR_ASSERT(PR_SUCCESS == rv); michael@0: rv = fd.FileInfo(&info); michael@0: PR_ASSERT(PR_SUCCESS == rv); michael@0: rv = fd.Delete("filio.dat"); michael@0: PR_ASSERT(PR_SUCCESS == rv); michael@0: fd.Close(); michael@0: PR_ASSERT(PR_SUCCESS == rv); michael@0: michael@0: return 0; michael@0: } /* main */ michael@0: michael@0: /* interval.cpp */ michael@0: