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

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

Issue 14153003: Remove deprecated <, <=, >, and >= of DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ec0b48ee99be43ad576ecba8409b8b20e9355361..658d5601326159c230d98fde3b5149af7a05d974 100644
--- a/tests/standalone/io/secure_socket_bad_certificate_test.dart
+++ b/tests/standalone/io/secure_socket_bad_certificate_test.dart
@@ -40,8 +40,8 @@ Future testCertificateCallback({String host, bool acceptCertificate}) {
bool badCertificateCallback(X509Certificate certificate) {
Expect.isTrue(certificate.subject.contains("O=Google Inc"));
- Expect.isTrue(certificate.startValidity < new DateTime.now());
- Expect.isTrue(certificate.endValidity > new DateTime.now());
+ Expect.isTrue(certificate.startValidity.isBefore(new DateTime.now()));
+ Expect.isTrue(certificate.endValidity.isAfter(new DateTime.now()));
return acceptCertificate;
};
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698