Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: src/platform/update_engine/extent_mapper_unittest.cc

Issue 1718001: AU: Class to perform delta updates. (Closed)
Patch Set: fixes for review Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/platform/update_engine/extent_mapper_unittest.cc
diff --git a/src/platform/update_engine/extent_mapper_unittest.cc b/src/platform/update_engine/extent_mapper_unittest.cc
index dc69437360ddaecebb238599d2006d23b8da78d1..7a5e598bb7ea9a4259db67bc4d3cb3d1f78c7324 100644
--- a/src/platform/update_engine/extent_mapper_unittest.cc
+++ b/src/platform/update_engine/extent_mapper_unittest.cc
@@ -29,7 +29,7 @@ TEST(ExtentMapperTest, RunAsRootSimpleTest) {
// 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 @@ TEST(ExtentMapperTest, RunAsRootSimpleTest) {
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 @@ TEST(ExtentMapperTest, RunAsRootSparseFileTest) {
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);

Powered by Google App Engine
This is Rietveld 408576698