/external/googletest/googletest/test/ |
D | gtest-filepath_test.cc | 76 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() 115 EXPECT_FALSE(FilePath("a").IsEmpty()); in TEST() 116 EXPECT_FALSE(FilePath(".").IsEmpty()); in TEST() 117 EXPECT_FALSE(FilePath("a/b").IsEmpty()); in TEST() 118 EXPECT_FALSE(FilePath("a\\b\\").IsEmpty()); in TEST() 123 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST() 129 FilePath("afile").RemoveDirectoryName().string()); in TEST() [all …]
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/ |
D | gtest-filepath_test.cc | 76 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() 115 EXPECT_FALSE(FilePath("a").IsEmpty()); in TEST() 116 EXPECT_FALSE(FilePath(".").IsEmpty()); in TEST() 117 EXPECT_FALSE(FilePath("a/b").IsEmpty()); in TEST() 118 EXPECT_FALSE(FilePath("a\\b\\").IsEmpty()); in TEST() 123 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST() 129 FilePath("afile").RemoveDirectoryName().string()); in TEST() [all …]
|
/external/v8/testing/gtest/test/ |
D | gtest-filepath_test.cc | 76 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() 115 EXPECT_FALSE(FilePath("a").IsEmpty()); in TEST() 116 EXPECT_FALSE(FilePath(".").IsEmpty()); in TEST() 117 EXPECT_FALSE(FilePath("a/b").IsEmpty()); in TEST() 118 EXPECT_FALSE(FilePath("a\\b\\").IsEmpty()); in TEST() 123 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST() 129 FilePath("afile").RemoveDirectoryName().string()); in TEST() [all …]
|
/external/google-breakpad/src/testing/gtest/test/ |
D | gtest-filepath_test.cc | 76 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/protobuf/gtest/test/ |
D | gtest-filepath_test.cc | 76 FilePath filepath(path); in _rmdir() 87 const FilePath original_dir = FilePath::GetCurrentDir(); 91 const FilePath cwd = FilePath::GetCurrentDir(); 107 EXPECT_TRUE(FilePath("").IsEmpty()); in TEST() 108 EXPECT_TRUE(FilePath(NULL).IsEmpty()); in TEST() 112 EXPECT_FALSE(FilePath("a").IsEmpty()); in TEST() 113 EXPECT_FALSE(FilePath(".").IsEmpty()); in TEST() 114 EXPECT_FALSE(FilePath("a/b").IsEmpty()); in TEST() 115 EXPECT_FALSE(FilePath("a\\b\\").IsEmpty()); in TEST() 120 EXPECT_STREQ("", FilePath("").RemoveDirectoryName().c_str()); in TEST() [all …]
|
/external/libchrome/base/files/ |
D | file_util.h | 49 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, 103 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path); 115 BASE_EXPORT bool CopyDirectory(const FilePath& from_path, 116 const FilePath& to_path, [all …]
|
D | file_path.cc | 32 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 …]
|
D | file_path.h | 145 class BASE_EXPORT FilePath { 179 FilePath(); 180 FilePath(const FilePath& that); 181 explicit FilePath(StringPieceType path); 182 ~FilePath(); 183 FilePath& operator=(const FilePath& that); 187 FilePath(FilePath&& that) noexcept; 190 FilePath& operator=(FilePath&& that); 192 bool operator==(const FilePath& that) const; 194 bool operator!=(const FilePath& that) const; [all …]
|
/external/deqp/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 …]
|
/external/v8/testing/gtest/src/ |
D | gtest-filepath.cc | 99 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/ |
D | gtest-filepath.cc | 99 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/ |
D | gtest-filepath.cc | 99 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/vulkan-validation-layers/tests/gtest-1.7.0/src/ |
D | gtest-filepath.cc | 101 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 105 return FilePath(kCurrentDirectoryString); in GetCurrentDir() 108 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 111 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 119 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 122 return FilePath(pathname_.substr( in RemoveExtension() 131 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator() 150 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() 152 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName() 161 FilePath FilePath::RemoveFileName() const { in RemoveFileName() [all …]
|
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/ |
D | gtest-filepath.cc | 100 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/mesa3d/src/gtest/src/ |
D | gtest-filepath.cc | 101 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 105 return FilePath(kCurrentDirectoryString); in GetCurrentDir() 108 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 111 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 119 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 122 return FilePath(pathname_.substr( in RemoveExtension() 131 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator() 150 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() 152 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName() 161 FilePath FilePath::RemoveFileName() const { in RemoveFileName() [all …]
|
/external/llvm/utils/unittest/googletest/src/ |
D | gtest-filepath.cc | 98 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/protobuf/gtest/src/ |
D | gtest-filepath.cc | 100 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/google-breakpad/src/testing/gtest/src/ |
D | gtest-filepath.cc | 100 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/protobuf/gtest/include/gtest/internal/ |
D | gtest-filepath.h | 59 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/swiftshader/third_party/LLVM/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-filepath.h | 59 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/ |
D | gtest-filepath.h | 59 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/ |
D | gtest-filepath.h | 59 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/vulkan-validation-layers/tests/gtest-1.7.0/include/gtest/internal/ |
D | gtest-filepath.h | 59 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/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/ |
D | gtest-filepath.h | 59 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 …]
|