• Home
  • Raw
  • Download

Lines Matching full:dir

20   // Against an existing dir, it should get destroyed when leaving scope.  in TEST()
23 ScopedTempDir dir; in TEST() local
24 EXPECT_TRUE(dir.Set(test_path)); in TEST()
25 EXPECT_TRUE(dir.IsValid()); in TEST()
30 ScopedTempDir dir; in TEST() local
31 EXPECT_TRUE(dir.Set(test_path)); in TEST()
32 // Now the dir doesn't exist, so ensure that it gets created. in TEST()
35 FilePath path = dir.Take(); in TEST()
37 EXPECT_FALSE(dir.IsValid()); in TEST()
43 ScopedTempDir dir; in TEST() local
44 EXPECT_TRUE(dir.Set(test_path)); in TEST()
54 ScopedTempDir dir; in TEST() local
55 EXPECT_TRUE(dir.CreateUniqueTempDir()); in TEST()
56 test_path = dir.GetPath(); in TEST()
73 ScopedTempDir dir; in TEST() local
74 EXPECT_TRUE(dir.CreateUniqueTempDirUnderPath(base_path)); in TEST()
75 test_path = dir.GetPath(); in TEST()
85 ScopedTempDir dir; in TEST() local
86 EXPECT_TRUE(dir.CreateUniqueTempDir()); in TEST()
87 EXPECT_FALSE(dir.CreateUniqueTempDir()); in TEST()
88 EXPECT_TRUE(dir.Delete()); in TEST()
89 EXPECT_TRUE(dir.CreateUniqueTempDir()); in TEST()
90 EXPECT_FALSE(dir.CreateUniqueTempDir()); in TEST()
92 EXPECT_TRUE(other_dir.Set(dir.Take())); in TEST()
93 EXPECT_TRUE(dir.CreateUniqueTempDir()); in TEST()
94 EXPECT_FALSE(dir.CreateUniqueTempDir()); in TEST()
100 ScopedTempDir dir; in TEST() local
101 EXPECT_TRUE(dir.CreateUniqueTempDir()); in TEST()
102 base::File file(dir.GetPath().Append(FILE_PATH_LITERAL("temp")), in TEST()
106 EXPECT_FALSE(dir.Delete()); // We should not be able to delete. in TEST()
107 EXPECT_FALSE(dir.GetPath().empty()); // We should still have a valid path. in TEST()
110 EXPECT_TRUE(dir.Delete()); in TEST()