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

Unified Diff: payload_signer_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 | « payload_signer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: payload_signer_unittest.cc
diff --git a/payload_signer_unittest.cc b/payload_signer_unittest.cc
index 2ee58f59ff07bc914a34e6fb8cbfc0441e0eb3d3..ff31f0269ecdf0628b0d4e9b36886f59c9d465f4 100644
--- a/payload_signer_unittest.cc
+++ b/payload_signer_unittest.cc
@@ -26,22 +26,22 @@ TEST(PayloadSignerTest, SimpleTest) {
// Some data and its corresponding signature:
const string kDataToSign = "This is some data to sign.";
const char kExpectedSignature[] = {
- 0x00, 0x8d, 0x20, 0x22, 0x87, 0xd3, 0xd0, 0xeb,
- 0x85, 0x80, 0xde, 0x76, 0xa4, 0x5a, 0xac, 0xdc,
- 0xa8, 0xe0, 0x6e, 0x10, 0x98, 0xc3, 0xa4, 0x55,
- 0x48, 0xbf, 0x15, 0x98, 0x32, 0xda, 0xbe, 0x21,
- 0x3d, 0xa8, 0x1a, 0xb6, 0xf9, 0x93, 0x03, 0x70,
- 0x44, 0x1b, 0xec, 0x39, 0xe3, 0xd4, 0xfd, 0x6b,
- 0xff, 0x84, 0xee, 0x60, 0xbe, 0xed, 0x9e, 0x5b,
- 0xac, 0xd5, 0xd6, 0x1a, 0xf9, 0x4e, 0xdb, 0x6d,
- 0x11, 0x9e, 0x01, 0xb1, 0xcb, 0x55, 0x05, 0x52,
- 0x8c, 0xad, 0xb6, 0x8e, 0x9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0xba, 0xbc, 0x80, 0xb5, 0x55
};
string data_path;
« no previous file with comments | « payload_signer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698