Lines Matching refs:tmpFile

63         tmpFile = new TemporaryFile(buf.c_str(), size);  in SetUp()
72 std::filesystem::remove_all(tmpFile->getPath()); in TearDown()
73 delete tmpFile; in TearDown()
80 TemporaryFile* tmpFile; member in TemporaryFileTests
88 fs::path path = tmpFile->getPath(); in TEST_F()
119 EXPECT_FALSE(tmpFile->getPath().empty()); in TEST_F()
120 EXPECT_TRUE(fs::exists(tmpFile->getPath())); in TEST_F()
123 fs::path path = tmpFile->getPath(); in TEST_F()
126 TemporaryFile file{std::move(*tmpFile)}; in TEST_F()
129 EXPECT_TRUE(tmpFile->getPath().empty()); in TEST_F()
143 EXPECT_FALSE(tmpFile->getPath().empty()); in TEST_F()
144 EXPECT_TRUE(fs::exists(tmpFile->getPath())); in TEST_F()
147 fs::path path1 = tmpFile->getPath(); in TEST_F()
160 *tmpFileNoData = std::move(*tmpFile); in TEST_F()
163 EXPECT_TRUE(tmpFile->getPath().empty()); in TEST_F()
177 EXPECT_FALSE(tmpFile->getPath().empty()); in TEST_F()
178 EXPECT_TRUE(fs::exists(tmpFile->getPath())); in TEST_F()
181 fs::path path = tmpFile->getPath(); in TEST_F()
184 *tmpFile = static_cast<TemporaryFile&&>(*tmpFile); in TEST_F()
187 EXPECT_EQ(tmpFile->getPath(), path); in TEST_F()
195 EXPECT_FALSE(tmpFile->getPath().empty()); in TEST_F()
196 EXPECT_TRUE(fs::exists(tmpFile->getPath())); in TEST_F()
199 fs::path path1 = tmpFile->getPath(); in TEST_F()
203 EXPECT_TRUE(fs::exists(tmpFile->getPath())); in TEST_F()
217 *tmpFileNoData = std::move(*tmpFile); in TEST_F()
226 EXPECT_EQ(tmpFile->getPath(), path1); in TEST_F()
292 EXPECT_FALSE(tmpFile->getPath().empty()); in TEST_F()
293 EXPECT_TRUE(fs::exists(tmpFile->getPath())); in TEST_F()
296 fs::path path = tmpFile->getPath(); in TEST_F()
299 tmpFile->remove(); in TEST_F()
302 EXPECT_TRUE(tmpFile->getPath().empty()); in TEST_F()
306 tmpFile->remove(); in TEST_F()
307 EXPECT_TRUE(tmpFile->getPath().empty()); in TEST_F()
315 EXPECT_FALSE(tmpFile->getPath().empty()); in TEST_F()
316 EXPECT_TRUE(fs::exists(tmpFile->getPath())); in TEST_F()
319 makeFileUnRemovable(tmpFile->getPath()); in TEST_F()
324 tmpFile->remove(); in TEST_F()
333 makeFileRemovable(tmpFile->getPath()); in TEST_F()
338 EXPECT_FALSE(tmpFile->getPath().empty()); in TEST_F()
339 EXPECT_EQ(tmpFile->getPath().parent_path(), "/tmp"); in TEST_F()
340 EXPECT_TRUE(fs::exists(tmpFile->getPath())); in TEST_F()