Upgrade tests to the new version of test package

Upgrade to test 0.12.2, because unittest(test < 0.12) package is already obsolete.

BUG=
R=lrn@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//1151753006
diff --git a/pubspec.yaml b/pubspec.yaml
index d990e8a..04fc65a 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -6,4 +6,4 @@
 environment:
   sdk: '>=1.0.0 <2.0.0'
 dev_dependencies:
-  unittest: '>=0.10.0 <0.11.0'
+  test: '>=0.12.0 <0.13.0'
diff --git a/test/base64_test.dart b/test/base64_test.dart
index 4215af9..b5647b0 100644
--- a/test/base64_test.dart
+++ b/test/base64_test.dart
@@ -8,7 +8,7 @@
 import 'dart:math';
 
 import "package:crypto/crypto.dart";
-import "package:unittest/unittest.dart";
+import "package:test/test.dart";
 
 void main() {
   test('encoder', _testEncoder);
@@ -104,7 +104,7 @@
 void _testUrlSafeEncodeDecode() {
   List<int> decUrlSafe = CryptoUtils.base64StringToBytes('-_A=');
   List<int> dec = CryptoUtils.base64StringToBytes('+/A=');
-  expect(decUrlSafe, dec);
+  expect(decUrlSafe, orderedEquals(dec));
   expect(CryptoUtils.bytesToBase64(dec, urlSafe: true), '-_A=');
   expect(CryptoUtils.bytesToBase64(dec), '+/A=');
 }
@@ -118,7 +118,7 @@
       }
       var enc = CryptoUtils.bytesToBase64(x);
       var dec = CryptoUtils.base64StringToBytes(enc);
-      expect(dec, x);
+      expect(dec, orderedEquals(x));
     }
   }
 }
diff --git a/test/hmac_md5_test.dart b/test/hmac_md5_test.dart
index 15b941f..f2a10d1 100644
--- a/test/hmac_md5_test.dart
+++ b/test/hmac_md5_test.dart
@@ -6,7 +6,7 @@
 library hmac_md5_test;
 
 import "package:crypto/crypto.dart";
-import "package:unittest/unittest.dart";
+import "package:test/test.dart";
 
 void main() {
   test('standard vectors', () {
@@ -20,7 +20,7 @@
     var h = new HMAC(new MD5(), keys[i]);
     h.add(inputs[i]);
     var d = h.close();
-    expect(CryptoUtils.bytesToHex(d).startsWith(string_macs[i]), isTrue);
+    expect(CryptoUtils.bytesToHex(d), startsWith(string_macs[i]));
     expect(h.verify(macs[i]), isTrue);
     expect(h.verify(macs[(i + 1) % macs.length]), isFalse);
     expect(() => h.verify([]), throws);
diff --git a/test/hmac_sha1_test.dart b/test/hmac_sha1_test.dart
index 13ff34a..4a378c7 100644
--- a/test/hmac_sha1_test.dart
+++ b/test/hmac_sha1_test.dart
@@ -6,7 +6,7 @@
 library hmac_sha1_test;
 
 import "package:crypto/crypto.dart";
-import "package:unittest/unittest.dart";
+import "package:test/test.dart";
 
 part 'hmac_sha1_test_vectors.dart';
 
@@ -22,6 +22,6 @@
     var hmac = new HMAC(new SHA1(), keys[i]);
     hmac.add(inputs[i]);
     var d = hmac.close();
-    expect(CryptoUtils.bytesToHex(d).startsWith(macs[i]), isTrue);
+    expect(CryptoUtils.bytesToHex(d), startsWith(macs[i]));
   }
 }
diff --git a/test/hmac_sha256_test.dart b/test/hmac_sha256_test.dart
index fa31420..f2a7768 100644
--- a/test/hmac_sha256_test.dart
+++ b/test/hmac_sha256_test.dart
@@ -5,8 +5,8 @@
 // Library tag to allow the test to run on Dartium.
 library hmac_sha256_test;
 
-import "package:unittest/unittest.dart";
 import "package:crypto/crypto.dart";
+import "package:test/test.dart";
 
 part 'hmac_sha256_test_vectors.dart';
 
@@ -22,6 +22,6 @@
     var hmac = new HMAC(new SHA256(), keys[i]);
     hmac.add(inputs[i]);
     var d = hmac.close();
-    expect(CryptoUtils.bytesToHex(d).startsWith(macs[i]), isTrue);
+    expect(CryptoUtils.bytesToHex(d), startsWith(macs[i]));
   }
 }
diff --git a/test/sha1_test.dart b/test/sha1_test.dart
index acfdad8..95d973b 100644
--- a/test/sha1_test.dart
+++ b/test/sha1_test.dart
@@ -6,7 +6,7 @@
 library sha1_test;
 
 import "package:crypto/crypto.dart";
-import "package:unittest/unittest.dart";
+import "package:test/test.dart";
 
 part 'sha1_long_test_vectors.dart';
 part 'sha1_short_test_vectors.dart';
diff --git a/test/sha256_test.dart b/test/sha256_test.dart
index e86a322..ae16054 100644
--- a/test/sha256_test.dart
+++ b/test/sha256_test.dart
@@ -5,7 +5,7 @@
 // Library tag to allow Dartium to run the tests.
 library sha256_test;
 
-import "package:unittest/unittest.dart";
+import "package:test/test.dart";
 import "package:crypto/crypto.dart";
 
 part 'sha256_long_test_vectors.dart';