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

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

Issue 60293003: Version 0.8.10.5 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 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
« no previous file with comments | « dart/tests/language/type_parameter_test.dart ('k') | dart/tests/standalone/io/socket_info_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/standalone/io/http_connection_info_test.dart
===================================================================
--- dart/tests/standalone/io/http_connection_info_test.dart (revision 29908)
+++ dart/tests/standalone/io/http_connection_info_test.dart (working copy)
@@ -11,8 +11,8 @@
server.listen((request) {
var response = request.response;
- Expect.isTrue(request.connectionInfo.remoteHost is String);
- Expect.isTrue(response.connectionInfo.remoteHost is String);
+ Expect.isTrue(request.connectionInfo.remoteAddress is InternetAddress);
+ Expect.isTrue(response.connectionInfo.remoteAddress is InternetAddress);
Expect.equals(request.connectionInfo.localPort, server.port);
Expect.equals(response.connectionInfo.localPort, server.port);
Expect.isNotNull(clientPort);
@@ -26,7 +26,8 @@
HttpClient client = new HttpClient();
client.get("127.0.0.1", server.port, "/")
.then((request) {
- Expect.isTrue(request.connectionInfo.remoteHost is String);
+ Expect.isTrue(
+ request.connectionInfo.remoteAddress is InternetAddress);
Expect.equals(request.connectionInfo.remotePort, server.port);
clientPort = request.connectionInfo.localPort;
return request.close();
« no previous file with comments | « dart/tests/language/type_parameter_test.dart ('k') | dart/tests/standalone/io/socket_info_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698