Lines Matching refs:tf
42 TemporaryFile tf; in TEST() local
43 ASSERT_TRUE(tf.fd != -1); in TEST()
44 EXPECT_TRUE(WriteFile(tf.path, s)) << strerror(errno); in TEST()
45 EXPECT_NE(-1, fchmodat(AT_FDCWD, tf.path, 0620, AT_SYMLINK_NOFOLLOW)) << strerror(errno); in TEST()
46 auto file_contents = ReadFile(tf.path); in TEST()
53 TemporaryFile tf; in TEST() local
54 ASSERT_TRUE(tf.fd != -1); in TEST()
55 EXPECT_TRUE(WriteFile(tf.path, s)) << strerror(errno); in TEST()
56 EXPECT_NE(-1, fchmodat(AT_FDCWD, tf.path, 0602, AT_SYMLINK_NOFOLLOW)) << strerror(errno); in TEST()
57 auto file_contents = ReadFile(tf.path); in TEST()
87 TemporaryFile tf; in TEST() local
88 ASSERT_TRUE(tf.fd != -1); in TEST()
89 EXPECT_TRUE(WriteFile(tf.path, contents)) << strerror(errno); in TEST()
91 auto read_back_contents = ReadFile(tf.path); in TEST()
114 TemporaryFile tf; in TEST() local
115 ASSERT_TRUE(tf.fd != -1); in TEST()
116 EXPECT_TRUE(WriteFile(tf.path, "1hello1")) << strerror(errno); in TEST()
117 auto file_contents = ReadFile(tf.path); in TEST()
120 EXPECT_TRUE(WriteFile(tf.path, "2ll2")); in TEST()
121 file_contents = ReadFile(tf.path); in TEST()
143 TemporaryFile tf; in TEST() local
144 EXPECT_FALSE(is_dir(tf.path)); in TEST()