/external/libbrillo/brillo/ |
D | osrelease_reader_test.cc | 18 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()
|
D | file_utils_test.cc | 46 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 …]
|
D | key_value_store_test.cc | 71 base::ScopedTempDir temp_dir_; in TEST_F() local 72 CHECK(temp_dir_.CreateUniqueTempDir()); in TEST_F() 73 base::FilePath temp_file_ = temp_dir_.GetPath().Append("temp.conf"); in TEST_F() 75 temp_dir_.GetPath().Append("saved_temp.conf"); in TEST_F()
|
D | process_test.cc | 108 CHECK(temp_dir_.CreateUniqueTempDir()); in SetUp() 109 output_file_ = temp_dir_.GetPath().Append("fork_out").value(); in SetUp() 127 base::ScopedTempDir temp_dir_; member in brillo::ProcessTest 346 FilePath pid_path = temp_dir_.GetPath().Append("pid"); in TEST_F()
|
/external/libchrome/base/files/ |
D | file_util_unittest.cc | 260 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp() 263 ScopedTempDir temp_dir_; member in base::__anon075779580111::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 …]
|
D | file_path_watcher_unittest.cc | 162 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::__anona43388140111::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 …]
|
D | file_locking_unittest.cc | 131 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
|
D | important_file_writer_unittest.cc | 120 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp() 121 file_ = temp_dir_.GetPath().AppendASCII("test-file"); in SetUp() 130 ScopedTempDir temp_dir_; member in base::ImportantFileWriterTest
|
/external/libbrillo/brillo/files/ |
D | file_util_test.cc | 55 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 …]
|
D | safe_fd_test.cc | 228 SafeFD::SafeFDResult dir = root_.OpenExistingDir(temp_dir_.GetPath()); in TEST_F() 234 SafeFD::SafeFDResult dir = SafeFD().OpenExistingDir(temp_dir_.GetPath()); in TEST_F() 369 std::tie(dir, err) = root_.OpenExistingDir(temp_dir_.GetPath()); in TEST_F() 424 SafeFD::SafeFDResult dir = root_.OpenExistingDir(temp_dir_.GetPath()); in TEST_F() 447 SafeFD::SafeFDResult dir = root_.OpenExistingDir(temp_dir_.GetPath()); in TEST_F() 463 SafeFD::SafeFDResult dir = root_.OpenExistingDir(temp_dir_.GetPath()); in TEST_F() 486 SafeFD::SafeFDResult dir = root_.OpenExistingDir(temp_dir_.GetPath()); in TEST_F() 535 SafeFD::SafeFDResult dir = root_.OpenExistingDir(temp_dir_.GetPath()); in TEST_F() 544 SafeFD::SafeFDResult dir = root_.OpenExistingDir(temp_dir_.GetPath()); in TEST_F() 558 std::tie(dir, err) = root_.OpenExistingDir(temp_dir_.GetPath()); in TEST_F() [all …]
|
D | file_util_test.h | 47 base::ScopedTempDir temp_dir_; variable
|
/external/icing/icing/file/ |
D | filesystem_test.cc | 83 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/libchrome/base/metrics/ |
D | persistent_histogram_storage_unittest.cc | 33 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
|
/external/libchrome/crypto/ |
D | scoped_test_nss_db.cc | 23 if (!temp_dir_.CreateUniqueTempDir()) in ScopedTestNSSDB() 27 slot_ = OpenSoftwareNSSDB(temp_dir_.GetPath(), kTestDescription); in ScopedTestNSSDB() 58 if (!temp_dir_.Delete()) in ~ScopedTestNSSDB()
|
D | scoped_test_nss_chromeos_user.cc | 16 if (!temp_dir_.CreateUniqueTempDir()) in ScopedTestNSSChromeOSUser() 21 InitializeNSSForChromeOSUser(username_hash, temp_dir_.GetPath()); in ScopedTestNSSChromeOSUser()
|
D | scoped_test_nss_db.h | 27 base::ScopedTempDir temp_dir_;
|
D | scoped_test_nss_chromeos_user.h | 35 base::ScopedTempDir temp_dir_; variable
|
/external/autotest/client/site_tests/security_Libcontainer/src/ |
D | libcontainer_target_unittest.cc | 67 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); in SetUp() 71 temp_dir_.GetPath(), FILE_PATH_LITERAL("rootfs"), &rootfs)); in SetUp() 91 ASSERT_TRUE(temp_dir_.Delete()); in TearDown() 102 base::ScopedTempDir temp_dir_; member in libcontainer::LibcontainerTargetTest
|
/external/libchrome/base/test/ |
D | scoped_path_override.cc | 13 bool result = temp_dir_.CreateUniqueTempDir(); in ScopedPathOverride() 15 result = PathService::Override(key, temp_dir_.GetPath()); in ScopedPathOverride()
|
D | scoped_path_override.h | 36 ScopedTempDir temp_dir_; variable
|
/external/google-breakpad/src/common/linux/tests/ |
D | crash_generator.cc | 117 return temp_dir_.path() + "/core"; in GetCoreFilePath() 121 return temp_dir_.path() + "/proc"; in GetDirectoryOfProcFilesCopy() 194 if (chdir(temp_dir_.path().c_str()) == -1) { in CreateChildCrash()
|
D | crash_generator.h | 105 AutoTempDir temp_dir_; variable
|
/external/libchrome/mojo/public/cpp/platform/tests/ |
D | platform_handle_unittest.cc | 104 CHECK(temp_dir_.CreateUniqueTempDir()); in SetUpFile() 105 base::File test_file(temp_dir_.GetPath().AppendASCII("test"), in SetUpFile() 189 base::ScopedTempDir temp_dir_; member in mojo::__anon17e2c3f90111::PlatformHandleTest
|
/external/libchrome/base/json/ |
D | json_value_serializer_unittest.cc | 400 void SetUp() override { ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); } in SetUp() 402 ScopedTempDir temp_dir_; member in base::__anonae5644310111::JSONFileValueSerializerTest 436 temp_dir_.GetPath().AppendASCII("test_output.js"); in TEST_F() 462 temp_dir_.GetPath().AppendASCII("test_output.json"); in TEST_F()
|
/external/libchrome/mojo/public/cpp/system/tests/ |
D | file_data_pipe_producer_unittest.cc | 86 FileDataPipeProducerTest() { CHECK(temp_dir_.CreateUniqueTempDir()); } in FileDataPipeProducerTest() 92 base::FilePath temp_file_path = temp_dir_.GetPath().AppendASCII( in CreateTempFileWithContents() 137 base::ScopedTempDir temp_dir_; member in mojo::__anon8747ff720111::FileDataPipeProducerTest
|