AU: SplitWriter class for parsing our full update files.
Full updates now include data for two partitions (kernel + rootfs).
This CL adds a new SplitFileWriter class which takes the stream of
data, which is expected to be in our full update format (8 bytes big
endian uint64_t of the first partition size, followed by first
partition data, followed by second partition size). It parses the
size, then writes the data to each of two FileWriter classes.
BUG=None
TEST=Attached unittest
Review URL: http://codereview.chromium.org/1800009
diff --git a/SConstruct b/SConstruct
index 6855425..dc05e37 100644
--- a/SConstruct
+++ b/SConstruct
@@ -170,6 +170,7 @@
omaha_response_handler_action.cc
postinstall_runner_action.cc
set_bootable_flag_action.cc
+ split_file_writer.cc
subprocess.cc
tarjan.cc
topological_sort.cc
@@ -201,6 +202,7 @@
omaha_response_handler_action_unittest.cc
postinstall_runner_action_unittest.cc
set_bootable_flag_action_unittest.cc
+ split_file_writer_unittest.cc
subprocess_unittest.cc
tarjan_unittest.cc
test_utils.cc