Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/tests/unit/
Dpackage_test.cpp45 ZipWriter writer(file_ptr); in SetUp() local
47 ASSERT_EQ(0, writer.StartEntry(entry.c_str(), ZipWriter::kCompress)); in SetUp()
48 ASSERT_EQ(0, writer.WriteBytes(entry.c_str(), entry.size())); in SetUp()
49 ASSERT_EQ(0, writer.FinishEntry()); in SetUp()
51 writer.Finish(); in SetUp()
/bootable/recovery/updater/
Dblockimg.cpp349 std::unique_ptr<RangeSinkWriter> writer; member
363 while (nti->writer == nullptr) { in receive_new_data()
375 size_t write_now = std::min(size, nti->writer->AvailableSpace()); in receive_new_data()
376 if (nti->writer->Write(data, write_now) != write_now) { in receive_new_data()
384 if (nti->writer->Finished()) { in receive_new_data()
388 nti->writer = nullptr; in receive_new_data()
403 while (nti->writer == nullptr) { in receive_brotli_new_data()
416 size_t buffer_size = std::min<size_t>(32768, nti->writer->AvailableSpace()); in receive_brotli_new_data()
440 if (nti->writer->Write(buffer, write_now) != write_now) { in receive_brotli_new_data()
448 if (nti->writer->Finished()) { in receive_brotli_new_data()
[all …]
/bootable/recovery/tests/component/
Dinstall_test.cpp42 ZipWriter writer(zip_file); in BuildZipArchive() local
44 ASSERT_EQ(0, writer.StartEntry(name.c_str(), compression_type)); in BuildZipArchive()
45 ASSERT_EQ(0, writer.WriteBytes(content.data(), content.size())); in BuildZipArchive()
46 ASSERT_EQ(0, writer.FinishEntry()); in BuildZipArchive()
48 ASSERT_EQ(0, writer.Finish()); in BuildZipArchive()
Dimgdiff_test.cpp682 ZipWriter* writer) { in construct_store_entry() argument
685 ASSERT_EQ(0, writer->StartEntry(std::get<0>(t).c_str(), 0)); in construct_store_entry()
687 ASSERT_EQ(0, writer->WriteBytes(content.data(), content.size())); in construct_store_entry()
688 ASSERT_EQ(0, writer->FinishEntry()); in construct_store_entry()
693 ZipWriter* writer, const std::string& data) { in construct_deflate_entry() argument
696 ASSERT_EQ(0, writer->StartEntry(std::get<0>(t).c_str(), ZipWriter::kCompress)); in construct_deflate_entry()
697 ASSERT_EQ(0, writer->WriteBytes(data.data() + std::get<1>(t) * 4096, std::get<2>(t) * 4096)); in construct_deflate_entry()
698 ASSERT_EQ(0, writer->FinishEntry()); in construct_deflate_entry()
/bootable/recovery/fonts/
DOFL.txt45 writer or other person who contributed to the Font Software.