Home
last modified time | relevance | path

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

12345678910>>...13

/external/googletest/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/google-breakpad/src/testing/gtest/test/
Dgtest-filepath_test.cc76 FilePath filepath(path); in _rmdir()
87 const FilePath original_dir = FilePath::GetCurrentDir();
91 const FilePath cwd = FilePath::GetCurrentDir();
111 EXPECT_TRUE(FilePath("").IsEmpty()); in TEST()
112 EXPECT_TRUE(FilePath(NULL).IsEmpty()); in TEST()
116 EXPECT_FALSE(FilePath("a").IsEmpty()); in TEST()
117 EXPECT_FALSE(FilePath(".").IsEmpty()); in TEST()
118 EXPECT_FALSE(FilePath("a/b").IsEmpty()); in TEST()
119 EXPECT_FALSE(FilePath("a\\b\\").IsEmpty()); in TEST()
124 EXPECT_STREQ("", FilePath("").RemoveDirectoryName().c_str()); 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 …]
Dfile_util_posix.cc94 bool VerifySpecificPathControlledByUser(const FilePath& path, in VerifySpecificPathControlledByUser()
142 FilePath* out_next_path, in AdvanceEnumeratorWithStat()
180 bool DoCopyDirectory(const FilePath& from_path, in DoCopyDirectory()
181 const FilePath& to_path, in DoCopyDirectory()
196 FilePath real_to_path = to_path; in DoCopyDirectory()
204 FilePath real_from_path = MakeAbsoluteFilePath(from_path); in DoCopyDirectory()
218 FilePath current = from_path; in DoCopyDirectory()
224 FilePath from_path_base = from_path; in DoCopyDirectory()
239 FilePath target_path(to_path); in DoCopyDirectory()
337 FilePath MakeAbsoluteFilePath(const FilePath& input) { in MakeAbsoluteFilePath()
[all …]
Dfile_enumerator_unittest.cc24 const FilePath::StringType kEmptyPattern;
30 circular_deque<FilePath> RunEnumerator( in RunEnumerator()
31 const FilePath& root_path, in RunEnumerator()
34 const FilePath::StringType& pattern, in RunEnumerator()
36 circular_deque<FilePath> rv; in RunEnumerator()
44 bool CreateDummyFile(const FilePath& path) { in CreateDummyFile()
51 const FilePath path = FilePath::FromUTF8Unsafe("some_not_existing_path"); in TEST()
79 const FilePath& path = temp_dir.GetPath(); in TEST()
80 const FilePath file = path.AppendASCII("test.txt"); in TEST()
94 const FilePath& path = temp_dir.GetPath(); in TEST()
[all …]
/external/deqp/framework/delibs/decpp/
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 …]
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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/src/
Dgtest-filepath.cc99 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
103 return FilePath(kCurrentDirectoryString); in GetCurrentDir()
106 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
114 return FilePath(result == NULL ? kCurrentDirectoryString : cwd); in GetCurrentDir()
116 return FilePath(result == NULL ? "" : cwd); in GetCurrentDir()
124 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
127 return FilePath(pathname_.substr( in RemoveExtension()
136 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator()
155 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
157 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName()
[all …]
/external/googletest/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/mesa3d/src/gtest/src/
Dgtest-filepath.cc99 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
103 return FilePath(kCurrentDirectoryString); in GetCurrentDir()
106 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
114 return FilePath(result == NULL ? kCurrentDirectoryString : cwd); in GetCurrentDir()
116 return FilePath(result == NULL ? "" : cwd); in GetCurrentDir()
124 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
127 return FilePath(pathname_.substr( in RemoveExtension()
136 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator()
155 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
157 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName()
[all …]
/external/libvpx/libvpx/third_party/googletest/src/src/
Dgtest-filepath.cc97 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
101 return FilePath(kCurrentDirectoryString); in GetCurrentDir()
104 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
112 return FilePath(result == NULL ? kCurrentDirectoryString : cwd); in GetCurrentDir()
114 return FilePath(result == NULL ? "" : cwd); in GetCurrentDir()
122 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
125 return FilePath(pathname_.substr( in RemoveExtension()
134 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator()
153 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
155 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName()
[all …]
/external/libaom/libaom/third_party/googletest/src/googletest/src/
Dgtest-filepath.cc99 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
103 return FilePath(kCurrentDirectoryString); in GetCurrentDir()
106 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
114 return FilePath(result == NULL ? kCurrentDirectoryString : cwd); in GetCurrentDir()
116 return FilePath(result == NULL ? "" : cwd); in GetCurrentDir()
124 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
127 return FilePath(pathname_.substr( in RemoveExtension()
136 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator()
155 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
157 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName()
[all …]
/external/google-breakpad/src/testing/gtest/src/
Dgtest-filepath.cc100 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
104 return FilePath(kCurrentDirectoryString); in GetCurrentDir()
107 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
110 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
118 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
121 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); in RemoveExtension()
129 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator()
148 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
150 return last_sep ? FilePath(String(last_sep + 1)) : *this; in RemoveDirectoryName()
159 FilePath FilePath::RemoveFileName() const { in RemoveFileName()
[all …]
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/
Dgtest-filepath.cc100 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
104 return FilePath(kCurrentDirectoryString); in GetCurrentDir()
107 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
110 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
118 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
121 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); in RemoveExtension()
129 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator()
148 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
150 return last_sep ? FilePath(String(last_sep + 1)) : *this; in RemoveDirectoryName()
159 FilePath FilePath::RemoveFileName() const { in RemoveFileName()
[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/swiftshader/third_party/LLVM/utils/unittest/googletest/include/gtest/internal/
Dgtest-filepath.h59 class GTEST_API_ FilePath {
61 FilePath() : pathname_("") { } in FilePath() function
62 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function
64 explicit FilePath(const char* pathname) : pathname_(pathname) { in FilePath() function
68 explicit FilePath(const String& pathname) : pathname_(pathname) { in FilePath() function
72 FilePath& operator=(const FilePath& rhs) {
77 void Set(const FilePath& rhs) { in Set()
85 static FilePath GetCurrentDir();
91 static FilePath MakeFileName(const FilePath& directory,
92 const FilePath& base_name,
[all …]
/external/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-filepath.h59 class GTEST_API_ FilePath {
61 FilePath() : pathname_("") { } in FilePath() function
62 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function
64 explicit FilePath(const char* pathname) : pathname_(pathname) { in FilePath() function
68 explicit FilePath(const String& pathname) : pathname_(pathname) { in FilePath() function
72 FilePath& operator=(const FilePath& rhs) {
77 void Set(const FilePath& rhs) { in Set()
85 static FilePath GetCurrentDir();
91 static FilePath MakeFileName(const FilePath& directory,
92 const FilePath& base_name,
[all …]
/external/google-breakpad/src/testing/gtest/include/gtest/internal/
Dgtest-filepath.h59 class GTEST_API_ FilePath {
61 FilePath() : pathname_("") { } in FilePath() function
62 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function
64 explicit FilePath(const char* pathname) : pathname_(pathname) { in FilePath() function
68 explicit FilePath(const String& pathname) : pathname_(pathname) { in FilePath() function
72 FilePath& operator=(const FilePath& rhs) {
77 void Set(const FilePath& rhs) { in Set()
85 static FilePath GetCurrentDir();
91 static FilePath MakeFileName(const FilePath& directory,
92 const FilePath& base_name,
[all …]
/external/libaom/libaom/third_party/googletest/src/googletest/include/gtest/internal/
Dgtest-filepath.h59 class GTEST_API_ FilePath {
61 FilePath() : pathname_("") { } in FilePath() function
62 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function
64 explicit FilePath(const std::string& pathname) : pathname_(pathname) { in FilePath() function
68 FilePath& operator=(const FilePath& rhs) {
73 void Set(const FilePath& rhs) { in Set()
81 static FilePath GetCurrentDir();
87 static FilePath MakeFileName(const FilePath& directory,
88 const FilePath& base_name,
95 static FilePath ConcatPaths(const FilePath& directory,
[all …]
/external/mesa3d/src/gtest/include/gtest/internal/
Dgtest-filepath.h59 class GTEST_API_ FilePath {
61 FilePath() : pathname_("") { } in FilePath() function
62 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function
64 explicit FilePath(const std::string& pathname) : pathname_(pathname) { in FilePath() function
68 FilePath& operator=(const FilePath& rhs) {
73 void Set(const FilePath& rhs) { in Set()
81 static FilePath GetCurrentDir();
87 static FilePath MakeFileName(const FilePath& directory,
88 const FilePath& base_name,
95 static FilePath ConcatPaths(const FilePath& directory,
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-filepath.h59 class GTEST_API_ FilePath {
61 FilePath() : pathname_("") { } in FilePath() function
62 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function
64 explicit FilePath(const std::string& pathname) : pathname_(pathname) { in FilePath() function
68 FilePath& operator=(const FilePath& rhs) {
73 void Set(const FilePath& rhs) { in Set()
81 static FilePath GetCurrentDir();
87 static FilePath MakeFileName(const FilePath& directory,
88 const FilePath& base_name,
95 static FilePath ConcatPaths(const FilePath& directory,
[all …]
/external/googletest/googletest/include/gtest/internal/
Dgtest-filepath.h62 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 …]
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/
Dgtest-filepath.h62 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 …]

12345678910>>...13