Home
last modified time | relevance | path

Searched refs:file2 (Results 1 – 2 of 2) sorted by relevance

/art/libartbase/base/unix_file/
Dfd_file_test.cc65 FdFile file2(good_path, O_RDONLY, true); in TEST_F() local
66 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() local
186 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 …]
/art/dex2oat/
Ddex2oat_image_test.cc147 std::unique_ptr<File> file2(OS::OpenFileForReading(filename2.c_str())); in CompareFiles() local
149 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()