/external/chromium_org/third_party/libjingle/source/talk/base/ |
unixfilesystem.h | 56 virtual FileStream *OpenFile(const Pathname &filename, 61 virtual bool CreatePrivateFile(const Pathname &filename); 65 virtual bool DeleteFile(const Pathname &filename); 70 virtual bool DeleteEmptyFolder(const Pathname &folder); 76 virtual bool CreateFolder(const Pathname &pathname, mode_t mode); 79 virtual bool CreateFolder(const Pathname &pathname); 84 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) [all...] |
win32filesystem.h | 39 virtual FileStream *OpenFile(const Pathname &filename, 44 virtual bool CreatePrivateFile(const Pathname &filename); 48 virtual bool DeleteFile(const Pathname &filename); 52 virtual bool DeleteEmptyFolder(const Pathname &folder); 57 virtual bool CreateFolder(const Pathname &pathname); 63 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path); 68 virtual bool MoveFolder(const Pathname &old_path, const Pathname &new_path) [all...] |
fileutils.h | 50 class Pathname; 72 virtual bool Iterate(const Pathname &path); 114 // Returns a DirectoryIterator for a given pathname. 124 virtual FileStream *OpenFile(const Pathname &filename, 134 virtual bool CreatePrivateFile(const Pathname &filename) = 0; 139 virtual bool DeleteFile(const Pathname &filename) = 0; 145 virtual bool DeleteEmptyFolder(const Pathname &folder) = 0; 150 virtual bool DeleteFolderContents(const Pathname &folder); 154 virtual bool DeleteFolderAndContents(const Pathname &folder) { 161 bool DeleteFileOrFolder(const Pathname &path) [all...] |
fileutils_mock.h | 86 virtual bool Iterate(const Pathname& path) { 88 path_ = path.pathname(); 91 if (path_.rfind(Pathname::DefaultFolderDelimiter()) != path_.size() - 1) 92 path_ += Pathname::DefaultFolderDelimiter(); 118 sub_path.find(Pathname::DefaultFolderDelimiter(), path_.size()); 128 size_t end = sub_path.find(Pathname::DefaultFolderDelimiter(), start); 156 const Pathname &filename, 159 std::string path = filename.pathname(); 170 bool CreatePrivateFile(const Pathname &filename) { 174 bool DeleteFile(const Pathname &filename) [all...] |
pathutils.cc | 60 // Pathname - parsing of pathnames into components, and vice versa 63 bool Pathname::IsFolderDelimiter(char ch) { 67 char Pathname::DefaultFolderDelimiter() { 71 Pathname::Pathname() 75 Pathname::Pathname(const std::string& pathname) 77 SetPathname(pathname); 80 Pathname::Pathname(const std::string& folder, const std::string& filename 108 std::string Pathname::pathname() const { function in class:talk_base::Pathname [all...] |
pathutils.h | 38 // Pathname - parsing of pathnames into components, and vice versa. 41 // component. A folder never contains a filename. A pathname may include 44 // pathname() /home/john/example.txt 57 class Pathname { 63 Pathname(); 64 Pathname(const std::string& pathname); 65 Pathname(const std::string& folder, const std::string& filename); 67 // Set's the default folder delimiter for this Pathname 74 // Reset to the empty pathname [all...] |
unixfilesystem.cc | 75 void IOSAppName(talk_base::Pathname* path); 108 bool UnixFilesystem::CreateFolder(const Pathname &path, mode_t mode) { 109 std::string pathname(path.pathname()); 110 int len = pathname.length(); 111 if ((len == 0) || (pathname[len - 1] != '/')) 115 int res = ::stat(pathname.c_str(), &st); 127 } while ((len > 0) && (pathname[len - 1] != '/')); 129 if (!CreateFolder(Pathname(pathname.substr(0, len)), mode)) [all...] |
pathutils_unittest.cc | 31 TEST(Pathname, ReturnsDotForEmptyPathname) { 33 std::string(".") + talk_base::Pathname::DefaultFolderDelimiter(); 35 talk_base::Pathname path("/", ""); 39 EXPECT_FALSE(path.pathname().empty()); 40 EXPECT_EQ(std::string("/"), path.pathname()); 46 EXPECT_FALSE(path.pathname().empty()); 47 EXPECT_EQ(std::string("foo"), path.pathname()); 53 EXPECT_FALSE(path.pathname().empty()); 54 EXPECT_EQ(kCWD, path.pathname()); 60 EXPECT_FALSE(path.pathname().empty()) [all...] |
win32filesystem.cc | 50 bool Win32Filesystem::CreateFolder(const Pathname &pathname) { 51 if (pathname.pathname().empty() || !pathname.filename().empty()) 55 if (!Utf8ToWindowsFilename(pathname.pathname(), &path16)) 69 if (!pathname.parent_folder().empty()) { 70 Pathname parent(pathname); [all...] |
fileutils_unittest.cc | 37 Pathname path; 43 Pathname path; 71 Pathname path; 84 Pathname path; 107 Pathname path; 143 Pathname path;
|
fileutils.cc | 85 bool DirectoryIterator::Iterate(const Pathname &dir) { 86 directory_ = dir.pathname(); 90 std::string d = dir.pathname() + '*'; 176 bool FilesystemInterface::CopyFolder(const Pathname &old_path, 177 const Pathname &new_path) { 180 Pathname new_dir; 181 new_dir.SetFolder(new_path.pathname()); 182 Pathname old_dir; 183 old_dir.SetFolder(old_path.pathname()); 189 if (di->Iterate(old_dir.pathname())) { 282 std::string pathname = path.pathname(); local [all...] |
filelock_unittest.cc | 49 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); 60 temp_file_ = Pathname(temp_dir_.pathname(), kLockFile); 71 Pathname temp_dir_; 72 Pathname temp_file_; 76 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); 78 EXPECT_FALSE(Filesystem::IsAbsent(temp_file_.pathname())); 80 EXPECT_TRUE(Filesystem::IsAbsent(temp_file_.pathname())); 84 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); 89 scoped_ptr<FileLock> lock1(FileLock::TryLock(temp_file_.pathname())); [all...] |
/external/chromium_org/third_party/webrtc/base/ |
unixfilesystem.h | 39 virtual FileStream *OpenFile(const Pathname &filename, 44 virtual bool CreatePrivateFile(const Pathname &filename); 48 virtual bool DeleteFile(const Pathname &filename); 53 virtual bool DeleteEmptyFolder(const Pathname &folder); 59 virtual bool CreateFolder(const Pathname &pathname, mode_t mode); 62 virtual bool CreateFolder(const Pathname &pathname); 67 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) [all...] |
win32filesystem.h | 22 virtual FileStream *OpenFile(const Pathname &filename, 27 virtual bool CreatePrivateFile(const Pathname &filename); 31 virtual bool DeleteFile(const Pathname &filename); 35 virtual bool DeleteEmptyFolder(const Pathname &folder); 40 virtual bool CreateFolder(const Pathname &pathname); 46 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path); 51 virtual bool MoveFolder(const Pathname &old_path, const Pathname &new_path) [all...] |
fileutils.h | 33 class Pathname; 55 virtual bool Iterate(const Pathname &path); 97 // Returns a DirectoryIterator for a given pathname. 107 virtual FileStream *OpenFile(const Pathname &filename, 117 virtual bool CreatePrivateFile(const Pathname &filename) = 0; 122 virtual bool DeleteFile(const Pathname &filename) = 0; 128 virtual bool DeleteEmptyFolder(const Pathname &folder) = 0; 133 virtual bool DeleteFolderContents(const Pathname &folder); 137 virtual bool DeleteFolderAndContents(const Pathname &folder) { 144 bool DeleteFileOrFolder(const Pathname &path) [all...] |
fileutils_mock.h | 69 virtual bool Iterate(const Pathname& path) { 71 path_ = path.pathname(); 74 if (path_.rfind(Pathname::DefaultFolderDelimiter()) != path_.size() - 1) 75 path_ += Pathname::DefaultFolderDelimiter(); 101 sub_path.find(Pathname::DefaultFolderDelimiter(), path_.size()); 111 size_t end = sub_path.find(Pathname::DefaultFolderDelimiter(), start); 139 const Pathname &filename, 142 std::string path = filename.pathname(); 153 bool CreatePrivateFile(const Pathname &filename) { 157 bool DeleteFile(const Pathname &filename) [all...] |
pathutils.cc | 43 // Pathname - parsing of pathnames into components, and vice versa 46 bool Pathname::IsFolderDelimiter(char ch) { 50 char Pathname::DefaultFolderDelimiter() { 54 Pathname::Pathname() 58 Pathname::Pathname(const std::string& pathname) 60 SetPathname(pathname); 63 Pathname::Pathname(const std::string& folder, const std::string& filename 91 std::string Pathname::pathname() const { function in class:rtc::Pathname [all...] |
pathutils.h | 21 // Pathname - parsing of pathnames into components, and vice versa. 24 // component. A folder never contains a filename. A pathname may include 27 // pathname() /home/john/example.txt 40 class Pathname { 46 Pathname(); 47 Pathname(const std::string& pathname); 48 Pathname(const std::string& folder, const std::string& filename); 50 // Set's the default folder delimiter for this Pathname 57 // Reset to the empty pathname [all...] |
unixfilesystem.cc | 58 void IOSAppName(rtc::Pathname* path); 91 bool UnixFilesystem::CreateFolder(const Pathname &path, mode_t mode) { 92 std::string pathname(path.pathname()); 93 int len = pathname.length(); 94 if ((len == 0) || (pathname[len - 1] != '/')) 98 int res = ::stat(pathname.c_str(), &st); 110 } while ((len > 0) && (pathname[len - 1] != '/')); 112 if (!CreateFolder(Pathname(pathname.substr(0, len)), mode)) [all...] |
pathutils_unittest.cc | 14 TEST(Pathname, ReturnsDotForEmptyPathname) { 16 std::string(".") + rtc::Pathname::DefaultFolderDelimiter(); 18 rtc::Pathname path("/", ""); 22 EXPECT_FALSE(path.pathname().empty()); 23 EXPECT_EQ(std::string("/"), path.pathname()); 29 EXPECT_FALSE(path.pathname().empty()); 30 EXPECT_EQ(std::string("foo"), path.pathname()); 36 EXPECT_FALSE(path.pathname().empty()); 37 EXPECT_EQ(kCWD, path.pathname()); 43 EXPECT_FALSE(path.pathname().empty()) [all...] |
win32filesystem.cc | 33 bool Win32Filesystem::CreateFolder(const Pathname &pathname) { 34 if (pathname.pathname().empty() || !pathname.filename().empty()) 38 if (!Utf8ToWindowsFilename(pathname.pathname(), &path16)) 52 if (!pathname.parent_folder().empty()) { 53 Pathname parent(pathname); [all...] |
fileutils_unittest.cc | 20 Pathname path; 26 Pathname path; 54 Pathname path; 67 Pathname path; 90 Pathname path; 126 Pathname path;
|
fileutils.cc | 68 bool DirectoryIterator::Iterate(const Pathname &dir) { 69 directory_ = dir.pathname(); 73 std::string d = dir.pathname() + '*'; 159 bool FilesystemInterface::CopyFolder(const Pathname &old_path, 160 const Pathname &new_path) { 163 Pathname new_dir; 164 new_dir.SetFolder(new_path.pathname()); 165 Pathname old_dir; 166 old_dir.SetFolder(old_path.pathname()); 172 if (di->Iterate(old_dir.pathname())) { 265 std::string pathname = path.pathname(); local [all...] |
filelock_unittest.cc | 32 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); 43 temp_file_ = Pathname(temp_dir_.pathname(), kLockFile); 54 Pathname temp_dir_; 55 Pathname temp_file_; 59 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); 61 EXPECT_FALSE(Filesystem::IsAbsent(temp_file_.pathname())); 63 EXPECT_TRUE(Filesystem::IsAbsent(temp_file_.pathname())); 67 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); 72 scoped_ptr<FileLock> lock1(FileLock::TryLock(temp_file_.pathname())); [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitruby/PrettyPatch/ |
prettify.rb | 4 require 'pathname' 7 $LOAD_PATH << Pathname.new(__FILE__).dirname.realpath.to_s
|