/third_party/googletest/googletest/test/ |
D | googletest-filepath-test.cc | 65 FilePath filepath(path); in _rmdir() 76 const FilePath original_dir = FilePath::GetCurrentDir(); 80 const FilePath cwd = FilePath::GetCurrentDir(); 100 EXPECT_TRUE(FilePath("").IsEmpty()); in TEST() 104 EXPECT_FALSE(FilePath("a").IsEmpty()); in TEST() 105 EXPECT_FALSE(FilePath(".").IsEmpty()); in TEST() 106 EXPECT_FALSE(FilePath("a/b").IsEmpty()); in TEST() 107 EXPECT_FALSE(FilePath("a\\b\\").IsEmpty()); in TEST() 112 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST() 117 EXPECT_EQ("afile", FilePath("afile").RemoveDirectoryName().string()); in TEST() [all …]
|
D | googletest-options-test.cc | 59 FilePath GetAbsolutePathOf(const FilePath& relative_path) { in GetAbsolutePathOf() 60 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path); in GetAbsolutePathOf() 77 EXPECT_EQ(GetAbsolutePathOf(FilePath("test_detail.xml")).string(), in TEST() 83 EXPECT_EQ(GetAbsolutePathOf(FilePath("filename.abc")).string(), in TEST() 90 GetAbsolutePathOf(FilePath(std::string("path") + GTEST_PATH_SEP_ + in TEST() 131 original_working_dir_ = FilePath::GetCurrentDir(); in SetUp() 135 FilePath::GetCurrentDir().string()); in SetUp() 142 FilePath original_working_dir_; 148 FilePath::ConcatPaths(original_working_dir_, FilePath("test_detail.xml")) in TEST_F() 156 FilePath::ConcatPaths(original_working_dir_, FilePath("test_detail.xml")) in TEST_F() [all …]
|
/third_party/gn/src/base/files/ |
D | file_util.h | 45 FilePath MakeAbsoluteFilePath(const FilePath& input); 52 int64_t ComputeDirectorySize(const FilePath& root_path); 66 bool DeleteFile(const FilePath& path, bool recursive); 74 bool DeleteFileAfterReboot(const FilePath& path); 83 bool ReplaceFile(const FilePath& from_path, 84 const FilePath& to_path, 89 bool PathExists(const FilePath& path); 92 bool PathIsWritable(const FilePath& path); 95 bool DirectoryExists(const FilePath& path); 99 bool ContentsEqual(const FilePath& filename1, const FilePath& filename2); [all …]
|
D | file_path.cc | 31 using StringType = FilePath::StringType; 32 using StringViewType = FilePath::StringViewType; 39 const FilePath::CharType kStringTerminator = FILE_PATH_LITERAL('\0'); 84 FilePath::IsSeparator(path[letter + 1]); in IsPathAbsolute() 87 return path.length() > 1 && FilePath::IsSeparator(path[0]) && in IsPathAbsolute() 88 FilePath::IsSeparator(path[1]); in IsPathAbsolute() 91 return path.length() > 0 && FilePath::IsSeparator(path[0]); in IsPathAbsolute() 97 if (!FilePath::IsSeparator(*it)) in AreAllSeparators() 109 if (path == FilePath::kCurrentDirectory || path == FilePath::kParentDirectory) in FinalExtensionSeparatorPosition() 112 return path.rfind(FilePath::kExtensionSeparator); in FinalExtensionSeparatorPosition() [all …]
|
D | file_path.h | 142 class FilePath { 176 FilePath(); 177 FilePath(const FilePath& that); 178 explicit FilePath(StringViewType path); 179 ~FilePath(); 180 FilePath& operator=(const FilePath& that); 184 FilePath(FilePath&& that) noexcept; 187 FilePath& operator=(FilePath&& that); 189 bool operator==(const FilePath& that) const; 191 bool operator!=(const FilePath& that) const; [all …]
|
D | file_util_posix.cc | 81 bool VerifySpecificPathControlledByUser(const FilePath& path, in VerifySpecificPathControlledByUser() 162 FilePath MakeAbsoluteFilePath(const FilePath& input) { in MakeAbsoluteFilePath() 165 return FilePath(); in MakeAbsoluteFilePath() 166 return FilePath(full_path); in MakeAbsoluteFilePath() 173 bool DeleteFile(const FilePath& path, bool recursive) { in DeleteFile() 191 for (FilePath current = traversal.Next(); !current.empty(); in DeleteFile() 200 FilePath dir = FilePath(directories.top()); in DeleteFile() 207 bool ReplaceFile(const FilePath& from_path, in ReplaceFile() 208 const FilePath& to_path, in ReplaceFile() 262 bool PathExists(const FilePath& path) { in PathExists() [all …]
|
D | file_util_win.cc | 56 DWORD DeleteFileRecursive(const FilePath& path, in DeleteFileRecursive() 57 const FilePath::StringType& pattern, in DeleteFileRecursive() 63 for (FilePath current = traversal.Next(); !current.empty(); in DeleteFileRecursive() 101 DWORD DoDeleteFile(const FilePath& path, bool recursive) { in DoDeleteFile() 110 FilePath::StringType::npos) { in DoDeleteFile() 193 FilePath MakeAbsoluteFilePath(const FilePath& input) { in MakeAbsoluteFilePath() 196 return FilePath(); in MakeAbsoluteFilePath() 197 return FilePath(file_path); in MakeAbsoluteFilePath() 200 bool DeleteFile(const FilePath& path, bool recursive) { in DeleteFile() 213 bool DeleteFileAfterReboot(const FilePath& path) { in DeleteFileAfterReboot() [all …]
|
/third_party/vk-gl-cts/framework/delibs/decpp/ |
D | deFilePath.cpp | 45 const std::string FilePath::separator = "\\"; 47 const std::string FilePath::separator = "/"; 50 FilePath::FilePath (const std::vector<std::string>& components) in FilePath() function in de::FilePath 60 void FilePath::split (std::vector<std::string>& components) const in split() 89 FilePath FilePath::join (const std::vector<std::string>& components) in join() 91 return FilePath(components); in join() 94 FilePath& FilePath::normalize (void) in normalize() 134 FilePath FilePath::normalize (const FilePath& path) in normalize() 136 return FilePath(path).normalize(); in normalize() 139 std::string FilePath::getBaseName (void) const in getBaseName() [all …]
|
D | deFilePath.hpp | 36 class FilePath class 50 FilePath (void); 51 FilePath (const std::string& path); 52 FilePath (const char* path); 53 FilePath (const std::vector<std::string>& components); 54 ~FilePath (void); 64 static FilePath join (const FilePath& a, const FilePath& b); 65 FilePath& join (const FilePath& b); 67 static FilePath normalize (const FilePath& path); 68 FilePath& normalize (void); [all …]
|
/third_party/mesa3d/src/gtest/src/ |
D | gtest-filepath.cc | 94 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 99 return FilePath(kCurrentDirectoryString); in GetCurrentDir() 102 return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd); in GetCurrentDir() 110 return FilePath(result == nullptr ? kCurrentDirectoryString : cwd); in GetCurrentDir() 112 return FilePath(result == nullptr ? "" : cwd); in GetCurrentDir() 120 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 123 return FilePath(pathname_.substr( in RemoveExtension() 132 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator() 151 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() 153 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName() [all …]
|
/third_party/googletest/googletest/src/ |
D | gtest-filepath.cc | 98 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 104 return FilePath(kCurrentDirectoryString); in GetCurrentDir() 107 return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd); in GetCurrentDir() 115 return FilePath(result == nullptr ? kCurrentDirectoryString : cwd); in GetCurrentDir() 117 return FilePath(result == nullptr ? "" : cwd); in GetCurrentDir() 125 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 128 return FilePath( in RemoveExtension() 137 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator() 150 size_t FilePath::CalculateRootLength() const { in CalculateRootLength() 195 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() [all …]
|
/third_party/node/deps/googletest/src/ |
D | gtest-filepath.cc | 101 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 109 return FilePath(kCurrentDirectoryString); in GetCurrentDir() 112 return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd); in GetCurrentDir() 120 return FilePath(result == nullptr ? kCurrentDirectoryString : cwd); in GetCurrentDir() 122 return FilePath(result == nullptr ? "" : cwd); in GetCurrentDir() 130 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 133 return FilePath( in RemoveExtension() 142 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator() 155 size_t FilePath::CalculateRootLength() const { in CalculateRootLength() 199 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() [all …]
|
/third_party/skia/third_party/externals/zlib/google/ |
D | zip.h | 34 DirectoryContentEntry(const base::FilePath& path, bool is_directory) in DirectoryContentEntry() 36 base::FilePath path; 43 const std::vector<base::FilePath>& paths) = 0; 45 virtual bool DirectoryExists(const base::FilePath& path) = 0; 47 const base::FilePath& dir_path) = 0; 48 virtual base::Time GetLastModifiedTime(const base::FilePath& path) = 0; 53 ZipParams(const base::FilePath& src_dir, const base::FilePath& dest_file); 56 ZipParams(const base::FilePath& src_dir, int dest_fd); 61 const base::FilePath& src_dir() const { return src_dir_; } in src_dir() 63 const base::FilePath& dest_file() const { return dest_file_; } in dest_file() [all …]
|
D | zip_unittest.cc | 33 base::FilePath* file_path, in CreateFile() 59 base::FilePath test_dir(FILE_PATH_LITERAL("/test")); in VirtualFileSystem() 60 base::FilePath foo_txt_path = test_dir.Append(FILE_PATH_LITERAL("foo.txt")); in VirtualFileSystem() 62 base::FilePath file_path; in VirtualFileSystem() 68 base::FilePath bar_dir = test_dir.Append(FILE_PATH_LITERAL("bar")); in VirtualFileSystem() 69 base::FilePath bar1_txt_path = in VirtualFileSystem() 75 base::FilePath bar2_txt_path = in VirtualFileSystem() 92 const std::vector<base::FilePath>& paths) override { in OpenFilesForReading() 102 bool DirectoryExists(const base::FilePath& file) override { in DirectoryExists() 107 const base::FilePath& dir) override { in ListDirectoryContent() [all …]
|
D | zip.cc | 25 bool IsHiddenFile(const base::FilePath& file_path) { in IsHiddenFile() 29 bool ExcludeNoFilesFilter(const base::FilePath& file_path) { in ExcludeNoFilesFilter() 33 bool ExcludeHiddenFilesFilter(const base::FilePath& file_path) { in ExcludeHiddenFilesFilter() 38 bool CreateDirectory(const base::FilePath& extract_dir, in CreateDirectory() 39 const base::FilePath& entry_path) { in CreateDirectory() 45 const base::FilePath& extract_dir, in CreateFilePathWriterDelegate() 46 const base::FilePath& entry_path) { in CreateFilePathWriterDelegate() 53 explicit DirectFileAccessor(base::FilePath src_dir) : src_dir_(src_dir) {} in DirectFileAccessor() 57 const std::vector<base::FilePath>& paths) override { in OpenFilesForReading() 69 bool DirectoryExists(const base::FilePath& file) override { in DirectoryExists() [all …]
|
D | zip_reader_unittest.cc | 46 FileWrapper(const base::FilePath& path, AccessMode mode) { in FileWrapper() 116 base::FilePath path) { in ExtractCurrentEntryToFilePath() 123 const base::FilePath& path_in_zip) { in LocateAndOpenEntry() 159 test_zip_contents_.insert(base::FilePath(FILE_PATH_LITERAL("foo/"))); in SetUp() 160 test_zip_contents_.insert(base::FilePath(FILE_PATH_LITERAL("foo/bar/"))); in SetUp() 162 base::FilePath(FILE_PATH_LITERAL("foo/bar/baz.txt"))); in SetUp() 164 base::FilePath(FILE_PATH_LITERAL("foo/bar/quux.txt"))); in SetUp() 166 base::FilePath(FILE_PATH_LITERAL("foo/bar.txt"))); in SetUp() 167 test_zip_contents_.insert(base::FilePath(FILE_PATH_LITERAL("foo.txt"))); in SetUp() 169 base::FilePath(FILE_PATH_LITERAL("foo/bar/.hidden"))); in SetUp() [all …]
|
/third_party/mesa3d/src/gtest/include/gtest/internal/ |
D | gtest-filepath.h | 62 class GTEST_API_ FilePath { 64 FilePath() : pathname_("") { } in FilePath() function 65 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function 67 explicit FilePath(const std::string& pathname) : pathname_(pathname) { in FilePath() function 71 FilePath& operator=(const FilePath& rhs) { 76 void Set(const FilePath& rhs) { in Set() 84 static FilePath GetCurrentDir(); 90 static FilePath MakeFileName(const FilePath& directory, 91 const FilePath& base_name, 98 static FilePath ConcatPaths(const FilePath& directory, [all …]
|
/third_party/googletest/googletest/include/gtest/internal/ |
D | gtest-filepath.h | 69 class GTEST_API_ FilePath { 71 FilePath() : pathname_("") {} in FilePath() function 72 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {} in FilePath() function 74 explicit FilePath(const std::string& pathname) : pathname_(pathname) { in FilePath() function 78 FilePath& operator=(const FilePath& rhs) { 83 void Set(const FilePath& rhs) { pathname_ = rhs.pathname_; } in Set() 89 static FilePath GetCurrentDir(); 95 static FilePath MakeFileName(const FilePath& directory, 96 const FilePath& base_name, int number, 102 static FilePath ConcatPaths(const FilePath& directory, [all …]
|
/third_party/node/deps/googletest/include/gtest/internal/ |
D | gtest-filepath.h | 69 class GTEST_API_ FilePath { 71 FilePath() : pathname_("") {} in FilePath() function 72 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {} in FilePath() function 74 explicit FilePath(const std::string& pathname) : pathname_(pathname) { in FilePath() function 78 FilePath& operator=(const FilePath& rhs) { 83 void Set(const FilePath& rhs) { pathname_ = rhs.pathname_; } in Set() 89 static FilePath GetCurrentDir(); 95 static FilePath MakeFileName(const FilePath& directory, 96 const FilePath& base_name, int number, 102 static FilePath ConcatPaths(const FilePath& directory, [all …]
|
/third_party/gn/src/util/ |
D | exe_path.cc | 31 base::FilePath GetExePath() { in GetExePath() 46 return base::MakeAbsoluteFilePath(base::FilePath(executable_path)); in GetExePath() 51 base::FilePath GetExePath() { in GetExePath() 55 return base::FilePath(); in GetExePath() 57 return base::FilePath(system_buffer); in GetExePath() 62 base::FilePath GetExePath() { in GetExePath() 67 return base::FilePath(); in GetExePath() 69 return base::FilePath(buf); in GetExePath() 74 base::FilePath GetExePath() { in GetExePath() 79 return base::FilePath(); in GetExePath() [all …]
|
/third_party/gn/src/gn/ |
D | filesystem_utils_unittest.cc | 180 base::FilePath(u"out\\Debug"), in TEST() 182 base::FilePath(u"C:\\src"), base::FilePath(u"C:\\src\\out\\Debug"))); in TEST() 183 EXPECT_EQ(base::FilePath(u".\\gn"), in TEST() 185 base::FilePath(u"C:\\src\\out\\Debug"), in TEST() 186 base::FilePath(u"C:\\src\\out\\Debug\\gn"))); in TEST() 188 base::FilePath(u"..\\.."), in TEST() 190 base::FilePath(u"C:\\src\\out\\Debug"), base::FilePath(u"C:\\src"))); in TEST() 192 base::FilePath(u"..\\.."), in TEST() 194 base::FilePath(u"C:\\src\\out\\Debug"), base::FilePath(u"C:/src"))); in TEST() 195 EXPECT_EQ(base::FilePath(u"."), in TEST() [all …]
|
/third_party/node/deps/v8/third_party/zlib/google/ |
D | zip.h | 29 using Paths = base::span<const base::FilePath>; 51 virtual bool List(const base::FilePath& path, 52 std::vector<base::FilePath>* files, 53 std::vector<base::FilePath>* subdirs) = 0; 56 virtual bool GetInfo(const base::FilePath& path, Info* info) = 0; 87 using FilterCallback = base::RepeatingCallback<bool(const base::FilePath&)>; 92 base::FilePath src_dir; 100 base::FilePath dest_file; 151 bool ZipWithFilterCallback(const base::FilePath& src_dir, 152 const base::FilePath& dest_file, [all …]
|
D | zip_unittest.cc | 37 #define FP(path) base::FilePath(FILE_PATH_LITERAL(path)) 44 std::vector<std::string> GetRelativePaths(const base::FilePath& dir, in GetRelativePaths() 48 for (base::FilePath path = files.Next(); !path.empty(); path = files.Next()) { in GetRelativePaths() 49 base::FilePath relative; in GetRelativePaths() 59 base::FilePath* file_path, in CreateFile() 125 base::FilePath test_dir; in VirtualFileSystem() 126 base::FilePath foo_txt_path = test_dir.AppendASCII("foo.txt"); in VirtualFileSystem() 128 base::FilePath file_path; in VirtualFileSystem() 134 base::FilePath bar_dir = test_dir.AppendASCII("bar"); in VirtualFileSystem() 135 base::FilePath bar1_txt_path = bar_dir.AppendASCII("bar1.txt"); in VirtualFileSystem() [all …]
|
/third_party/node/deps/zlib/google/ |
D | zip.h | 29 using Paths = base::span<const base::FilePath>; 51 virtual bool List(const base::FilePath& path, 52 std::vector<base::FilePath>* files, 53 std::vector<base::FilePath>* subdirs) = 0; 56 virtual bool GetInfo(const base::FilePath& path, Info* info) = 0; 87 using FilterCallback = base::RepeatingCallback<bool(const base::FilePath&)>; 92 base::FilePath src_dir; 100 base::FilePath dest_file; 151 bool ZipWithFilterCallback(const base::FilePath& src_dir, 152 const base::FilePath& dest_file, [all …]
|
D | zip_unittest.cc | 37 #define FP(path) base::FilePath(FILE_PATH_LITERAL(path)) 44 std::vector<std::string> GetRelativePaths(const base::FilePath& dir, in GetRelativePaths() 48 for (base::FilePath path = files.Next(); !path.empty(); path = files.Next()) { in GetRelativePaths() 49 base::FilePath relative; in GetRelativePaths() 59 base::FilePath* file_path, in CreateFile() 125 base::FilePath test_dir; in VirtualFileSystem() 126 base::FilePath foo_txt_path = test_dir.AppendASCII("foo.txt"); in VirtualFileSystem() 128 base::FilePath file_path; in VirtualFileSystem() 134 base::FilePath bar_dir = test_dir.AppendASCII("bar"); in VirtualFileSystem() 135 base::FilePath bar1_txt_path = bar_dir.AppendASCII("bar1.txt"); in VirtualFileSystem() [all …]
|