Refactor verity reads/writes to a separate fucntion
Test: th & serve an OTA with veity enabled, vabc disabled
Change-Id: Ib1d5549ac615504a47c96a12b046975cfff01886
diff --git a/payload_consumer/verity_writer_stub.cc b/payload_consumer/verity_writer_stub.cc
index 314ec7e..8bff076 100644
--- a/payload_consumer/verity_writer_stub.cc
+++ b/payload_consumer/verity_writer_stub.cc
@@ -26,9 +26,7 @@
}
} // namespace verity_writer
-bool VerityWriterStub::Init(const InstallPlan::Partition& partition,
- FileDescriptorPtr read_fd,
- FileDescriptorPtr write_fd) {
+bool VerityWriterStub::Init(const InstallPlan::Partition& partition) {
return partition.hash_tree_size == 0 && partition.fec_size == 0;
}
@@ -38,4 +36,9 @@
return true;
}
+bool VerityWriterStub::Finalize(FileDescriptorPtr read_fd,
+ FileDescriptorPtr write_fd) {
+ return true;
+}
+
} // namespace chromeos_update_engine