Classes | |
| class | Descriptor |
Functions | |
| std::pair< uint8_t *, intptr_t > | ReadFileDescriptorToBytes (int fd) |
| bool | ReadFileToString (const std::string &path, std::string *result) |
| bool | ReadFileDescriptorToString (int fd, std::string *result) |
| std::pair< uint8_t *, intptr_t > | ReadFileToBytes (const std::string &path) |
| std::string | SimplifyPath (std::string path) |
| std::string | AbsolutePath (const std::string &path) |
| std::string | GetDirectoryName (const std::string &path) |
| std::string | GetBaseName (const std::string &path) |
| std::string | GetAbsoluteFilePath (const std::string &path) |
| TEST (Directory, CreateDirectory) | |
| TEST (FileDescriptor, WriteAndRead) | |
| void | ExpectPlatformPath (std::string expected, std::string actual) |
| TEST (Path, SimplifyPath) | |
| TEST (Path, AbsolutePath) | |
| TEST (Path, GetDirectoryName) | |
| TEST (Path, GetBaseName) | |
| TEST (Path, DeletePath) | |
| TEST (Path, DeletePathRecursively) | |
| TEST (ScopedTempDir, Creation) | |
| TEST (ScopedTempDir, Deletion) | |
| TEST (ScopedTempDir, NewTempFile) | |
| TEST (ScopedTempDir, CustomParent) | |
| std::string filesystem::AbsolutePath | ( | const std::string & | path | ) |
Definition at line 147 of file path_posix.cc.
References GetCurrentDirectory.
Referenced by GetAbsoluteFilePath(), and TEST().
| void filesystem::ExpectPlatformPath | ( | std::string | expected, |
| std::string | actual | ||
| ) |
Definition at line 13 of file path_unittest.cc.
Referenced by TEST().
| std::string filesystem::GetAbsoluteFilePath | ( | const std::string & | path | ) |
Definition at line 176 of file path_posix.cc.
References AbsolutePath(), and SimplifyPath().
Referenced by tonic::FileLoader::FetchBytes().
| std::string filesystem::GetBaseName | ( | const std::string & | path | ) |
Definition at line 169 of file path_posix.cc.
| std::string filesystem::GetDirectoryName | ( | const std::string & | path | ) |
Definition at line 160 of file path_posix.cc.
Referenced by tonic::FileLoader::CanonicalizeURL(), TEST(), and TEST().
| std::pair< uint8_t *, intptr_t > filesystem::ReadFileDescriptorToBytes | ( | int | fd | ) |
Definition at line 64 of file file.cc.
References HANDLE_EINTR.
Referenced by ReadFileToBytes().
| bool filesystem::ReadFileDescriptorToString | ( | int | fd, |
| std::string * | result | ||
| ) |
| std::pair< uint8_t *, intptr_t > filesystem::ReadFileToBytes | ( | const std::string & | path | ) |
Definition at line 95 of file file.cc.
References BINARY_MODE, filesystem::Descriptor::get(), filesystem::Descriptor::is_valid(), and ReadFileDescriptorToBytes().
Referenced by tonic::FileLoader::FetchBytes().
| bool filesystem::ReadFileToString | ( | const std::string & | path, |
| std::string * | result | ||
| ) |
Definition at line 86 of file file.cc.
References filesystem::Descriptor::get().
| std::string filesystem::SimplifyPath | ( | std::string | path | ) |
Definition at line 48 of file path_posix.cc.
Referenced by tonic::FileLoader::CanonicalizeURL(), tonic::FileLoader::FetchBytes(), GetAbsoluteFilePath(), and TEST().
| filesystem::TEST | ( | Directory | , |
| CreateDirectory | |||
| ) |
Definition at line 12 of file directory_unittest.cc.
References CreateDirectory, and GetCurrentDirectory.
| filesystem::TEST | ( | FileDescriptor | , |
| WriteAndRead | |||
| ) |
Definition at line 17 of file file_descriptor_unittest.cc.
| filesystem::TEST | ( | Path | , |
| AbsolutePath | |||
| ) |
Definition at line 138 of file path_unittest.cc.
References AbsolutePath(), and GetCurrentDirectory.
| filesystem::TEST | ( | Path | , |
| DeletePath | |||
| ) |
Definition at line 201 of file path_unittest.cc.
References CreateDirectory.
| filesystem::TEST | ( | Path | , |
| DeletePathRecursively | |||
| ) |
Definition at line 211 of file path_unittest.cc.
References CreateDirectory.
| filesystem::TEST | ( | Path | , |
| GetBaseName | |||
| ) |
Definition at line 178 of file path_unittest.cc.
References GetBaseName().
| filesystem::TEST | ( | Path | , |
| GetDirectoryName | |||
| ) |
Definition at line 155 of file path_unittest.cc.
References GetDirectoryName().
| filesystem::TEST | ( | Path | , |
| SimplifyPath | |||
| ) |
Definition at line 20 of file path_unittest.cc.
References ExpectPlatformPath(), and SimplifyPath().
| filesystem::TEST | ( | ScopedTempDir | , |
| Creation | |||
| ) |
Definition at line 12 of file scoped_temp_dir_unittest.cc.
| filesystem::TEST | ( | ScopedTempDir | , |
| CustomParent | |||
| ) |
Definition at line 35 of file scoped_temp_dir_unittest.cc.
References GetBaseName(), and GetDirectoryName().
| filesystem::TEST | ( | ScopedTempDir | , |
| Deletion | |||
| ) |
Definition at line 18 of file scoped_temp_dir_unittest.cc.
| filesystem::TEST | ( | ScopedTempDir | , |
| NewTempFile | |||
| ) |
Definition at line 28 of file scoped_temp_dir_unittest.cc.