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

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

Issue 11419138: Rename TlsSocket to SecureSocket, and all other Tls... items to Secure.... (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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_stream_test.dart
diff --git a/tests/standalone/io/tls_stream_test.dart b/tests/standalone/io/secure_stream_test.dart
similarity index 79%
rename from tests/standalone/io/tls_stream_test.dart
rename to tests/standalone/io/secure_stream_test.dart
index c726efd95917ec39a59941741ccb162ba4c88978..efea83b0b9bc0fb9bcd06d9674a5f2abf658e3a7 100644
--- a/tests/standalone/io/tls_stream_test.dart
+++ b/tests/standalone/io/secure_stream_test.dart
@@ -14,15 +14,15 @@
void main() {
var testPkcertDatabase =
new Path.fromNative(new Options().script).directoryPath.append('pkcert/');
- TlsSocket.setCertificateDatabase(testPkcertDatabase.toNativePath());
- // TODO(3593): Use a Dart HTTPS server for this test using TLS server sockets.
+ SecureSocket.setCertificateDatabase(testPkcertDatabase.toNativePath());
+ // TODO(3593): Use a Dart HTTPS server for this test using SECURE server sockets.
Mads Ager (google) 2012/11/23 07:31:15 Ditto.
// When we use a Dart HTTPS server, allow --short_socket_write. The flag
// causes fragmentation of the client hello message, which doesn't seem to
// work with www.google.dk.
- var tls = new TlsSocket("www.google.dk", 443);
+ var secure = new SecureSocket("www.google.dk", 443);
List<String> chunks = <String>[];
- var input = tls.inputStream;
- var output = tls.outputStream;
+ var input = secure.inputStream;
+ var output = secure.outputStream;
output.write("GET / HTTP/1.0\r\nHost: www.google.dk\r\n\r\n".charCodes);
output.close();

Powered by Google App Engine
This is Rietveld 408576698