/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 …]
|
/external/chromium_org/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/chromium_org/base/ |
D | file_util.h | 49 BASE_EXPORT FilePath MakeAbsoluteFilePath(const FilePath& input); 56 BASE_EXPORT int64 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 …]
|
/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() 98 FilePath("path\\gtest-options_test.xml")).c_str()) == 0 || in TEST() 101 FilePath("path\\gtest-options-ex_test.xml")).c_str()) == 0 || in TEST() 104 FilePath("path\\gtest_all_test.xml")).c_str()) == 0) in TEST() 116 FilePath("path/gtest-options_test.xml")).c_str() || in TEST() 119 FilePath("path/lt-gtest-options_test.xml")).c_str() || in TEST() 122 FilePath("path/gtest_all_test.xml")).c_str() || in TEST() [all …]
|
/external/chromium_org/chrome/common/ |
D | chrome_constants.h | 18 extern const base::FilePath::CharType kBrowserProcessExecutableName[]; 19 extern const base::FilePath::CharType kHelperProcessExecutableName[]; 20 extern const base::FilePath::CharType kBrowserProcessExecutablePath[]; 21 extern const base::FilePath::CharType kHelperProcessExecutablePath[]; 22 extern const base::FilePath::CharType kBrowserProcessExecutableNameChromium[]; 23 extern const base::FilePath::CharType kHelperProcessExecutableNameChromium[]; 24 extern const base::FilePath::CharType kBrowserProcessExecutablePathChromium[]; 25 extern const base::FilePath::CharType kHelperProcessExecutablePathChromium[]; 31 extern const base::FilePath::CharType kFrameworkName[]; 41 extern const base::FilePath::CharType* const kHelperFlavorSuffixes[]; [all …]
|
D | chrome_constants.cc | 54 const base::FilePath::CharType kBrowserProcessExecutableNameChromium[] = 56 const base::FilePath::CharType kBrowserProcessExecutableName[] = 58 const base::FilePath::CharType kHelperProcessExecutableNameChromium[] = 60 const base::FilePath::CharType kHelperProcessExecutableName[] = 63 const base::FilePath::CharType kBrowserProcessExecutableNameChromium[] = 65 const base::FilePath::CharType kBrowserProcessExecutableName[] = 67 const base::FilePath::CharType kHelperProcessExecutableNameChromium[] = 69 const base::FilePath::CharType kHelperProcessExecutableName[] = 73 const base::FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome"); 74 const base::FilePath::CharType kBrowserProcessExecutableNameChromium[] = [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 …]
|
/external/chromium_org/base/files/ |
D | file_path.cc | 34 typedef FilePath::StringType StringType; 41 const FilePath::CharType kStringTerminator = FILE_PATH_LITERAL('\0'); 87 FilePath::IsSeparator(path[letter + 1]); in IsPathAbsolute() 91 FilePath::IsSeparator(path[0]) && FilePath::IsSeparator(path[1]); in IsPathAbsolute() 94 return path.length() > 0 && FilePath::IsSeparator(path[0]); in IsPathAbsolute() 101 if (!FilePath::IsSeparator(*it)) in AreAllSeparators() 113 if (path == FilePath::kCurrentDirectory || path == FilePath::kParentDirectory) in FinalExtensionSeparatorPosition() 116 return path.rfind(FilePath::kExtensionSeparator); in FinalExtensionSeparatorPosition() 131 path.rfind(FilePath::kExtensionSeparator, last_dot - 1); in ExtensionSeparatorPosition() 133 path.find_last_of(FilePath::kSeparators, last_dot - 1, in ExtensionSeparatorPosition() [all …]
|
D | file_path.h | 132 class BASE_EXPORT FilePath { 165 FilePath(); 166 FilePath(const FilePath& that); 167 explicit FilePath(const StringType& path); 168 ~FilePath(); 169 FilePath& operator=(const FilePath& that); 171 bool operator==(const FilePath& that) const; 173 bool operator!=(const FilePath& that) const; 176 bool operator<(const FilePath& that) const { 199 void GetComponents(std::vector<FilePath::StringType>* components) const; [all …]
|
/external/protobuf/gtest/src/ |
D | gtest-filepath.cc | 85 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 89 return FilePath(kCurrentDirectoryString); in GetCurrentDir() 92 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 95 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 103 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 106 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); in RemoveExtension() 117 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() 119 return last_sep ? FilePath(String(last_sep + 1)) : *this; in RemoveDirectoryName() 128 FilePath FilePath::RemoveFileName() const { in RemoveFileName() 136 return FilePath(dir); 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/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/chromium_org/third_party/mesa/src/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/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/chromium_org/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() 109 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 117 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 120 return FilePath(pathname_.substr( in RemoveExtension() 129 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator() 148 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() 150 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName() 159 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/chromium_org/third_party/mesa/src/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 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/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/chromium_org/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 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/chromium_org/chrome/test/chromedriver/chrome/ |
D | chrome_finder.cc | 26 void GetApplicationDirs(std::vector<base::FilePath>* locations) { in GetApplicationDirs() 27 std::vector<base::FilePath> installation_locations; in GetApplicationDirs() 28 base::FilePath local_app_data, program_files, program_files_x86; in GetApplicationDirs() 46 void GetApplicationDirs(std::vector<base::FilePath>* locations) { 47 locations->push_back(base::FilePath("/opt/google/chrome")); 48 locations->push_back(base::FilePath("/usr/local/bin")); 49 locations->push_back(base::FilePath("/usr/local/sbin")); 50 locations->push_back(base::FilePath("/usr/bin")); 51 locations->push_back(base::FilePath("/usr/sbin")); 52 locations->push_back(base::FilePath("/bin")); [all …]
|
/external/chromium_org/chrome/installer/setup/ |
D | archive_patch_helper.h | 34 ArchivePatchHelper(const base::FilePath& working_directory, 35 const base::FilePath& compressed_archive, 36 const base::FilePath& patch_source, 37 const base::FilePath& target); 45 static bool UncompressAndPatch(const base::FilePath& working_directory, 46 const base::FilePath& compressed_archive, 47 const base::FilePath& patch_source, 48 const base::FilePath& target); 53 bool Uncompress(base::FilePath* last_uncompressed_file); 63 const base::FilePath& compressed_archive() const { in compressed_archive() [all …]
|