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

Unified Diff: tests/lib/src/crypto/sha1Test.dart

Issue 10134055: Add common interface for cryptographic hash functions to lib/crypto.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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: tests/lib/src/crypto/sha1Test.dart
diff --git a/tests/lib/src/crypto/sha1Test.dart b/tests/lib/src/crypto/sha1Test.dart
index 9d23fd8999cfb9be0755d8375485fc198cfd9cbf..7128cd262d5f4b5408e4beb530e77562a0ff23f0 100644
--- a/tests/lib/src/crypto/sha1Test.dart
+++ b/tests/lib/src/crypto/sha1Test.dart
@@ -538,7 +538,7 @@ void testStatic() {
];
for (var i = 0; i < expected_values.length; i++) {
Expect.equals(expected_values[i],
- digestToString(SHA1.digest(createTestArr(i))));
+ digestToString(new SHA1().update(createTestArr(i)).digest()));
}
}

Powered by Google App Engine
This is Rietveld 408576698