Lines Matching defs:seq_file
71 SequentialFile* seq_file;
73 ASSERT_TRUE(!env_->NewSequentialFile("/dir/non_existent", &seq_file).ok());
74 ASSERT_TRUE(!seq_file);
89 SequentialFile* seq_file;
102 ASSERT_OK(env_->NewSequentialFile("/dir/f", &seq_file));
103 ASSERT_OK(seq_file->Read(5, &result, scratch)); // Read "hello".
105 ASSERT_OK(seq_file->Skip(1));
106 ASSERT_OK(seq_file->Read(1000, &result, scratch)); // Read "world".
108 ASSERT_OK(seq_file->Read(1000, &result, scratch)); // Try reading past EOF.
110 ASSERT_OK(seq_file->Skip(100)); // Try to skip past end of file.
111 ASSERT_OK(seq_file->Read(1000, &result, scratch));
113 delete seq_file;
167 SequentialFile* seq_file;
169 ASSERT_OK(env_->NewSequentialFile("/dir/f", &seq_file));
170 ASSERT_OK(seq_file->Read(3, &result, scratch)); // Read "foo".
176 ASSERT_OK(seq_file->Read(kWriteSize - read, &result, scratch));
181 delete seq_file;