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

Unified Diff: packages/crypto/test/sha1_test.dart

Issue 3015713002: Roll to pickup pool changes
Patch Set: Created 3 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 | « packages/crypto/test/hmac_sha256_test.dart ('k') | packages/crypto/test/sha256_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/crypto/test/sha1_test.dart
diff --git a/packages/crypto/test/sha1_test.dart b/packages/crypto/test/sha1_test.dart
index c0575e3335b607465b5b2fc2397eee4e663541af..dffb400f4b6857c1dde5ba33fce5d8ec4c956663 100644
--- a/packages/crypto/test/sha1_test.dart
+++ b/packages/crypto/test/sha1_test.dart
@@ -2,14 +2,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import "dart:async";
-import "dart:convert";
+import 'dart:async';
+import 'dart:convert';
-import "package:crypto/crypto.dart";
-import "package:test/test.dart";
+import 'package:crypto/crypto.dart';
+import 'package:test/test.dart';
void main() {
- group("with a chunked converter", () {
+ group('with a chunked converter', () {
test('add may not be called after close', () {
var sink =
sha1.startChunkedConversion(new StreamController<Digest>().sink);
@@ -31,7 +31,7 @@ void main() {
expectAsync1((accumulated) {
expect(accumulated.length, equals(1));
expect(accumulated.first.toString(),
- equals("da39a3ee5e6b4b0d3255bfef95601890afd80709"));
+ equals('da39a3ee5e6b4b0d3255bfef95601890afd80709'));
}));
var outer = sha1.startChunkedConversion(inner);
@@ -39,7 +39,7 @@ void main() {
});
});
- group("standard vector", () {
+ group('standard vector', () {
for (var i = 0; i < _inputs.length; i++) {
test(_digests[i], () {
expect(sha1.convert(_inputs[i]).toString(), equals(_digests[i]));
@@ -51,7 +51,7 @@ void main() {
// Standard test vectors from:
// http://csrc.nist.gov/groups/STM/cavp/documents/shs/shabytetestvectors.zip
-const _inputs = const [
+const _inputs = const <List<int>>[
const [],
const [0x36],
const [0x19, 0x5a],
« no previous file with comments | « packages/crypto/test/hmac_sha256_test.dart ('k') | packages/crypto/test/sha256_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698