Lines Matching refs:file2
32 File file2(base::File::FILE_ERROR_TOO_MANY_OPENED); in TEST() local
33 EXPECT_FALSE(file2.IsValid()); in TEST()
34 EXPECT_EQ(base::File::FILE_ERROR_TOO_MANY_OPENED, file2.error_details()); in TEST()
283 File file2(file_path, in TEST() local
286 ASSERT_TRUE(file2.IsValid()); in TEST()
289 file = std::move(file2); in TEST()
290 EXPECT_FALSE(file2.IsValid()); in TEST()
509 File file2(file.Duplicate()); local
510 ASSERT_TRUE(file2.IsValid());
517 ASSERT_EQ(0, file2.Seek(base::File::FROM_CURRENT, 0));
520 ASSERT_EQ(kDataLen, file2.Seek(base::File::FROM_CURRENT, 0));
523 ASSERT_EQ(kDataLen, file2.Read(0, &buf[0], kDataLen));
536 File file2(file.Duplicate()); local
537 ASSERT_TRUE(file2.IsValid());
539 file2.Close();
677 File file2( local
681 ASSERT_TRUE(file2.IsValid());
683 file2.DeleteOnClose(false);
684 file2.Close();
715 File file2( local
719 ASSERT_FALSE(file2.IsValid());