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

Unified Diff: delta_performer_unittest.cc

Issue 3592008: AU: Verify delta payload signature and signed hash. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: move /tmp files to /var/run 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 09a4c7d3e1807237c56af260a00df84eab22989a..8c7d2cd805c35f1e29782258b3145970e816def6 100755
--- a/delta_performer_unittest.cc
+++ b/delta_performer_unittest.cc
@@ -29,6 +29,7 @@ using std::string;
using std::vector;
extern const char* kUnittestPrivateKeyPath;
+extern const char* kUnittestPublicKeyPath;
class DeltaPerformerTest : public ::testing::Test { };
@@ -255,6 +256,9 @@ TEST(DeltaPerformerTest, RunAsRootSmallImageTest) {
EXPECT_TRUE(utils::ReadFile(old_kernel, &updated_kernel_partition));
EXPECT_EQ(0, strncmp(&updated_kernel_partition[0], new_data_string,
strlen(new_data_string)));
+
+ EXPECT_TRUE(utils::FileExists(kUnittestPublicKeyPath));
+ EXPECT_TRUE(performer.VerifyPayload(kUnittestPublicKeyPath));
}
} // namespace chromeos_update_engine
« 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