/external/chromium/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/gtest/test/ |
D | gtest-filepath_test.cc | 73 FilePath filepath(path); in _rmdir() 86 const FilePath original_dir = FilePath::GetCurrentDir(); in TEST() 91 const FilePath cwd = FilePath::GetCurrentDir(); in TEST() 99 EXPECT_STREQ(GTEST_PATH_SEP_, FilePath::GetCurrentDir().c_str()); in TEST() 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() [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/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/chrome/common/ |
D | chrome_constants.h | 19 extern const FilePath::CharType kBrowserProcessExecutableName[]; 20 extern const FilePath::CharType kHelperProcessExecutableName[]; 21 extern const FilePath::CharType kBrowserProcessExecutablePath[]; 22 extern const FilePath::CharType kHelperProcessExecutablePath[]; 24 extern const FilePath::CharType kFrameworkName[]; 37 extern const FilePath::CharType kExtensionFileExtension[]; 38 extern const FilePath::CharType kExtensionKeyFileExtension[]; 41 extern const FilePath::CharType kArchivedHistoryFilename[]; 42 extern const FilePath::CharType kCacheDirname[]; 43 extern const FilePath::CharType kMediaCacheDirname[]; [all …]
|
D | chrome_constants.cc | 28 const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome.exe"); 29 const FilePath::CharType kHelperProcessExecutableName[] = FPL("chrome.exe"); 31 const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome"); 34 const FilePath::CharType kHelperProcessExecutableName[] = FPL("exe"); 36 const FilePath::CharType kBrowserProcessExecutableName[] = FPL(PRODUCT_STRING); 37 const FilePath::CharType kHelperProcessExecutableName[] = 41 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome.exe"); 42 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome.exe"); 44 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome"); 45 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome"); [all …]
|
/external/chromium/base/ |
D | file_util.h | 52 BASE_API bool EndsWithSeparator(const FilePath& path); 56 BASE_API bool EnsureEndsWithSeparator(FilePath* path); 60 BASE_API bool AbsolutePath(FilePath* path); 64 BASE_API bool ContainsPath(const FilePath& parent, const FilePath& child); 77 BASE_API int CountFilesCreatedAfter(const FilePath& path, 85 BASE_API int64 ComputeDirectorySize(const FilePath& root_path); 93 BASE_API int64 ComputeFilesSize(const FilePath& directory, 94 const FilePath::StringType& pattern); 104 BASE_API bool Delete(const FilePath& path, bool recursive); 112 BASE_API bool DeleteAfterReboot(const FilePath& path); [all …]
|
D | file_path.cc | 33 const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("\\/"); 35 const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("/"); 38 const FilePath::CharType FilePath::kCurrentDirectory[] = FILE_PATH_LITERAL("."); 39 const FilePath::CharType FilePath::kParentDirectory[] = FILE_PATH_LITERAL(".."); 41 const FilePath::CharType FilePath::kExtensionSeparator = FILE_PATH_LITERAL('.'); 43 typedef FilePath::StringType StringType; 93 FilePath::IsSeparator(path[letter + 1]); in IsPathAbsolute() 97 FilePath::IsSeparator(path[0]) && FilePath::IsSeparator(path[1]); in IsPathAbsolute() 100 return path.length() > 0 && FilePath::IsSeparator(path[0]); in IsPathAbsolute() 107 if (!FilePath::IsSeparator(*it)) in AreAllSeparators() [all …]
|
D | file_path.h | 127 class BASE_API FilePath { 157 FilePath(); 158 FilePath(const FilePath& that); 159 explicit FilePath(const StringType& path); 160 ~FilePath(); 161 FilePath& operator=(const FilePath& that); 163 bool operator==(const FilePath& that) const; 165 bool operator!=(const FilePath& that) const; 168 bool operator<(const FilePath& that) const { 184 void GetComponents(std::vector<FilePath::StringType>* components) const; [all …]
|
D | file_util.cc | 22 const FilePath::CharType kExtensionSeparator = FILE_PATH_LITERAL('.'); 28 bool EndsWithSeparator(const FilePath& path) { in EndsWithSeparator() 29 FilePath::StringType value = path.value(); in EndsWithSeparator() 33 return FilePath::IsSeparator(value[value.size() - 1]); in EndsWithSeparator() 36 bool EnsureEndsWithSeparator(FilePath* path) { in EnsureEndsWithSeparator() 43 FilePath::StringType& path_str = in EnsureEndsWithSeparator() 44 const_cast<FilePath::StringType&>(path->value()); in EnsureEndsWithSeparator() 45 path_str.append(&FilePath::kSeparators[0], 1); in EnsureEndsWithSeparator() 50 FilePath::StringType GetFileExtensionFromPath(const FilePath& path) { in GetFileExtensionFromPath() 51 FilePath::StringType file_name = path.BaseName().value(); in GetFileExtensionFromPath() [all …]
|
D | file_util_posix.cc | 50 bool RealPath(const FilePath& path, FilePath* real_path) { in RealPath() 52 FilePath::CharType buf[PATH_MAX]; in RealPath() 56 *real_path = FilePath(buf); in RealPath() 85 bool AbsolutePath(FilePath* path) { in AbsolutePath() 90 *path = FilePath(full_path); in AbsolutePath() 94 int CountFilesCreatedAfter(const FilePath& path, in CountFilesCreatedAfter() 146 bool Delete(const FilePath& path, bool recursive) { in Delete() 167 for (FilePath current = traversal.Next(); success && !current.empty(); in Delete() 179 FilePath dir = FilePath(directories.top()); in Delete() 186 bool Move(const FilePath& from_path, const FilePath& to_path) { in Move() [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 | 89 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 93 return FilePath(kCurrentDirectoryString); in GetCurrentDir() 96 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 99 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 107 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 110 return FilePath(String(pathname_.c_str(), pathname_.GetLength() - 4)); in RemoveExtension() 121 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() 123 return last_sep ? FilePath(String(last_sep + 1)) : *this; in RemoveDirectoryName() 132 FilePath FilePath::RemoveFileName() const { in RemoveFileName() 134 return FilePath(last_sep ? String(c_str(), last_sep + 1 - c_str()) in RemoveFileName() [all …]
|
/external/chromium/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/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/chromium/sdch/open-vcdiff/src/gtest/ |
D | gtest-filepath.cc | 61 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 64 return FilePath(String(pathname_.c_str(), pathname_.GetLength() - 4)); in RemoveExtension() 75 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() 77 return last_sep ? FilePath(String(last_sep + 1)) : *this; in RemoveDirectoryName() 86 FilePath FilePath::RemoveFileName() const { in RemoveFileName() 88 return FilePath(last_sep ? String(c_str(), last_sep + 1 - c_str()) in RemoveFileName() 98 FilePath FilePath::MakeFileName(const FilePath& directory, in MakeFileName() 99 const FilePath& base_name, in MakeFileName() 102 FilePath dir(directory.RemoveTrailingPathSeparator()); in MakeFileName() 104 return FilePath(String::Format("%s%c%s.%s", dir.c_str(), kPathSeparator, in MakeFileName() [all …]
|
/external/chromium/chrome/browser/chromeos/ |
D | plugin_selection_policy_unittest.cc | 87 FilePath* path) { in CreatePolicy() 88 FilePath policy_file = GetPolicyPath(name); in CreatePolicy() 98 FilePath GetPolicyPath(const std::string& name) { in GetPolicyPath() 99 FilePath policy_file(temp_dir_.path()); in GetPolicyPath() 100 return policy_file.Append(FilePath(name)); in GetPolicyPath() 110 FilePath path; in TEST_F() 118 FilePath path; in TEST_F() 125 FilePath path; in TEST_F() 132 FilePath path; in TEST_F() 139 FilePath path; in TEST_F() [all …]
|
/external/chromium/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 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/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/chromium/sdch/open-vcdiff/src/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 63 explicit FilePath(const char* pathname) : pathname_(pathname) { } in FilePath() function 64 explicit FilePath(const String& pathname) : pathname_(pathname) { } in FilePath() function 66 void Set(const FilePath& rhs) { in Set() 77 static FilePath MakeFileName(const FilePath& directory, 78 const FilePath& base_name, 90 static FilePath GenerateUniqueFileName(const FilePath& directory, 91 const FilePath& base_name, [all …]
|
/external/chromium/chrome/browser/extensions/ |
D | extension_creator.h | 18 class FilePath; variable 29 bool Run(const FilePath& extension_dir, 30 const FilePath& crx_path, 31 const FilePath& private_key_path, 32 const FilePath& private_key_output_path); 43 bool InitializeInput(const FilePath& extension_dir, 44 const FilePath& private_key_path, 45 const FilePath& private_key_output_path); 48 crypto::RSAPrivateKey* ReadInputKey(const FilePath& private_key_path); 52 crypto::RSAPrivateKey* GenerateKey(const FilePath& private_key_path); [all …]
|
/external/chromium/chrome/common/extensions/ |
D | extension_resource.h | 22 const FilePath& extension_root, 23 const FilePath& relative_path); 30 const FilePath& GetFilePath() const; 36 static FilePath GetFilePath(const FilePath& extension_root, 37 const FilePath& relative_path); 41 const FilePath& extension_root() const { return extension_root_; } in extension_root() 42 const FilePath& relative_path() const { return relative_path_; } in relative_path() 47 FilePath::StringType NormalizeSeperators( 48 const FilePath::StringType& path) const; 49 bool ComparePathWithDefault(const FilePath& path) const; [all …]
|