Searched refs:file2 (Results 1 – 2 of 2) sorted by relevance
65 FdFile file2(good_path, O_RDONLY, true); in TEST_F() local66 EXPECT_TRUE(file2.IsOpened()); in TEST_F()67 EXPECT_TRUE(file2.ReadOnlyMode()); in TEST_F()68 EXPECT_GE(file2.Fd(), 0); in TEST_F()70 ASSERT_EQ(file2.Close(), 0); in TEST_F()184 FdFile file2(std::move(file)); in TEST_F() local186 EXPECT_TRUE(file2.IsOpened()); in TEST_F()187 EXPECT_EQ(old_fd, file2.Fd()); in TEST_F()189 ASSERT_EQ(file2.Flush(), 0); in TEST_F()190 ASSERT_EQ(file2.Close(), 0); in TEST_F()[all …]
147 std::unique_ptr<File> file2(OS::OpenFileForReading(filename2.c_str())); in CompareFiles() local149 if (file1 == nullptr || file2 == nullptr) { in CompareFiles()153 if (file1->GetLength() <= 0 || file2->GetLength() != file1->GetLength()) { in CompareFiles()156 return file1->Compare(file2.get()) == 0; in CompareFiles()