| 96 | } |
| 97 | |
| 98 | void OpenFileDescriptor() { |
| 99 | ASSERT_OK_AND_ASSIGN(auto file_name, PlatformFilename::FromString(path_)); |
| 100 | ASSERT_OK_AND_ASSIGN( |
| 101 | FileDescriptor fd, |
| 102 | FileOpenWritable(file_name, true /* write_only */, false /* truncate */)); |
| 103 | ASSERT_OK_AND_ASSIGN(file_, FileOutputStream::Open(fd.Detach())); |
| 104 | } |
| 105 | |
| 106 | protected: |
| 107 | std::shared_ptr<FileOutputStream> file_; |
nothing calls this directly
no test coverage detected