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

Unified Diff: omaha_request_action_unittest.cc

Issue 3419018: AU: Switch from SHA-1 to SHA-256 hash. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: update unit test Created 10 years, 3 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 | « omaha_request_action.cc ('k') | payload_signer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: omaha_request_action_unittest.cc
diff --git a/omaha_request_action_unittest.cc b/omaha_request_action_unittest.cc
index 7a56b418d3c753aaff867d229202a7b22aea815b..8b15a8637f5cbaf7c50a0e312fd330c27c471546 100755
--- a/omaha_request_action_unittest.cc
+++ b/omaha_request_action_unittest.cc
@@ -70,8 +70,8 @@ string GetUpdateResponse(const string& app_id,
"status=\"ok\"/><updatecheck DisplayVersion=\"" + display_version + "\" "
"MoreInfo=\"" + more_info_url + "\" Prompt=\"" + prompt + "\" "
"IsDelta=\"true\" "
- "codebase=\"" + codebase + "\" "
- "hash=\"" + hash + "\" needsadmin=\"" + needsadmin + "\" "
+ "codebase=\"" + codebase + "\" hash=\"not-applicable\" "
+ "sha256=\"" + hash + "\" needsadmin=\"" + needsadmin + "\" "
"size=\"" + size + "\" status=\"ok\"/></app></gupdate>";
}
@@ -339,8 +339,8 @@ TEST(OmahaRequestActionTest, MissingFieldTest) {
"status=\"ok\"/><updatecheck "
"DisplayVersion=\"1.2.3.4\" "
"Prompt=\"false\" "
- "codebase=\"http://code/base\" "
- "hash=\"HASH1234=\" needsadmin=\"true\" "
+ "codebase=\"http://code/base\" hash=\"foo\" "
+ "sha256=\"HASH1234=\" needsadmin=\"true\" "
"size=\"123\" "
"status=\"ok\"/></app></gupdate>",
kActionCodeSuccess,
« no previous file with comments | « omaha_request_action.cc ('k') | payload_signer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698