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/extent_mapper_unittest.cc b/extent_mapper_unittest.cc
index dc69437..7a5e598 100644
--- a/extent_mapper_unittest.cc
+++ b/extent_mapper_unittest.cc
@@ -29,7 +29,7 @@
// executable are consistent and they match with the size of the file.
const string kFilename = "/proc/self/exe";
- uint32 block_size = 0;
+ uint32_t block_size = 0;
EXPECT_TRUE(extent_mapper::GetFilesystemBlockSize(kFilename, &block_size));
EXPECT_GT(block_size, 0);
@@ -38,11 +38,11 @@
ASSERT_TRUE(extent_mapper::ExtentsForFileFibmap(kFilename, &extents));
EXPECT_FALSE(extents.empty());
- set<uint64> blocks;
+ set<uint64_t> blocks;
for (vector<Extent>::const_iterator it = extents.begin();
it != extents.end(); ++it) {
- for (uint64 block = it->start_block();
+ for (uint64_t block = it->start_block();
block < it->start_block() + it->num_blocks();
block++) {
EXPECT_FALSE(utils::SetContainsKey(blocks, block));
@@ -68,7 +68,7 @@
int fd = mkstemp(buf);
ASSERT_GE(fd, 0);
- uint32 block_size = 0;
+ uint32_t block_size = 0;
EXPECT_TRUE(extent_mapper::GetFilesystemBlockSize(buf, &block_size));
EXPECT_GT(block_size, 0);