Home
last modified time | relevance | path

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

12

/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 …]
Dkey_value_store_test.cc71 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()
Dprocess_test.cc108 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/
Dfile_util_unittest.cc260 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 …]
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::__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 …]
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
Dimportant_file_writer_unittest.cc120 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/
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 …]
Dsafe_fd_test.cc228 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 …]
Dfile_util_test.h47 base::ScopedTempDir temp_dir_; variable
/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/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
/external/libchrome/crypto/
Dscoped_test_nss_db.cc23 if (!temp_dir_.CreateUniqueTempDir()) in ScopedTestNSSDB()
27 slot_ = OpenSoftwareNSSDB(temp_dir_.GetPath(), kTestDescription); in ScopedTestNSSDB()
58 if (!temp_dir_.Delete()) in ~ScopedTestNSSDB()
Dscoped_test_nss_chromeos_user.cc16 if (!temp_dir_.CreateUniqueTempDir()) in ScopedTestNSSChromeOSUser()
21 InitializeNSSForChromeOSUser(username_hash, temp_dir_.GetPath()); in ScopedTestNSSChromeOSUser()
Dscoped_test_nss_db.h27 base::ScopedTempDir temp_dir_;
Dscoped_test_nss_chromeos_user.h35 base::ScopedTempDir temp_dir_; variable
/external/autotest/client/site_tests/security_Libcontainer/src/
Dlibcontainer_target_unittest.cc67 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/
Dscoped_path_override.cc13 bool result = temp_dir_.CreateUniqueTempDir(); in ScopedPathOverride()
15 result = PathService::Override(key, temp_dir_.GetPath()); in ScopedPathOverride()
Dscoped_path_override.h36 ScopedTempDir temp_dir_; variable
/external/google-breakpad/src/common/linux/tests/
Dcrash_generator.cc117 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()
Dcrash_generator.h105 AutoTempDir temp_dir_; variable
/external/libchrome/mojo/public/cpp/platform/tests/
Dplatform_handle_unittest.cc104 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/
Djson_value_serializer_unittest.cc400 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/
Dfile_data_pipe_producer_unittest.cc86 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

12