/external/libchrome/base/files/ |
D | file_enumerator_unittest.cc | 68 RunEnumerator(temp_dir.GetPath(), true, in TEST() 79 const FilePath& path = temp_dir.GetPath(); in TEST() 85 temp_dir.GetPath(), true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST() 94 const FilePath& path = temp_dir.GetPath(); in TEST() 108 const FilePath& path = temp_dir.GetPath(); in TEST() 127 const FilePath& path = temp_dir.GetPath(); in TEST() 156 const FilePath& path = temp_dir.GetPath(); in TEST() 172 const FilePath& path = temp_dir.GetPath(); in TEST() 180 EXPECT_THAT(files, ElementsAre(temp_subdir.GetPath())); in TEST() 188 const FilePath& path = temp_dir.GetPath(); in TEST() [all …]
|
D | file_util_unittest.cc | 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() 599 FilePath long_test_dir = temp_dir_.GetPath().Append(kLongDirName); in TEST_F() 646 FilePath link_from = temp_dir_.GetPath().Append(FPL("from_file")); in TEST_F() [all …]
|
D | file_path_watcher_unittest.cc | 172 return temp_dir_.GetPath().AppendASCII("FilePathWatcherTest"); in test_file() 176 return temp_dir_.GetPath().AppendASCII("FilePathWatcherTest.lnk"); in test_link() 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() 427 FilePath dir(temp_dir_.GetPath().AppendASCII("dir")); in TEST_F() 460 FilePath dir(temp_dir_.GetPath().AppendASCII("dir")); in TEST_F() 461 FilePath dest(temp_dir_.GetPath().AppendASCII("dest")); in TEST_F() [all …]
|
D | file_unittest.cc | 24 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); in TEST() 98 file_path = temp_dir.GetPath().AppendASCII("create_file_2"); in TEST() 113 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); in TEST() 123 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file"); in TEST() 141 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); in TEST() 168 FilePath file_path = temp_dir.GetPath().AppendASCII("read_write_file"); in TEST() 252 FilePath nonexistent_path(temp_dir.GetPath().AppendASCII("nonexistent")); in TEST() 263 FilePath file_path = temp_dir.GetPath().AppendASCII("append_file"); in TEST() 315 FilePath file_path = temp_dir.GetPath().AppendASCII("truncate_file"); in TEST() 374 File file(temp_dir.GetPath().AppendASCII("touch_get_info_file"), [all …]
|
D | scoped_temp_dir_unittest.cc | 56 test_path = dir.GetPath(); in TEST() 75 test_path = dir.GetPath(); in TEST() 102 base::File file(dir.GetPath().Append(FILE_PATH_LITERAL("temp")), in TEST() 107 EXPECT_FALSE(dir.GetPath().empty()); // We should still have a valid path. in TEST()
|
/external/llvm-project/lldb/source/Target/ |
D | ModuleCache.cpp | 69 return fs::create_directories(dir_path.GetPath(), true, fs::perms::owner_all); in MakeDirectory() 78 return FileSpec(module_file_spec.GetPath() + kSymFileExtension); in GetSymbolFileSpec() 103 if (status(sysroot_module_path_spec.GetPath(), st)) in DeleteExistingModule() 110 llvm::sys::fs::remove_directories(module_spec_dir.GetPath()); in DeleteExistingModule() 120 llvm::sys::fs::remove(sysroot_module_path_spec.GetPath()); in DecrementRefExistingModule() 123 llvm::sys::fs::remove(symfile_spec.GetPath()); in DecrementRefExistingModule() 133 platform_module_spec.GetPath().c_str()); in CreateHostSysRootModuleLink() 146 return llvm::sys::fs::create_hard_link(local_module_spec.GetPath(), in CreateHostSysRootModuleLink() 147 sysroot_module_path_spec.GetPath()); in CreateHostSysRootModuleLink() 185 llvm::sys::fs::remove(m_file_spec.GetPath()); in Delete() [all …]
|
/external/libbrillo/policy/tests/ |
D | resilient_policy_util_test.cc | 34 base::FilePath file0(temp_dir.GetPath().Append("policy")); in TEST() 35 base::FilePath file1(temp_dir.GetPath().Append("policy.12")); in TEST() 36 base::FilePath file2(temp_dir.GetPath().Append("policy.2")); in TEST() 37 base::FilePath file3(temp_dir.GetPath().Append("policy.30")); in TEST() 38 base::FilePath invalid(temp_dir.GetPath().Append("policy_4")); in TEST() 46 temp_dir.GetPath().Append(kDefaultResilientPolicyFilePath)); in TEST()
|
D | policy_util_test.cc | 23 base::FilePath invalid_policy_data_path(temp_dir.GetPath().Append("policy")); in TEST() 24 base::FilePath inexistent_file(temp_dir.GetPath().Append("policy.1")); in TEST() 25 base::FilePath good_policy_data_path(temp_dir.GetPath().Append("policy.2")); in TEST()
|
/external/llvm-project/lldb/source/Plugins/Platform/MacOSX/ |
D | PlatformDarwinKernel.cpp | 268 strm.Printf("[%d] %s\n", i, m_search_directories[i].GetPath().c_str()); in GetStatus() 276 m_search_directories_no_recursing[i].GetPath().c_str()); in GetStatus() 296 LLDB_LOGF(log, "%s", pos.second.GetPath().c_str()); in GetStatus() 301 LLDB_LOGF(log, "%s", pos.second.GetPath().c_str()); in GetStatus() 305 LLDB_LOGF(log, "%s", fs.GetPath().c_str()); in GetStatus() 309 LLDB_LOGF(log, "%s", fs.GetPath().c_str()); in GetStatus() 313 LLDB_LOGF(log, "%s", fs.GetPath().c_str()); in GetStatus() 317 LLDB_LOGF(log, "%s", fs.GetPath().c_str()); in GetStatus() 334 std::string developer_dir = HostInfo::GetXcodeDeveloperDirectory().GetPath(); in CollectKextAndKernelDirectories() 435 AddRootSubdirsToSearchPaths(thisp, file_spec.GetPath()); in FindKDKandSDKDirectoriesInDirectory() [all …]
|
D | PlatformRemoteDarwinDevice.cpp | 64 sdk_dir_info.directory.GetPath().c_str()); in GetStatus() 118 resolved_module_spec.GetFileSpec().GetPath().c_str(), in ResolveExecutable() 123 resolved_module_spec.GetFileSpec().GetPath().c_str()); in ResolveExecutable() 129 resolved_module_spec.GetFileSpec().GetPath().c_str()); in ResolveExecutable() 195 sdk_symbols_symlink_fspec.GetPath().c_str()); in UpdateSDKDirectoryInfosIfNeeded() 212 local_sdk_cache.GetPath().c_str()); in UpdateSDKDirectoryInfosIfNeeded() 215 if (local_sdk_cache.GetPath(path, sizeof(path))) { in UpdateSDKDirectoryInfosIfNeeded() 229 m_sdk_directory_infos[i].directory.GetPath().c_str()); in UpdateSDKDirectoryInfosIfNeeded() 253 sdk_symbols_symlink_fspec.GetPath().c_str()); in UpdateSDKDirectoryInfosIfNeeded() 342 m_device_support_directory = fspec.GetPath(); in GetDeviceSupportDirectory() [all …]
|
/external/libbrillo/brillo/ |
D | osrelease_reader_test.cc | 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() 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 | 47 file_path_ = temp_dir_.GetPath().Append("test.temp"); in 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() 198 EXPECT_TRUE(base::DirectoryExists(temp_dir_.GetPath().Append("a/b/c"))); in TEST_F() 203 base::GetPosixFilePermissions(temp_dir_.GetPath().Append("a"), &mode)); in TEST_F() [all …]
|
D | scoped_umask_test.cc | 42 CheckFilePermissions(tmpdir.GetPath().AppendASCII("file1.txt"), in TEST() 48 CheckFilePermissions(tmpdir.GetPath().AppendASCII("file2.txt"), in TEST() 53 CheckFilePermissions(tmpdir.GetPath().AppendASCII("file3.txt"), in TEST()
|
/external/llvm-project/lldb/source/Host/common/ |
D | FileSystem.cpp | 61 llvm::vfs::getRealFileSystem()->getBufferForFile(mapping.GetPath()); in Initialize() 67 nullptr, mapping.GetPath()), in Initialize() 95 return DirBegin(file_spec.GetPath(), ec); in DirBegin() 108 return GetStatus(file_spec.GetPath()); in GetStatus() 119 return GetModificationTime(file_spec.GetPath()); in GetModificationTime() 132 return GetByteSize(file_spec.GetPath()); in GetByteSize() 143 return GetPermissions(file_spec.GetPath()); in GetPermissions() 150 return GetPermissions(file_spec.GetPath(), ec); in GetPermissions() 171 return file_spec && Exists(file_spec.GetPath()); in Exists() 179 return file_spec && Readable(file_spec.GetPath()); in Readable() [all …]
|
/external/libbrillo/brillo/files/ |
D | file_util_test.cc | 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() 156 std::tie(dir, err) = root_.OpenExistingDir(temp_dir_.GetPath()); in TEST_F() [all …]
|
/external/llvm-project/lldb/source/Utility/ |
D | FileSpec.cpp | 325 std::string path{GetPath(true)}; in Dump() 348 size_t FileSpec::GetPath(char *path, size_t path_max_len, in GetPath() function in FileSpec 353 std::string result = GetPath(denormalize); in GetPath() 358 std::string FileSpec::GetPath(bool denormalize) const { in GetPath() function in FileSpec 360 GetPath(result, denormalize); in GetPath() 365 return ConstString{GetPath(denormalize)}.AsCString(nullptr); in GetCString() 368 void FileSpec::GetPath(llvm::SmallVectorImpl<char> &path, in GetPath() function in FileSpec 408 GetPath(current_path, false); in CopyByRemovingLastPathComponent() 417 GetPath(current_path, false); in GetLastPathComponent() 424 GetPath(current_path, false); in PrependPathComponent() [all …]
|
D | Reproducer.cpp | 58 auto ec = sys::fs::create_directory(root->GetPath()); in Initialize() 167 file_spec.GetPath(path, false); in MakeAbsolute() 213 llvm::sys::fs::remove_directories(m_root.GetPath()); in Discard() 227 auto strm = std::make_unique<raw_fd_ostream>(index.GetPath(), EC, in AddProvidersToIndex() 250 auto error_or_file = MemoryBuffer::getFile(index.GetPath()); in LoadIndex() 285 vfs::getRealFileSystem()->getBufferForFile(vfs_mapping.GetPath()); in Verify() 292 std::move(buffer.get()), nullptr, vfs_mapping.GetPath()); in Verify() 388 reproducer_root.CopyByAppendingPathComponent("files.txt").GetPath(); in Finalize() 390 reproducer_root.CopyByAppendingPathComponent("dirs.txt").GetPath(); in Finalize() 393 reproducer_root.CopyByAppendingPathComponent("root").GetPath(), in Finalize() [all …]
|
D | ReproducerProvider.cpp | 42 llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_Text); in Keep() 106 files.push_back(recorder->GetFilename().GetPath()); in Keep() 111 llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_Text); in Keep() 149 m_symbol_files.emplace_back(uuid->GetAsString(), module_file.GetPath(), in AddSymbolFile() 150 symbol_file.GetPath()); in AddSymbolFile() 156 llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_Text); in Keep() 178 auto error_or_file = llvm::MemoryBuffer::getFile(file.GetPath()); in SymbolFileLoader()
|
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/ |
D | TestCredentials.cs | 43 return GetPath("data/ca.pem"); 51 return GetPath("data/server1.pem"); 59 return GetPath("data/server1.key"); 76 private static string GetPath(string relativePath) in GetPath() method in Grpc.IntegrationTesting.TestCredentials
|
/external/llvm-project/lldb/unittests/Target/ |
D | PathMappingListTest.cpp | 35 SCOPED_TRACE(match.original.GetPath() + " -> " + match.remapped.GetPath()); in TestPathMappings() 36 std::string orig_normalized = match.original.GetPath(); in TestPathMappings() 38 map.RemapPath(ConstString(match.original.GetPath()), actual_remapped)); in TestPathMappings() 42 std::string unmapped_path = unmapped_spec.GetPath(); in TestPathMappings()
|
/external/llvm-project/lldb/source/Plugins/SymbolVendor/MacOSX/ |
D | SymbolVendorMacOSX.cpp | 109 module_sp->GetFileSpec().GetPath().c_str()); in CreateInstance() 121 module_sp->GetFileSpec().GetPath().c_str()); in CreateInstance() 147 std::string dsym_root = dsym_fspec.GetPath(); in CreateInstance() 244 DBGSourcePath = resolved_source_path.GetPath(); in CreateInstance() 262 ConstString(build_path.GetPath().c_str()), in CreateInstance() 263 ConstString(source_path.GetPath().c_str()), in CreateInstance() 281 DBGSourcePath = resolved_source_path.GetPath(); in CreateInstance()
|
/external/libchrome/base/ |
D | path_service_unittest.cc | 134 FilePath fake_cache_dir(temp_dir.GetPath().AppendASCII("cache")); in TEST_F() 140 FilePath fake_cache_dir2(temp_dir.GetPath().AppendASCII("cache2")); in TEST_F() 155 MakeAbsoluteFilePath(temp_dir.GetPath()).AppendASCII("non_existent")); in TEST_F() 186 FilePath fake_cache_dir1(temp_dir.GetPath().AppendASCII("1")); in TEST_F() 191 FilePath fake_cache_dir2(temp_dir.GetPath().AppendASCII("2")); in TEST_F() 216 EXPECT_TRUE(PathService::Override(DIR_TEMP, temp_dir.GetPath())); in TEST_F()
|
/external/libbrillo/brillo/http/ |
D | http_form_data_test.cc | 46 base::FilePath file_name = dir.GetPath().Append("sample.txt"); in TEST() 74 base::FilePath filename1 = dir.GetPath().Append("sample.txt"); in TEST() 79 base::FilePath filename2 = dir.GetPath().Append("test.bin"); in TEST() 149 base::FilePath filename1 = dir.GetPath().Append("sample.txt"); in TEST() 154 base::FilePath filename2 = dir.GetPath().Append("test.bin"); in TEST()
|
/external/llvm-project/lldb/source/API/ |
D | SBFileSpec.cpp | 145 uint32_t SBFileSpec::GetPath(char *dst_path, size_t dst_len) const { in GetPath() function in SBFileSpec 146 LLDB_RECORD_CHAR_PTR_METHOD_CONST(uint32_t, SBFileSpec, GetPath, in GetPath() 149 uint32_t result = m_opaque_up->GetPath(dst_path, dst_len); in GetPath() 180 if (m_opaque_up->GetPath(path, sizeof(path))) in GetDescription() 219 LLDB_REGISTER_CHAR_PTR_METHOD_CONST(uint32_t, SBFileSpec, GetPath); in RegisterMethods()
|
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
D | ClangHost.cpp | 51 std::string raw_path = lldb_shlib_spec.GetPath(); in DefaultComputeClangResourceDirectory() 89 std::string raw_path = lldb_shlib_spec.GetPath(); in ComputeClangResourceDirectory() 144 raw_path = lldb_shlib_spec.GetPath(); in ComputeClangResourceDirectory() 162 g_cached_resource_dir.GetPath().c_str()); in GetClangResourceDir()
|