| 330 | } |
| 331 | |
| 332 | void MakeExample1(int64_t buffer_size, MemoryPool* pool = default_memory_pool(), |
| 333 | int64_t raw_read_bound = -1) { |
| 334 | test_data_ = kExample1; |
| 335 | |
| 336 | ASSERT_OK_AND_ASSIGN(auto file_out, FileOutputStream::Open(path_)); |
| 337 | ASSERT_OK(file_out->Write(test_data_)); |
| 338 | ASSERT_OK(file_out->Close()); |
| 339 | |
| 340 | ASSERT_OK_AND_ASSIGN(auto file_in, ReadableFile::Open(path_)); |
| 341 | raw_ = file_in; |
| 342 | ASSERT_OK_AND_ASSIGN( |
| 343 | buffered_, BufferedInputStream::Create(buffer_size, pool, raw_, raw_read_bound)); |
| 344 | } |
| 345 | |
| 346 | protected: |
| 347 | std::unique_ptr<MemoryPool> local_pool_; |
nothing calls this directly
no test coverage detected