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

Unified Diff: metadata_unittest.cc

Issue 6060012: Break metadata into smaller chunks (number of chunks=10) for faster delta generation. (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: Created 9 years, 12 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
« no previous file with comments | « metadata.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: metadata_unittest.cc
diff --git a/metadata_unittest.cc b/metadata_unittest.cc
index fde0b989cbb76ab61da1849f4ea90f54dac6a051..885197d0fe7251a7cbd7701e251dadcc8c7aa2c5 100644
--- a/metadata_unittest.cc
+++ b/metadata_unittest.cc
@@ -113,14 +113,26 @@ TEST_F(MetadataTest, RunAsRootReadMetadata) {
off_t start_block; // Set to -1 to skip start block verification
off_t num_blocks; // Set to -1 to skip num blocks verification
} exp_results[] =
- {{"<rootfs-bg-0-0-metadata>", 0, 260},
- {"<rootfs-bg-0-1-metadata>", 260, 260},
- {"<rootfs-bg-0-2-metadata>", 520, 260},
- {"<rootfs-bg-0-3-metadata>", 780, 263},
- {"<rootfs-bg-1-0-metadata>", 32768, 260},
- {"<rootfs-bg-1-1-metadata>", 33028, 260},
- {"<rootfs-bg-1-2-metadata>", 33288, 260},
- {"<rootfs-bg-1-3-metadata>", 33548, 263},
+ {{"<rootfs-bg-0-0-metadata>", 0, 104},
+ {"<rootfs-bg-0-1-metadata>", 104, 104},
+ {"<rootfs-bg-0-2-metadata>", 208, 104},
+ {"<rootfs-bg-0-3-metadata>", 312, 104},
+ {"<rootfs-bg-0-4-metadata>", 416, 104},
+ {"<rootfs-bg-0-5-metadata>", 520, 104},
+ {"<rootfs-bg-0-6-metadata>", 624, 104},
+ {"<rootfs-bg-0-7-metadata>", 728, 104},
+ {"<rootfs-bg-0-8-metadata>", 832, 104},
+ {"<rootfs-bg-0-9-metadata>", 936, 107},
+ {"<rootfs-bg-1-0-metadata>", 32768, 104},
+ {"<rootfs-bg-1-1-metadata>", 32872, 104},
+ {"<rootfs-bg-1-2-metadata>", 32976, 104},
+ {"<rootfs-bg-1-3-metadata>", 33080, 104},
+ {"<rootfs-bg-1-4-metadata>", 33184, 104},
+ {"<rootfs-bg-1-5-metadata>", 33288, 104},
+ {"<rootfs-bg-1-6-metadata>", 33392, 104},
+ {"<rootfs-bg-1-7-metadata>", 33496, 104},
+ {"<rootfs-bg-1-8-metadata>", 33600, 104},
+ {"<rootfs-bg-1-9-metadata>", 33704, 107},
{"<rootfs-inode-2-metadata>", -1, 1},
{"<rootfs-inode-8-metadata>", -1, 4101},
{"<rootfs-inode-11-metadata>", -1, 4},
« no previous file with comments | « metadata.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698