Home
last modified time | relevance | path

Searched refs:FilePath (Results 1 - 25 of 205) sorted by relevance

123456789

/third_party/googletest/googletest/test/
H A Dgoogletest-filepath-test.cc65 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(" in TEST()
[all...]
H A Dgoogletest-options-test.cc59 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();
135 FilePath::GetCurrentDir().string());
142 FilePath original_working_dir
[all...]
/third_party/gn/src/base/files/
H A Dfile_util.h45 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
[all...]
H A Dfile_path.h5 // FilePath is a container for pathnames stored in a platform's native string
26 // FilePath objects are intended to be used anywhere paths are. An
27 // application may pass FilePath objects around internally, masking the
30 // OpenFile(const FilePath &) function may be made available, allowing all
39 // Several methods are available to perform common operations on a FilePath
42 // to an existing FilePath object (Append). These methods are highly
48 // instances of FilePath objects, and are therefore safe to use on const
51 // To aid in initialization of FilePath objects from string literals, a
58 // Because a FilePath object should not be instantiated at the global scope,
59 // instead, use a FilePath
142 class FilePath { global() class
[all...]
H A Dfile_path.cc32 using StringType = FilePath::StringType;
33 using StringViewType = FilePath::StringViewType;
40 const FilePath::CharType kStringTerminator = FILE_PATH_LITERAL('\0');
42 // If this FilePath contains a drive letter specification, returns the
85 FilePath::IsSeparator(path[letter + 1]); in IsPathAbsolute()
88 return path.length() > 1 && FilePath::IsSeparator(path[0]) && in IsPathAbsolute()
89 FilePath::IsSeparator(path[1]); in IsPathAbsolute()
92 return path.length() > 0 && FilePath::IsSeparator(path[0]); in IsPathAbsolute()
98 if (!FilePath::IsSeparator(*it)) in AreAllSeparators()
110 if (path == FilePath in FinalExtensionSeparatorPosition()
175 FilePath::FilePath(StringViewType path) { FilePath() function in base::FilePath
[all...]
H A Dfile_util_posix.cc81 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
[all...]
H A Dfile_util_win.cc56 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 RandomDataToGUIDString()
196 return FilePath(); in RandomDataToGUIDString()
197 return FilePath(file_path); in RandomDataToGUIDString()
200 bool DeleteFile(const FilePath in RandomDataToGUIDString()
[all...]
H A Dfile_path_constants.cc14 const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("\\/");
16 const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("/");
19 const size_t FilePath::kSeparatorsLength = std::size(kSeparators);
21 const FilePath::CharType FilePath::kCurrentDirectory[] = FILE_PATH_LITERAL(".");
22 const FilePath::CharType FilePath::kParentDirectory[] = FILE_PATH_LITERAL("..");
24 const FilePath
[all...]
/third_party/vk-gl-cts/framework/delibs/decpp/
H A DdeFilePath.hpp36 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
89 inline FilePath::FilePath (void) FilePath() function in de::FilePath
93 inline FilePath::FilePath (const std::string& path) FilePath() function in de::FilePath
98 inline FilePath::FilePath (const char* path) FilePath() function in de::FilePath
[all...]
H A DdeFilePath.cpp45 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
[all...]
/third_party/mesa3d/src/gtest/src/
H A Dgtest-filepath.cc94 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()
116 // Returns a copy of the FilePath with the case-insensitive extension removed.
117 // Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns
118 // FilePath("dir/file"). If a case-insensitive extension is not
119 // found, returns a copy of the original FilePath
[all...]
/third_party/skia/third_party/externals/zlib/google/
H A Dzip.h34 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
[all...]
H A Dzip_unittest.cc33 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 {
102 bool DirectoryExists(const base::FilePath& file) override {
107 const base::FilePath
[all...]
H A Dzip.cc25 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 {
69 bool DirectoryExists(const base::FilePath
[all...]
H A Dzip_reader_unittest.cc46 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_LITERA in SetUp()
[all...]
/third_party/googletest/googletest/include/gtest/internal/
H A Dgtest-filepath.h58 // FilePath - a class for file and directory pathname manipulation which
63 // A FilePath with a value ending in a path separator ("like/this/") represents
69 class GTEST_API_ FilePath { class
71 FilePath() : pathname_("") {} in FilePath() function in testing::internal::FilePath
72 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {} in FilePath() function in testing::internal::FilePath
74 explicit FilePath(const std::string& pathname) : pathname_(pathname) { in FilePath() function in testing::internal::FilePath
78 FilePath& operator=(const FilePath& rhs) { in operator =()
83 void Set(const FilePath
[all...]
/third_party/mesa3d/src/gtest/include/gtest/internal/
H A Dgtest-filepath.h51 // FilePath - a class for file and directory pathname manipulation which
56 // A FilePath with a value ending in a path separator ("like/this/") represents
62 class GTEST_API_ FilePath { class
64 FilePath() : pathname_("") { } in FilePath() function in testing::internal::FilePath
65 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function in testing::internal::FilePath
67 explicit FilePath(const std::string& pathname) : pathname_(pathname) { in FilePath() function in testing::internal::FilePath
71 FilePath& operator=(const FilePath& rhs) { in operator =()
76 void Set(const FilePath
[all...]
/third_party/node/deps/googletest/include/gtest/internal/
H A Dgtest-filepath.h58 // FilePath - a class for file and directory pathname manipulation which
63 // A FilePath with a value ending in a path separator ("like/this/") represents
69 class GTEST_API_ FilePath { class
71 FilePath() : pathname_("") {} in FilePath() function in testing::internal::FilePath
72 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {} in FilePath() function in testing::internal::FilePath
74 explicit FilePath(const std::string& pathname) : pathname_(pathname) { in FilePath() function in testing::internal::FilePath
78 FilePath& operator=(const FilePath& rhs) { in operator =()
83 void Set(const FilePath
[all...]
/third_party/googletest/googletest/src/
H A Dgtest-filepath.cc98 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()
121 // Returns a copy of the FilePath with the case-insensitive extension removed.
122 // Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns
123 // FilePath("dir/file"). If a case-insensitive extension is not
124 // found, returns a copy of the original FilePath
[all...]
/third_party/node/deps/googletest/src/
H A Dgtest-filepath.cc101 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()
126 // Returns a copy of the FilePath with the case-insensitive extension removed.
127 // Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns
128 // FilePath("dir/file"). If a case-insensitive extension is not
129 // found, returns a copy of the original FilePath
[all...]
/third_party/gn/src/util/
H A Dexe_path.cc31 base::FilePath GetExePath() { in GetExePath()
43 // FilePath::DirName() work incorrectly, convert it to absolute path so that 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 GetExePat
[all...]
/third_party/node/deps/v8/third_party/zlib/google/
H A Dzip_unittest.cc37 #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_pat in VirtualFileSystem()
[all...]
H A Dzip.h29 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
[all...]
/third_party/node/deps/zlib/google/
H A Dzip_unittest.cc37 #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_pat in VirtualFileSystem()
[all...]
H A Dzip.h29 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
[all...]

Completed in 11 milliseconds

123456789