Home
last modified time | relevance | path

Searched refs:FilePath (Results 1 – 25 of 1909) sorted by relevance

12345678910>>...77

/external/cronet/stable/third_party/googletest/src/googletest/test/
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("a\\b\\").IsEmpty()); in TEST()
112 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST()
117 EXPECT_EQ("afile", FilePath("afile").RemoveDirectoryName().string()); in TEST()
[all …]
/external/cronet/tot/third_party/googletest/src/googletest/test/
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("a\\b\\").IsEmpty()); in TEST()
112 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST()
117 EXPECT_EQ("afile", FilePath("afile").RemoveDirectoryName().string()); in TEST()
[all …]
/external/cronet/tot/third_party/boringssl/src/third_party/googletest/googletest/test/
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("a\\b\\").IsEmpty()); in TEST()
112 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST()
117 EXPECT_EQ("afile", FilePath("afile").RemoveDirectoryName().string()); in TEST()
[all …]
/external/googletest/googletest/test/
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("a\\b\\").IsEmpty()); in TEST()
112 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST()
117 EXPECT_EQ("afile", FilePath("afile").RemoveDirectoryName().string()); in TEST()
[all …]
/external/cronet/stable/third_party/boringssl/src/third_party/googletest/googletest/test/
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("a\\b\\").IsEmpty()); in TEST()
112 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST()
117 EXPECT_EQ("afile", FilePath("afile").RemoveDirectoryName().string()); in TEST()
[all …]
/external/rust/android-crates-io/crates/quiche/deps/boringssl/src/third_party/googletest/test/
Dgoogletest-filepath-test.cc63 FilePath filepath(path); in _rmdir()
74 const FilePath original_dir = FilePath::GetCurrentDir();
78 const FilePath cwd = FilePath::GetCurrentDir();
98 EXPECT_TRUE(FilePath("").IsEmpty()); in TEST()
102 EXPECT_FALSE(FilePath("a").IsEmpty()); in TEST()
103 EXPECT_FALSE(FilePath(".").IsEmpty()); in TEST()
104 EXPECT_FALSE(FilePath("a/b").IsEmpty()); in TEST()
105 EXPECT_FALSE(FilePath("a\\b\\").IsEmpty()); in TEST()
110 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST()
116 FilePath("afile").RemoveDirectoryName().string()); in TEST()
[all …]
/external/libchrome/base/files/
Dfile_util.h49 BASE_EXPORT FilePath MakeAbsoluteFilePath(const FilePath& input);
56 BASE_EXPORT int64_t ComputeDirectorySize(const FilePath& root_path);
70 BASE_EXPORT bool DeleteFile(const FilePath& path, bool recursive);
78 BASE_EXPORT bool DeleteFileAfterReboot(const FilePath& path);
86 BASE_EXPORT bool Move(const FilePath& from_path, const FilePath& to_path);
94 BASE_EXPORT bool ReplaceFile(const FilePath& from_path,
95 const FilePath& to_path,
118 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path);
129 BASE_EXPORT bool CopyDirectory(const FilePath& from_path,
130 const FilePath& to_path,
[all …]
Dfile_path.cc32 using StringType = FilePath::StringType;
33 using StringPieceType = FilePath::StringPieceType;
40 const FilePath::CharType kStringTerminator = FILE_PATH_LITERAL('\0');
85 FilePath::IsSeparator(path[letter + 1]); in IsPathAbsolute()
89 FilePath::IsSeparator(path[0]) && FilePath::IsSeparator(path[1]); in IsPathAbsolute()
92 return path.length() > 0 && FilePath::IsSeparator(path[0]); in IsPathAbsolute()
99 if (!FilePath::IsSeparator(*it)) in AreAllSeparators()
111 if (path == FilePath::kCurrentDirectory || path == FilePath::kParentDirectory) in FinalExtensionSeparatorPosition()
114 return path.rfind(FilePath::kExtensionSeparator); in FinalExtensionSeparatorPosition()
129 path.rfind(FilePath::kExtensionSeparator, last_dot - 1); in ExtensionSeparatorPosition()
[all …]
Dfile_path.h143 class BASE_EXPORT FilePath {
177 FilePath();
178 FilePath(const FilePath& that);
179 explicit FilePath(StringPieceType path);
180 ~FilePath();
181 FilePath& operator=(const FilePath& that);
185 FilePath(FilePath&& that) noexcept;
188 FilePath& operator=(FilePath&& that);
190 bool operator==(const FilePath& that) const;
192 bool operator!=(const FilePath& that) const;
[all …]
/external/cronet/tot/base/files/
Dfile_util.h73 BASE_EXPORT FilePath MakeAbsoluteFilePath(const FilePath& input);
85 [[nodiscard]] BASE_EXPORT std::optional<FilePath>
86 MakeAbsoluteFilePathNoResolveSymbolicLinks(const FilePath& input);
94 BASE_EXPORT int64_t ComputeDirectorySize(const FilePath& root_path);
105 BASE_EXPORT bool DeleteFile(const FilePath& path);
117 BASE_EXPORT bool DeletePathRecursively(const FilePath& path);
134 GetDeleteFileCallback(const FilePath& path,
137 GetDeletePathRecursivelyCallback(const FilePath& path,
146 BASE_EXPORT bool DeleteFileAfterReboot(const FilePath& path);
151 BASE_EXPORT bool PreventExecuteMapping(const FilePath& path);
[all …]
Dfile_path.cc44 using StringType = FilePath::StringType;
45 using StringPieceType = FilePath::StringPieceType;
53 const FilePath::CharType kStringTerminator = FILE_PATH_LITERAL('\0');
98 FilePath::IsSeparator(path[letter + 1]); in IsPathAbsolute()
102 FilePath::IsSeparator(path[0]) && FilePath::IsSeparator(path[1]); in IsPathAbsolute()
105 return path.length() > 0 && FilePath::IsSeparator(path[0]); in IsPathAbsolute()
111 if (!FilePath::IsSeparator(it)) in AreAllSeparators()
123 if (path == FilePath::kCurrentDirectory || path == FilePath::kParentDirectory) in FinalExtensionSeparatorPosition()
126 return path.rfind(FilePath::kExtensionSeparator); in FinalExtensionSeparatorPosition()
141 path.rfind(FilePath::kExtensionSeparator, last_dot - 1); in ExtensionSeparatorPosition()
[all …]
Dfile_path.h160 class BASE_EXPORT FilePath {
199 FilePath();
200 FilePath(const FilePath& that);
201 explicit FilePath(StringPieceType path);
202 ~FilePath();
203 FilePath& operator=(const FilePath& that);
207 FilePath(FilePath&& that) noexcept;
210 FilePath& operator=(FilePath&& that) noexcept;
212 bool operator==(const FilePath& that) const;
214 bool operator!=(const FilePath& that) const;
[all …]
/external/cronet/stable/base/files/
Dfile_util.h73 BASE_EXPORT FilePath MakeAbsoluteFilePath(const FilePath& input);
85 [[nodiscard]] BASE_EXPORT std::optional<FilePath>
86 MakeAbsoluteFilePathNoResolveSymbolicLinks(const FilePath& input);
94 BASE_EXPORT int64_t ComputeDirectorySize(const FilePath& root_path);
105 BASE_EXPORT bool DeleteFile(const FilePath& path);
117 BASE_EXPORT bool DeletePathRecursively(const FilePath& path);
134 GetDeleteFileCallback(const FilePath& path,
137 GetDeletePathRecursivelyCallback(const FilePath& path,
146 BASE_EXPORT bool DeleteFileAfterReboot(const FilePath& path);
151 BASE_EXPORT bool PreventExecuteMapping(const FilePath& path);
[all …]
Dfile_path.cc44 using StringType = FilePath::StringType;
45 using StringPieceType = FilePath::StringPieceType;
53 const FilePath::CharType kStringTerminator = FILE_PATH_LITERAL('\0');
98 FilePath::IsSeparator(path[letter + 1]); in IsPathAbsolute()
102 FilePath::IsSeparator(path[0]) && FilePath::IsSeparator(path[1]); in IsPathAbsolute()
105 return path.length() > 0 && FilePath::IsSeparator(path[0]); in IsPathAbsolute()
111 if (!FilePath::IsSeparator(it)) in AreAllSeparators()
123 if (path == FilePath::kCurrentDirectory || path == FilePath::kParentDirectory) in FinalExtensionSeparatorPosition()
126 return path.rfind(FilePath::kExtensionSeparator); in FinalExtensionSeparatorPosition()
141 path.rfind(FilePath::kExtensionSeparator, last_dot - 1); in ExtensionSeparatorPosition()
[all …]
Dfile_path.h160 class BASE_EXPORT FilePath {
199 FilePath();
200 FilePath(const FilePath& that);
201 explicit FilePath(StringPieceType path);
202 ~FilePath();
203 FilePath& operator=(const FilePath& that);
207 FilePath(FilePath&& that) noexcept;
210 FilePath& operator=(FilePath&& that) noexcept;
212 bool operator==(const FilePath& that) const;
214 bool operator!=(const FilePath& that) const;
[all …]
/external/deqp/framework/delibs/decpp/
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 &join(const FilePath &b);
67 static FilePath normalize(const FilePath &path);
68 FilePath &normalize(void);
[all …]
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::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 …]
/external/rust/android-crates-io/crates/quiche/deps/boringssl/src/third_party/googletest/src/
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()
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 …]
/external/intel-media-driver/media_driver/linux/ult/ult_app/googletest/src/
Dgtest-filepath.cc96 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
102 return FilePath(kCurrentDirectoryString); in GetCurrentDir()
105 return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd); in GetCurrentDir()
113 return FilePath(result == nullptr ? kCurrentDirectoryString : cwd); in GetCurrentDir()
115 return FilePath(result == nullptr ? "" : cwd); in GetCurrentDir()
123 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
126 return FilePath( in RemoveExtension()
135 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator()
154 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
156 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName()
[all …]
/external/libaom/third_party/googletest/src/googletest/src/
Dgtest-filepath.cc96 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
102 return FilePath(kCurrentDirectoryString); in GetCurrentDir()
105 return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd); in GetCurrentDir()
113 return FilePath(result == nullptr ? kCurrentDirectoryString : cwd); in GetCurrentDir()
115 return FilePath(result == nullptr ? "" : cwd); in GetCurrentDir()
123 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
126 return FilePath( in RemoveExtension()
135 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator()
154 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
156 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName()
[all …]
/external/libvpx/third_party/googletest/src/src/
Dgtest-filepath.cc96 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
102 return FilePath(kCurrentDirectoryString); in GetCurrentDir()
105 return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd); in GetCurrentDir()
113 return FilePath(result == nullptr ? kCurrentDirectoryString : cwd); in GetCurrentDir()
115 return FilePath(result == nullptr ? "" : cwd); in GetCurrentDir()
123 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
126 return FilePath( in RemoveExtension()
135 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator()
154 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
156 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName()
[all …]
/external/libva-utils/test/gtest/src/
Dgtest-filepath.cc94 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
100 return FilePath(kCurrentDirectoryString); in GetCurrentDir()
103 return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd); in GetCurrentDir()
111 return FilePath(result == nullptr ? kCurrentDirectoryString : cwd); in GetCurrentDir()
113 return FilePath(result == nullptr ? "" : cwd); in GetCurrentDir()
121 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
124 return FilePath(pathname_.substr( in RemoveExtension()
133 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator()
152 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
154 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName()
[all …]
/external/llvm/utils/unittest/googletest/src/
Dgtest-filepath.cc98 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
102 return FilePath(kCurrentDirectoryString); in GetCurrentDir()
105 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
108 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
116 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
119 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); in RemoveExtension()
127 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator()
146 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
148 return last_sep ? FilePath(String(last_sep + 1)) : *this; in RemoveDirectoryName()
157 FilePath FilePath::RemoveFileName() const { in RemoveFileName()
[all …]
/external/cronet/tot/third_party/googletest/src/googletest/include/gtest/internal/
Dgtest-filepath.h70 class GTEST_API_ FilePath {
72 FilePath() : pathname_("") {} in FilePath() function
73 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {} in FilePath() function
74 FilePath(FilePath&& rhs) noexcept : pathname_(std::move(rhs.pathname_)) {} in FilePath() function
76 explicit FilePath(std::string pathname) : pathname_(std::move(pathname)) { in FilePath() function
80 FilePath& operator=(const FilePath& rhs) {
84 FilePath& operator=(FilePath&& rhs) noexcept {
89 void Set(const FilePath& rhs) { pathname_ = rhs.pathname_; } in Set()
95 static FilePath GetCurrentDir();
101 static FilePath MakeFileName(const FilePath& directory,
[all …]
/external/cronet/stable/third_party/googletest/src/googletest/include/gtest/internal/
Dgtest-filepath.h70 class GTEST_API_ FilePath {
72 FilePath() : pathname_("") {} in FilePath() function
73 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {} in FilePath() function
74 FilePath(FilePath&& rhs) noexcept : pathname_(std::move(rhs.pathname_)) {} in FilePath() function
76 explicit FilePath(std::string pathname) : pathname_(std::move(pathname)) { in FilePath() function
80 FilePath& operator=(const FilePath& rhs) {
84 FilePath& operator=(FilePath&& rhs) noexcept {
89 void Set(const FilePath& rhs) { pathname_ = rhs.pathname_; } in Set()
95 static FilePath GetCurrentDir();
101 static FilePath MakeFileName(const FilePath& directory,
[all …]

12345678910>>...77