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

Unified Diff: tests/standalone/io/secure_socket_bad_certificate_test.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. Created 7 years, 11 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/standalone/io/secure_socket_bad_certificate_test.dart
diff --git a/tests/standalone/io/secure_socket_bad_certificate_test.dart b/tests/standalone/io/secure_socket_bad_certificate_test.dart
index f6bc1fc4d56b53a8ece3d4ec3b7c2edf48380cb4..e3a2616e381904232520883e044f53c03a330802 100644
--- a/tests/standalone/io/secure_socket_bad_certificate_test.dart
+++ b/tests/standalone/io/secure_socket_bad_certificate_test.dart
@@ -53,8 +53,8 @@ Future testCertificateCallback({String host, bool acceptCertificate}) {
(e) => e is TypeError || e is SocketIOException);
secure.onBadCertificate = (X509Certificate certificate) {
Expect.isTrue(certificate.subject.contains("O=Google Inc"));
- Expect.isTrue(certificate.startValidity < new Date.now());
- Expect.isTrue(certificate.endValidity > new Date.now());
+ Expect.isTrue(certificate.startValidity < new DateTime.now());
+ Expect.isTrue(certificate.endValidity > new DateTime.now());
return acceptCertificate;
};
secure.onData = () {
« no previous file with comments | « tests/standalone/io/http_headers_test.dart ('k') | tests/standalone/io/skipping_dart2js_compilations_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698