Lines Matching refs:tf
39 TemporaryFile tf; in TEST() local
40 ASSERT_TRUE(tf.fd != -1); in TEST()
42 ASSERT_EQ(size_t{10}, static_cast<size_t>(TEMP_FAILURE_RETRY(write(tf.fd, kDexData, 10)))); in TEST()
45 EXPECT_TRUE(DexFileFromFile::Create(0, tf.path) == nullptr); in TEST()
48 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in TEST()
50 static_cast<size_t>(TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(kDexData) - 1)))); in TEST()
51 EXPECT_TRUE(DexFileFromFile::Create(0, tf.path) == nullptr); in TEST()
55 TemporaryFile tf; in TEST() local
56 ASSERT_TRUE(tf.fd != -1); in TEST()
59 static_cast<size_t>(TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(kDexData))))); in TEST()
61 EXPECT_TRUE(DexFileFromFile::Create(0, tf.path) != nullptr); in TEST()
65 TemporaryFile tf; in TEST() local
66 ASSERT_TRUE(tf.fd != -1); in TEST()
68 ASSERT_EQ(0x100, lseek(tf.fd, 0x100, SEEK_SET)); in TEST()
70 static_cast<size_t>(TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(kDexData))))); in TEST()
72 EXPECT_TRUE(DexFileFromFile::Create(0x100, tf.path) != nullptr); in TEST()
100 TemporaryFile tf; in TEST() local
101 ASSERT_TRUE(tf.fd != -1); in TEST()
103 ASSERT_EQ(0x500, lseek(tf.fd, 0x500, SEEK_SET)); in TEST()
105 static_cast<size_t>(TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(kDexData))))); in TEST()
108 MapInfo info(nullptr, 0, 0x10000, 0, 0x5, tf.path); in TEST()
113 TemporaryFile tf; in TEST() local
114 ASSERT_TRUE(tf.fd != -1); in TEST()
116 ASSERT_EQ(0x500, lseek(tf.fd, 0x500, SEEK_SET)); in TEST()
118 static_cast<size_t>(TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(kDexData))))); in TEST()
121 MapInfo info(nullptr, 0x100, 0x10000, 0, 0x5, tf.path); in TEST()
126 TemporaryFile tf; in TEST() local
127 ASSERT_TRUE(tf.fd != -1); in TEST()
129 ASSERT_EQ(0x500, lseek(tf.fd, 0x500, SEEK_SET)); in TEST()
131 static_cast<size_t>(TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(kDexData))))); in TEST()
134 MapInfo info(nullptr, 0x100, 0x10000, 0x200, 0x5, tf.path); in TEST()
153 TemporaryFile tf; in TEST() local
154 ASSERT_TRUE(tf.fd != -1); in TEST()
157 static_cast<size_t>(TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(kDexData) - 10)))); in TEST()