Lines Matching refs:tmp
31 FILE* tmp = tmpfile(); in MakeTestFile() local
32 int fd = art::DupCloexec(fileno(tmp)); in MakeTestFile()
33 fclose(tmp); in MakeTestFile()
108 art::ScratchFile tmp; in TEST_F() local
109 FdFile file(tmp.GetFilename(), O_RDONLY, false); in TEST_F()
124 art::ScratchFile tmp; in TEST_F() local
125 FdFile file(tmp.GetFilename(), O_RDWR, false); in TEST_F()
153 art::ScratchFile tmp; in TEST_F() local
154 FdFile file(tmp.GetFilename(), O_RDWR, false); in TEST_F()
539 art::ScratchFile tmp; in TEST_F() local
540 FdFile file(tmp.GetFilename(), O_RDWR, false); in TEST_F()
558 art::ScratchFile tmp; in TEST_F() local
559 FdFile file(tmp.GetFilename(), O_RDONLY, false); in TEST_F()
562 FdFile file2(tmp.GetFilename(), O_RDWR, false); in TEST_F()
571 art::ScratchFile tmp; in TEST_F() local
572 std::string filename = tmp.GetFilename(); in TEST_F()
573 tmp.Close(); // This is required because of the unlink race between the scratch file and the in TEST_F()
602 art::ScratchFile tmp; in TEST_F() local
603 EXPECT_TRUE(tmp.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
604 EXPECT_EQ(tmp.GetFile()->GetLength(), length); in TEST_F()
611 tmp.GetFile()->ResetOffset(); in TEST_F()
614 EXPECT_EQ(reset_compare(tmp, tmp2), 0); in TEST_F()
621 EXPECT_NE(reset_compare(tmp, tmp3), 0); in TEST_F()
628 EXPECT_NE(reset_compare(tmp, tmp4), 0); in TEST_F()
635 EXPECT_NE(reset_compare(tmp, tmp5), 0); in TEST_F()
640 EXPECT_EQ(reset_compare(tmp, tmp6), 0); in TEST_F()