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

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

Issue 1721283002: Implements secure sockets on Mac OS with SecureTransport API (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 9 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_bad_certificate_test.dart
diff --git a/tests/standalone/io/secure_bad_certificate_test.dart b/tests/standalone/io/secure_bad_certificate_test.dart
index 610bcdb48bfaa78e2ed7df91186889c936bbe132..7b2828479d39a18a265651f118f6ef9c46df5bfc 100644
--- a/tests/standalone/io/secure_bad_certificate_test.dart
+++ b/tests/standalone/io/secure_bad_certificate_test.dart
@@ -55,8 +55,8 @@ Future runClient(int port,
callbackReturns,
result) async {
badCertificateCallback(X509Certificate certificate) {
- Expect.equals('/CN=rootauthority', certificate.subject);
- Expect.equals('/CN=rootauthority', certificate.issuer);
+ Expect.isTrue(certificate.subject.contains('rootauthority'));
+ Expect.isTrue(certificate.issuer.contains('rootauthority'));
// Throw exception if one is requested.
if (callbackReturns == 'exception') throw new CustomException();
return callbackReturns;
« no previous file with comments | « tests/standalone/io/https_bad_certificate_test.dart ('k') | tests/standalone/io/secure_builtin_roots_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698