Lines Matching refs:file2
31 File file2(base::File::FILE_ERROR_TOO_MANY_OPENED); in TEST() local
32 EXPECT_FALSE(file2.IsValid()); in TEST()
33 EXPECT_EQ(base::File::FILE_ERROR_TOO_MANY_OPENED, file2.error_details()); in TEST()
243 File file2(file_path, in TEST() local
246 ASSERT_TRUE(file2.IsValid()); in TEST()
249 file = std::move(file2); in TEST()
250 EXPECT_FALSE(file2.IsValid()); in TEST()
460 File file2(file.Duplicate()); local
461 ASSERT_TRUE(file2.IsValid());
468 ASSERT_EQ(0, file2.Seek(base::File::FROM_CURRENT, 0));
471 ASSERT_EQ(kDataLen, file2.Seek(base::File::FROM_CURRENT, 0));
474 ASSERT_EQ(kDataLen, file2.Read(0, &buf[0], kDataLen));
487 File file2(file.Duplicate()); local
488 ASSERT_TRUE(file2.IsValid());
490 file2.Close();