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

Unified Diff: delta_performer_unittest.cc

Issue 3588015: AU: Include the old/new kernel/rootfs size/hash in the update metadata. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: no need to close negative handles Created 10 years, 2 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: delta_performer_unittest.cc
diff --git a/delta_performer_unittest.cc b/delta_performer_unittest.cc
index 8717e07a6f2c1f9dd9feef2e937dd7bea6b84d03..046564003795b0276160186281bf66f82cff8111 100755
--- a/delta_performer_unittest.cc
+++ b/delta_performer_unittest.cc
@@ -214,7 +214,7 @@ TEST(DeltaPerformerTest, RunAsRootSmallImageTest) {
uint64_t manifest_metadata_size;
- // Check that the null signature blob exists
+ // Check the metadata.
{
LOG(INFO) << "delta size: " << delta.size();
DeltaArchiveManifest manifest;
@@ -242,6 +242,11 @@ TEST(DeltaPerformerTest, RunAsRootSmallImageTest) {
&expected_sig_data_length));
EXPECT_EQ(expected_sig_data_length, manifest.signatures_size());
EXPECT_FALSE(signature.data().empty());
+
+ EXPECT_EQ(old_kernel_data.size(), manifest.old_kernel_info().size());
+ EXPECT_EQ(new_kernel_data.size(), manifest.new_kernel_info().size());
+ EXPECT_EQ(utils::FileSize(a_img), manifest.old_rootfs_info().size());
+ EXPECT_EQ(utils::FileSize(b_img), manifest.new_rootfs_info().size());
}
PrefsMock prefs;
« no previous file with comments | « delta_diff_generator.cc ('k') | omaha_hash_calculator.h » ('j') | omaha_hash_calculator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698