AU: Class to perform delta updates. A class to perform delta updates and the associated unittests. Also, change the delta diff generator executable to be able to apply a delta, which is handy for debugging. TEST=Attached unit test, hand-tested on real build images BUG=552 Review URL: http://codereview.chromium.org/1718001
diff --git a/test_utils.cc b/test_utils.cc index 6a86025..851e45d 100644 --- a/test_utils.cc +++ b/test_utils.cc
@@ -3,18 +3,20 @@ // found in the LICENSE file. #include "update_engine/test_utils.h" + #include <sys/stat.h> #include <sys/types.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> + #include <set> #include <string> #include <vector> + #include "base/string_util.h" #include "chromeos/obsolete_logging.h" - #include "update_engine/file_writer.h" #include "update_engine/filesystem_iterator.h" #include "update_engine/utils.h" @@ -190,7 +192,7 @@ EXPECT_EQ(0, System(StringPrintf("dd if=/dev/zero of=%s" " seek=10485759 bs=1 count=1", path.c_str()))); - EXPECT_EQ(0, System(StringPrintf("mkfs.ext3 -F %s", path.c_str()))); + EXPECT_EQ(0, System(StringPrintf("mkfs.ext3 -b 4096 -F %s", path.c_str()))); EXPECT_EQ(0, System(StringPrintf("mkdir -p %s", kMountPath))); EXPECT_EQ(0, System(StringPrintf("mount -o loop %s %s", path.c_str(), kMountPath)));