| 720 | } |
| 721 | |
| 722 | void TestOpenOutputStreamDestructor() { |
| 723 | std::shared_ptr<io::OutputStream> stream; |
| 724 | ASSERT_OK_AND_ASSIGN(stream, fs_->OpenOutputStream("bucket/somefile")); |
| 725 | ASSERT_OK(stream->Write("new data")); |
| 726 | // Destructor implicitly closes stream and completes the multipart upload. |
| 727 | stream.reset(); |
| 728 | AssertObjectContents(client_.get(), "bucket", "somefile", "new data"); |
| 729 | } |
| 730 | |
| 731 | void TestOpenOutputStreamCloseAsyncDestructor() { |
| 732 | std::shared_ptr<io::OutputStream> stream; |
nothing calls this directly
no test coverage detected