Home | History | Annotate | Download | only in base

Lines Matching defs:file

3 // found in the LICENSE file.
47 // Test the use of FileStream with a file handle provided at construction.
51 // 1. Test reading with a file handle.
55 base::PlatformFile file = base::CreatePlatformFile(
58 // Seek to the beginning of the file and read.
59 FileStream read_stream(file, flags);
68 // 2. Test writing with a file handle.
71 file = base::CreatePlatformFile(temp_file_path(), flags, &created, NULL);
73 FileStream write_stream(file, flags);
815 } else { // We're done writing all data. Close the file.
867 // Tests truncating a file.
874 // Write some data to the file.
878 // Truncate the file.