/external/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 …]
|
D | gtest-options_test.cc | 63 FilePath GetAbsolutePathOf(const FilePath& relative_path) { in GetAbsolutePathOf() 64 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path); in GetAbsolutePathOf() 81 EXPECT_EQ(GetAbsolutePathOf(FilePath("test_detail.xml")).string(), in TEST() 87 EXPECT_EQ(GetAbsolutePathOf(FilePath("filename.abc")).string(), in TEST() 95 FilePath(std::string("path") + GTEST_PATH_SEP_ + in TEST() 130 original_working_dir_ = FilePath::GetCurrentDir(); in SetUp() 134 FilePath::GetCurrentDir().string()); in SetUp() 141 FilePath original_working_dir_; 146 EXPECT_EQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F() 147 FilePath("test_detail.xml")).string(), in TEST_F() [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 …]
|
D | gtest-options_test.cc | 63 FilePath GetAbsolutePathOf(const FilePath& relative_path) { in GetAbsolutePathOf() 64 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path); in GetAbsolutePathOf() 81 EXPECT_STREQ(GetAbsolutePathOf(FilePath("test_detail.xml")).c_str(), in TEST() 87 EXPECT_STREQ(GetAbsolutePathOf(FilePath("filename.abc")).c_str(), in TEST() 95 FilePath(std::string("path") + GTEST_PATH_SEP_ + in TEST() 129 original_working_dir_ = FilePath::GetCurrentDir(); in SetUp() 133 FilePath::GetCurrentDir().c_str()); in SetUp() 140 FilePath original_working_dir_; 145 EXPECT_STREQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F() 146 FilePath("test_detail.xml")).c_str(), in TEST_F() [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 …]
|
D | gtest-options_test.cc | 63 FilePath GetAbsolutePathOf(const FilePath& relative_path) { in GetAbsolutePathOf() 64 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path); in GetAbsolutePathOf() 81 EXPECT_STREQ(GetAbsolutePathOf(FilePath("test_detail.xml")).c_str(), in TEST() 87 EXPECT_STREQ(GetAbsolutePathOf(FilePath("filename.abc")).c_str(), in TEST() 95 FilePath(std::string("path") + GTEST_PATH_SEP_ + in TEST() 129 original_working_dir_ = FilePath::GetCurrentDir(); in SetUp() 133 FilePath::GetCurrentDir().c_str()); in SetUp() 140 FilePath original_working_dir_; 145 EXPECT_STREQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F() 146 FilePath("test_detail.xml")).c_str(), in TEST_F() [all …]
|
/external/deqp/framework/delibs/decpp/ |
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 …]
|
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() 84 FilePath& FilePath::normalize (void) in normalize() 135 FilePath FilePath::normalize (const FilePath& path) in normalize() 137 return FilePath(path).normalize(); in normalize() 140 std::string FilePath::getBaseName (void) const in getBaseName() 147 std::string FilePath::getDirName (void) const in getDirName() 154 return FilePath(components).getPath(); in getDirName() [all …]
|
D | deDirectoryIterator.cpp | 37 DirectoryIterator::DirectoryIterator (const FilePath& path) in DirectoryIterator() 38 : m_path(FilePath::normalize(path)) in DirectoryIterator() 41 DE_CHECK_RUNTIME_ERR(m_path.getType() == FilePath::TYPE_DIRECTORY); in DirectoryIterator() 60 FilePath DirectoryIterator::getItem (void) const in getItem() 63 return FilePath::join(m_path, m_fileInfo.name); in getItem() 80 DirectoryIterator::DirectoryIterator (const FilePath& path) 81 : m_path (FilePath::normalize(path)) 86 DE_CHECK_RUNTIME_ERR(m_path.getType() == FilePath::TYPE_DIRECTORY); 105 FilePath DirectoryIterator::getItem (void) const 108 return FilePath::join(m_path, m_curEntry->d_name);
|
D | deDirectoryIterator.hpp | 55 DirectoryIterator (const FilePath& path); 58 FilePath getItem (void) const; 66 FilePath m_path;
|
/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/mesa3d/src/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/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/mesa3d/src/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/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/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/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 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/clang/lib/Tooling/Core/ |
D | Replacement.cpp | 32 : FilePath(InvalidLocation) {} in Replacement() 34 Replacement::Replacement(StringRef FilePath, unsigned Offset, unsigned Length, in Replacement() argument 36 : FilePath(FilePath), ReplacementRange(Offset, Length), in Replacement() 51 return FilePath != InvalidLocation; in isApplicable() 56 const FileEntry *Entry = SM.getFileManager().getFile(FilePath); in apply() 82 stream << FilePath << ": " << ReplacementRange.getOffset() << ":+" in toString() 113 llvm::SmallString<256> FilePath(Entry->getName()); in setFromSourceLocation() local 114 std::error_code EC = llvm::sys::fs::make_absolute(FilePath); in setFromSourceLocation() 115 this->FilePath = EC ? FilePath.c_str() : Entry->getName(); in setFromSourceLocation() 117 this->FilePath = InvalidLocation; in setFromSourceLocation()
|
/external/clang/include/clang/Tooling/ |
D | ReplacementsYaml.h | 36 : FilePath(""), Offset(0), Length(0), ReplacementText("") {} in LLVM_YAML_IS_SEQUENCE_VECTOR() 39 : FilePath(R.getFilePath()), Offset(R.getOffset()), in LLVM_YAML_IS_SEQUENCE_VECTOR() 43 return clang::tooling::Replacement(FilePath, Offset, Length, in LLVM_YAML_IS_SEQUENCE_VECTOR() 47 std::string FilePath; in LLVM_YAML_IS_SEQUENCE_VECTOR() 56 Io.mapRequired("FilePath", Keys->FilePath); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
/external/llvm/lib/Support/ |
D | FileOutputBuffer.cpp | 38 FileOutputBuffer::create(StringRef FilePath, size_t Size, in create() argument 43 std::error_code EC = sys::fs::status(FilePath, Stat); in create() 62 EC = sys::fs::remove(FilePath); in create() 74 EC = sys::fs::createUniqueFile(Twine(FilePath) + ".tmp%%%%%%%", FD, in create() 99 new FileOutputBuffer(std::move(MappedFile), FilePath, TempFilePath)); in create()
|
D | Process.cpp | 45 SmallString<128> FilePath(Dir); in FindInEnvPath() local 46 path::append(FilePath, FileName); in FindInEnvPath() 47 if (fs::exists(Twine(FilePath))) { in FindInEnvPath() 48 FoundPath = FilePath.str(); in FindInEnvPath()
|
/external/clang/lib/Basic/ |
D | FileManager.cpp | 431 SmallString<128> FilePath(Entry->getName()); in getBufferForFile() local 432 FixupRelativePath(FilePath); in getBufferForFile() 433 return FS->getBufferForFile(FilePath, FileSize, in getBufferForFile() 442 SmallString<128> FilePath(Filename); in getBufferForFile() local 443 FixupRelativePath(FilePath); in getBufferForFile() 444 return FS->getBufferForFile(FilePath.c_str()); in getBufferForFile() 459 SmallString<128> FilePath(Path); in getStatValue() local 460 FixupRelativePath(FilePath); in getStatValue() 462 return FileSystemStatCache::get(FilePath.c_str(), Data, isFile, F, in getStatValue() 468 SmallString<128> FilePath(Path); in getNoncachedStatValue() local [all …]
|