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

Unified Diff: delta_performer_unittest.cc

Issue 3599025: AU: Verify that the applied delta update matches the server-sent hashes. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: 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
« no previous file with comments | « delta_performer.cc ('k') | download_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: delta_performer_unittest.cc
diff --git a/delta_performer_unittest.cc b/delta_performer_unittest.cc
index b8d6554eb9493edcd043079bd0eab9f0a48117d2..a3c43f68ce2e283c3272ab7077ec22e28c746371 100755
--- a/delta_performer_unittest.cc
+++ b/delta_performer_unittest.cc
@@ -286,6 +286,7 @@ TEST(DeltaPerformerTest, RunAsRootSmallImageTest) {
EXPECT_EQ(0, performer.Close());
CompareFilesByBlock(old_kernel, new_kernel);
+ CompareFilesByBlock(a_img, b_img);
vector<char> updated_kernel_partition;
EXPECT_TRUE(utils::ReadFile(old_kernel, &updated_kernel_partition));
@@ -297,6 +298,7 @@ TEST(DeltaPerformerTest, RunAsRootSmallImageTest) {
kUnittestPublicKeyPath,
OmahaHashCalculator::OmahaHashOfData(delta),
delta.size()));
+ EXPECT_TRUE(performer.VerifyAppliedUpdate(a_img, old_kernel));
}
TEST(DeltaPerformerTest, NewFullUpdateTest) {
« no previous file with comments | « delta_performer.cc ('k') | download_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698