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

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

Issue 10828320: Revert "Start adding TLS (SSL) sockets to dart:io." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « runtime/include/dart_api.h ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/tls_socket_test.dart
diff --git a/tests/standalone/io/tls_socket_test.dart b/tests/standalone/io/tls_socket_test.dart
deleted file mode 100644
index 599316b9023b3b57be9450cf4913ea9d09b9b4f3..0000000000000000000000000000000000000000
--- a/tests/standalone/io/tls_socket_test.dart
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// 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.
-//
-// VMOptions=
-// VMOptions=--short_socket_read
-// VMOptions=--short_socket_write
-// VMOptions=--short_socket_read --short_socket_write
-
-#import("dart:isolate");
-#import("dart:io");
-
-void main() {
- // TODO(3593): Use a Dart HTTPS server for this test using TLS server sockets.
- var tls = new TlsSocket("www.google.dk", 443);
- String message = '';
- tls.onConnect = () {
- var get_list =
- "GET / HTTP/1.0\r\nHost: www.google.dk\r\n\r\n".charCodes();
- tls.writeList(get_list, 0, 20);
- tls.writeList(get_list, 20, get_list.length - 20);
- };
- tls.onData = () {
- var buffer = new List(2000);
- int len = tls.readList(buffer, 0, 2000);
- var received = new String.fromCharCodes(buffer.getRange(0, len));
- message = '$message$received';
- };
- tls.onClosed = () {
- Expect.isTrue(message.contains('</script></body></html>'));
- };
-}
« no previous file with comments | « runtime/include/dart_api.h ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698