Home
last modified time | relevance | path

Searched refs:temp_dir_ (Results 1 – 25 of 146) sorted by relevance

123456

/external/cronet/tot/base/files/
Dfile_util_unittest.cc201 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp()
226 base::File temp_dir(temp_dir_.GetPath(), in AreShortFilePathsEnabled()
243 ScopedTempDir temp_dir_; member in base::__anon78bd85c30111::FileUtilTest
368 const FilePath temp_dir_path = temp_dir_.GetPath(); in TEST_F()
371 ASSERT_TRUE(temp_dir_.Delete()); in TEST_F()
381 FilePath file_01 = temp_dir_.GetPath().Append(FPL("The file 01.txt")); in TEST_F()
390 FilePath subdir_path = temp_dir_.GetPath().Append(FPL("Level2")); in TEST_F()
407 int64_t computed_size = ComputeDirectorySize(temp_dir_.GetPath()); in TEST_F()
414 FilePath file_a_path = temp_dir_.GetPath().Append(FPL("file_a")); in TEST_F()
415 FilePath dir_path = temp_dir_.GetPath().Append(FPL("dir")); in TEST_F()
[all …]
Dscoped_file_linux_unittest.cc16 void SetUp() override { ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); } in SetUp()
17 void TearDown() override { ASSERT_TRUE(temp_dir_.Delete()); } in TearDown()
21 return CreateAndOpenFdForTemporaryFileInDir(temp_dir_.GetPath(), in OpenFD()
26 ScopedTempDir temp_dir_; member in base::__anonab3ae7920111::ScopedFDOwnershipTrackingTest
Dfile_path_watcher_unittest.cc384 ASSERT_TRUE(temp_dir_.CreateUniqueTempDirUnderPath(parent_dir)); in SetUp()
386 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp()
393 return temp_dir_.GetPath().AppendASCII("FilePathWatcherTest"); in test_file()
397 return temp_dir_.GetPath().AppendASCII("FilePathWatcherTest.lnk"); in test_link()
417 ScopedTempDir temp_dir_; member in base::FilePathWatcherTest
520 FilePath parent(temp_dir_.GetPath().AppendASCII("parent")); in TEST_F()
550 FilePath parent(temp_dir_.GetPath().AppendASCII("parent")); in TEST_F()
551 FilePath parent_sibling(temp_dir_.GetPath().AppendASCII("parent_sibling")); in TEST_F()
583 FilePath source_file(temp_dir_.GetPath().AppendASCII("source")); in TEST_F()
609 ASSERT_TRUE(Move(test_file(), temp_dir_.GetPath().AppendASCII("dest"))); in TEST_F()
[all …]
Dos_validation_win_unittest.cc34 temp_dir_ = std::make_unique<ScopedTempDir>().release(); in SetUpTestSuite()
35 ASSERT_TRUE(temp_dir_->CreateUniqueTempDir()); in SetUpTestSuite()
40 ASSERT_TRUE(temp_dir_->Delete()); in TearDownTestSuite()
41 auto temp_dir = base::WrapUnique(temp_dir_); in TearDownTestSuite()
42 temp_dir_ = nullptr; in TearDownTestSuite()
46 static const FilePath& temp_path() { return temp_dir_->GetPath(); } in temp_path()
49 static ScopedTempDir* temp_dir_; member in base::OsValidationTest
53 ScopedTempDir* OsValidationTest::temp_dir_ = nullptr; member in base::OsValidationTest
/external/cronet/stable/base/files/
Dfile_util_unittest.cc201 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp()
226 base::File temp_dir(temp_dir_.GetPath(), in AreShortFilePathsEnabled()
243 ScopedTempDir temp_dir_; member in base::__anon31202d270111::FileUtilTest
368 const FilePath temp_dir_path = temp_dir_.GetPath(); in TEST_F()
371 ASSERT_TRUE(temp_dir_.Delete()); in TEST_F()
381 FilePath file_01 = temp_dir_.GetPath().Append(FPL("The file 01.txt")); in TEST_F()
390 FilePath subdir_path = temp_dir_.GetPath().Append(FPL("Level2")); in TEST_F()
407 int64_t computed_size = ComputeDirectorySize(temp_dir_.GetPath()); in TEST_F()
414 FilePath file_a_path = temp_dir_.GetPath().Append(FPL("file_a")); in TEST_F()
415 FilePath dir_path = temp_dir_.GetPath().Append(FPL("dir")); in TEST_F()
[all …]
Dscoped_file_linux_unittest.cc16 void SetUp() override { ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); } in SetUp()
17 void TearDown() override { ASSERT_TRUE(temp_dir_.Delete()); } in TearDown()
21 return CreateAndOpenFdForTemporaryFileInDir(temp_dir_.GetPath(), in OpenFD()
26 ScopedTempDir temp_dir_; member in base::__anon53f0b2f60111::ScopedFDOwnershipTrackingTest
Dfile_path_watcher_unittest.cc384 ASSERT_TRUE(temp_dir_.CreateUniqueTempDirUnderPath(parent_dir)); in SetUp()
386 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp()
393 return temp_dir_.GetPath().AppendASCII("FilePathWatcherTest"); in test_file()
397 return temp_dir_.GetPath().AppendASCII("FilePathWatcherTest.lnk"); in test_link()
417 ScopedTempDir temp_dir_; member in base::FilePathWatcherTest
520 FilePath parent(temp_dir_.GetPath().AppendASCII("parent")); in TEST_F()
550 FilePath parent(temp_dir_.GetPath().AppendASCII("parent")); in TEST_F()
551 FilePath parent_sibling(temp_dir_.GetPath().AppendASCII("parent_sibling")); in TEST_F()
583 FilePath source_file(temp_dir_.GetPath().AppendASCII("source")); in TEST_F()
609 ASSERT_TRUE(Move(test_file(), temp_dir_.GetPath().AppendASCII("dest"))); in TEST_F()
[all …]
Dos_validation_win_unittest.cc34 temp_dir_ = std::make_unique<ScopedTempDir>().release(); in SetUpTestSuite()
35 ASSERT_TRUE(temp_dir_->CreateUniqueTempDir()); in SetUpTestSuite()
40 ASSERT_TRUE(temp_dir_->Delete()); in TearDownTestSuite()
41 auto temp_dir = base::WrapUnique(temp_dir_); in TearDownTestSuite()
42 temp_dir_ = nullptr; in TearDownTestSuite()
46 static const FilePath& temp_path() { return temp_dir_->GetPath(); } in temp_path()
49 static ScopedTempDir* temp_dir_; member in base::OsValidationTest
53 ScopedTempDir* OsValidationTest::temp_dir_ = nullptr; member in base::OsValidationTest
/external/libbrillo/brillo/
Dosrelease_reader_test.cc18 CHECK(temp_dir_.CreateUniqueTempDir()); in SetUp()
19 osreleased_ = temp_dir_.GetPath().Append("etc").Append("os-release.d"); in SetUp()
20 osrelease_ = temp_dir_.GetPath().Append("etc").Append("os-release"); in SetUp()
26 base::ScopedTempDir temp_dir_; member in brillo::OsReleaseReaderTest
31 store_.LoadTestingOnly(temp_dir_.GetPath()); in TEST_F()
36 store_.LoadTestingOnly(temp_dir_.GetPath()); in TEST_F()
49 store_.LoadTestingOnly(temp_dir_.GetPath()); in TEST_F()
83 store_.LoadTestingOnly(temp_dir_.GetPath()); in TEST_F()
Dfile_utils_test.cc46 CHECK(temp_dir_.CreateUniqueTempDir()); in FileUtilsTest()
47 file_path_ = temp_dir_.GetPath().Append("test.temp"); in FileUtilsTest()
52 base::ScopedTempDir temp_dir_; member in brillo::FileUtilsTest
78 return temp_dir_.GetPath().Append(GetRandomSuffix()); in GetTempName()
97 file_path_ = temp_dir_.GetPath().Append("foo/bar/baz/test.temp"); in TEST_F()
116 base::FilePath symlink_target = temp_dir_.GetPath().Append("target.temp"); in TEST_F()
190 EXPECT_TRUE(base::SetPosixFilePermissions(temp_dir_.GetPath(), 0707)); in TEST_F()
193 MkdirRecursively(temp_dir_.GetPath().Append("a/b/c"), kPermissions755) in TEST_F()
196 EXPECT_TRUE(base::DirectoryExists(temp_dir_.GetPath().Append("a"))); in TEST_F()
197 EXPECT_TRUE(base::DirectoryExists(temp_dir_.GetPath().Append("a/b"))); in TEST_F()
[all …]
/external/cronet/tot/components/metrics/structured/
Dexternal_metrics_unittest.cc63 void SetUp() override { ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); } in SetUp()
71 temp_dir_.GetPath(), one_hour, in Init()
94 CHECK(base::WriteFile(temp_dir_.GetPath().Append(name), in WriteToDisk()
99 CHECK(base::WriteFile(temp_dir_.GetPath().Append(name), str)); in WriteToDisk()
104 base::ScopedTempDir temp_dir_; member in metrics::structured::ExternalMetricsTest
124 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
147 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
156 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
179 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
205 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
[all …]
/external/cronet/stable/components/metrics/structured/
Dexternal_metrics_unittest.cc63 void SetUp() override { ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); } in SetUp()
71 temp_dir_.GetPath(), one_hour, in Init()
94 CHECK(base::WriteFile(temp_dir_.GetPath().Append(name), in WriteToDisk()
99 CHECK(base::WriteFile(temp_dir_.GetPath().Append(name), str)); in WriteToDisk()
104 base::ScopedTempDir temp_dir_; member in metrics::structured::ExternalMetricsTest
124 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
147 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
156 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
179 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
205 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
[all …]
/external/libchrome/base/files/
Dfile_util_unittest.cc260 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp()
263 ScopedTempDir temp_dir_; member in base::__anon94f7b5c70111::FileUtilTest
344 FilePath file_01 = temp_dir_.GetPath().Append(FPL("The file 01.txt")); in TEST_F()
350 FilePath subdir_path = temp_dir_.GetPath().Append(FPL("Level2")); in TEST_F()
365 int64_t computed_size = ComputeDirectorySize(temp_dir_.GetPath()); in TEST_F()
372 FilePath file_a_path = temp_dir_.GetPath().Append(FPL("file_a")); in TEST_F()
373 FilePath dir_path = temp_dir_.GetPath().Append(FPL("dir")); in TEST_F()
414 FilePath base_a = temp_dir_.GetPath().Append(FPL("base_a")); in TEST_F()
457 FilePath base_b = temp_dir_.GetPath().Append(FPL("base_b")); in TEST_F()
525 ToUpperASCII(temp_dir_.GetPath().value().substr(0, 2)); in TEST_F()
[all …]
Dfile_path_watcher_unittest.cc162 ASSERT_TRUE(temp_dir_.CreateUniqueTempDirUnderPath(parent_dir)); in SetUp()
164 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp()
172 return temp_dir_.GetPath().AppendASCII("FilePathWatcherTest"); in test_file()
176 return temp_dir_.GetPath().AppendASCII("FilePathWatcherTest.lnk"); in test_link()
212 ScopedTempDir temp_dir_; member in base::__anon7e44c3830111::FilePathWatcherTest
253 FilePath source_file(temp_dir_.GetPath().AppendASCII("source")); in TEST_F()
339 FilePath dir(temp_dir_.GetPath().AppendASCII("dir")); in TEST_F()
363 FilePath path(temp_dir_.GetPath()); in TEST_F()
376 FilePath sub_path(temp_dir_.GetPath()); in TEST_F()
398 FilePath dir(temp_dir_.GetPath().AppendASCII("dir")); in TEST_F()
[all …]
Dfile_locking_unittest.cc131 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp()
133 temp_dir_.GetPath().AppendASCII(kLockFile), in SetUp()
139 return ::SignalEvent(temp_dir_.GetPath(), signal_file); in SignalEvent()
143 return ::WaitForEventWithTimeout(temp_dir_.GetPath(), signal_file, in WaitForEventOrTimeout()
151 const FilePath temp_path = temp_dir_.GetPath(); in StartChildAndSignalLock()
173 base::ScopedTempDir temp_dir_; member in FileLockingTest
/external/pigweed/pw_stream/
Dstd_file_stream_test.cc78 temp_dir_ = std::filesystem::temp_directory_path(); in TempDir()
79 temp_dir_ /= std::string(prefix) + GetRandomSuffix(); in TempDir()
80 PW_ASSERT(std::filesystem::create_directory(temp_dir_)); in TempDir()
83 ~TempDir() { PW_ASSERT(std::filesystem::remove_all(temp_dir_)); } in ~TempDir()
86 return temp_dir_ / GetRandomSuffix(); in GetTempFileName()
113 std::filesystem::path temp_dir_; member in pw::stream::__anon9b2e11840111::TempDir
121 temp_file_path_ = temp_dir_.GetTempFileName().generic_string(); in SetUp()
131 static TempDir temp_dir_; member in pw::stream::__anon9b2e11840111::StdFileStreamTest
136 TempDir StdFileStreamTest::temp_dir_{"StdFileStreamTest"};
/external/icing/icing/legacy/index/
Dicing-filesystem_test.cc36 temp_dir_ = GetTestTempDir() + "/icing_filesystem"; in SetUp()
38 ASSERT_TRUE(filesystem.CreateDirectoryRecursively(temp_dir_.c_str())); in SetUp()
43 EXPECT_TRUE(filesystem.DeleteDirectoryRecursively(temp_dir_.c_str())); in TearDown()
64 std::string temp_dir_; member in icing::lib::__anon5de52ff30111::IcingFilesystemTest
69 const std::string foo_file = temp_dir_ + "/foo_file"; in TEST_F()
78 const std::string foo_file = temp_dir_ + "/foo_file"; in TEST_F()
94 const std::string foo_file = temp_dir_ + "/foo_file"; in TEST_F()
109 const std::string foo_file_grow = temp_dir_ + "/foo_file_grow"; in TEST_F()
111 temp_dir_ + "/foo_file_grow_with_write"; in TEST_F()
/external/libbrillo/brillo/files/
Dfile_util_test.cc55 CHECK(temp_dir_.CreateUniqueTempDir()) << strerror(errno); in FileTest()
56 sub_dir_path_ = temp_dir_.GetPath().Append(kSubdirName); in FileTest()
59 std::string path = temp_dir_.GetPath().value(); in FileTest()
61 temp_dir_path_.assign(temp_dir_.GetPath().value().begin(), in FileTest()
62 temp_dir_.GetPath().value().end()); in FileTest()
86 symlink_file_path_ = temp_dir_.GetPath().Append(kSymbolicFileName); in SetupSymlinks()
87 symlink_dir_path_ = temp_dir_.GetPath().Append(kSymbolicDirName); in SetupSymlinks()
93 if (!base::CreateSymbolicLink(temp_dir_.GetPath(), symlink_dir_path_)) { in SetupSymlinks()
133 return temp_dir_.GetPath().Append(GetRandomSuffix()); in GetTempName()
144 EXPECT_EQ(GetFDPath(root_.get()), temp_dir_.GetPath()); in TEST_F()
[all …]
/external/pigweed/pw_transfer/
Datomic_file_transfer_handler_test.cc39 temp_dir_ = std::filesystem::temp_directory_path(); in TempDir()
40 temp_dir_ /= std::string(prefix) + GetRandomSuffix(); in TempDir()
41 PW_ASSERT(std::filesystem::create_directory(temp_dir_)); in TempDir()
44 ~TempDir() { PW_ASSERT(std::filesystem::remove_all(temp_dir_)); } in ~TempDir()
47 return temp_dir_ / GetRandomSuffix(); in GetTempFileName()
74 std::filesystem::path temp_dir_; member in pw::transfer::__anon6b7cddc50111::TempDir
79 TempDir temp_dir_{"atomic_file_transfer_handler_test"}; member in pw::transfer::__anon6b7cddc50111::AtomicFileTransferHandlerTest
80 std::string test_data_location_pass_ = temp_dir_.GetTempFileName();
/external/cronet/stable/base/apple/
Dbackup_util_unittest.mm28 ScopedTempDir temp_dir_;
29 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
30 FilePath excluded_file_path = temp_dir_.GetPath().Append("excluded");
43 ScopedTempDir temp_dir_;
44 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
45 FilePath excluded_file_path = temp_dir_.GetPath().Append("excluded");
/external/cronet/tot/base/apple/
Dbackup_util_unittest.mm28 ScopedTempDir temp_dir_;
29 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
30 FilePath excluded_file_path = temp_dir_.GetPath().Append("excluded");
43 ScopedTempDir temp_dir_;
44 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
45 FilePath excluded_file_path = temp_dir_.GetPath().Append("excluded");
/external/icing/icing/file/
Dfilesystem_test.cc83 temp_dir_ = GetTestTempDir() + "/icing_filesystem"; in SetUp()
85 ASSERT_TRUE(filesystem.CreateDirectoryRecursively(temp_dir_.c_str())); in SetUp()
90 EXPECT_TRUE(filesystem.DeleteDirectoryRecursively(temp_dir_.c_str())); in TearDown()
111 std::string temp_dir_; member in icing::lib::FilesystemTest
150 const std::string foo_str = temp_dir_ + "/foo"; in TEST_F()
179 const std::string foo_file = temp_dir_ + "/foo_file"; in TEST_F()
188 const std::string foo_file = temp_dir_ + "/foo_file"; in TEST_F()
204 const std::string foo_dir = temp_dir_ + "/foo"; in TEST_F()
248 const std::string foo_dir = temp_dir_ + "/foo"; in TEST_F()
274 const std::string foo_dir = temp_dir_ + "/foo"; in TEST_F()
[all …]
/external/cronet/stable/base/win/
Dshortcut_unittest.cc31 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp()
34 link_file_ = temp_dir_.GetPath().Append(FILE_PATH_LITERAL("My Link.lnk")); in SetUp()
39 temp_dir_.GetPath().Append(FILE_PATH_LITERAL("Target 1.txt"))); in SetUp()
43 link_properties_.set_working_dir(temp_dir_.GetPath()); in SetUp()
62 temp_dir_.GetPath().Append(FILE_PATH_LITERAL("Target 2.txt"))); in SetUp()
66 CreateTemporaryFileInDir(temp_dir_.GetPath(), &icon_path_2); in SetUp()
80 ScopedTempDir temp_dir_; member in base::win::__anond82aa2a10111::ShortcutTest
97 FilePath file_1(temp_dir_.GetPath().Append(FILE_PATH_LITERAL("Link1.lnk"))); in TEST_F()
119 FilePath file_2(temp_dir_.GetPath().Append(FILE_PATH_LITERAL("Link2.lnk"))); in TEST_F()
/external/cronet/tot/base/win/
Dshortcut_unittest.cc31 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp()
34 link_file_ = temp_dir_.GetPath().Append(FILE_PATH_LITERAL("My Link.lnk")); in SetUp()
39 temp_dir_.GetPath().Append(FILE_PATH_LITERAL("Target 1.txt"))); in SetUp()
43 link_properties_.set_working_dir(temp_dir_.GetPath()); in SetUp()
62 temp_dir_.GetPath().Append(FILE_PATH_LITERAL("Target 2.txt"))); in SetUp()
66 CreateTemporaryFileInDir(temp_dir_.GetPath(), &icon_path_2); in SetUp()
80 ScopedTempDir temp_dir_; member in base::win::__anonc44960bd0111::ShortcutTest
97 FilePath file_1(temp_dir_.GetPath().Append(FILE_PATH_LITERAL("Link1.lnk"))); in TEST_F()
119 FilePath file_2(temp_dir_.GetPath().Append(FILE_PATH_LITERAL("Link2.lnk"))); in TEST_F()
/external/libchrome/base/metrics/
Dpersistent_histogram_storage_unittest.cc33 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp()
39 const FilePath& temp_dir_path() { return temp_dir_.GetPath(); } in temp_dir_path()
45 ScopedTempDir temp_dir_; member in base::PersistentHistogramStorageTest

123456