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

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

Issue 14083007: Add new InternetAddress class with a static lookup function (including IPv6 results). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix new test. 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/https_server_test.dart ('k') | tests/standalone/io/raw_secure_server_socket_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/raw_secure_server_closing_test.dart
diff --git a/tests/standalone/io/raw_secure_server_closing_test.dart b/tests/standalone/io/raw_secure_server_closing_test.dart
index 51e1ab223f713ba660017def7fe199c250786f95..11e641b557c4470311a4cfee9b318d5aa052b858 100644
--- a/tests/standalone/io/raw_secure_server_closing_test.dart
+++ b/tests/standalone/io/raw_secure_server_closing_test.dart
@@ -12,7 +12,6 @@ import "dart:async";
import "dart:io";
import "dart:isolate";
-const SERVER_ADDRESS = "127.0.0.1";
const HOST_NAME = "localhost";
const CERTIFICATE = "localhost_cert";
@@ -25,7 +24,7 @@ void testCloseOneEnd(String toClose) {
.then((_) {
port.close();
});
- RawSecureServerSocket.bind(SERVER_ADDRESS, 0, 5, CERTIFICATE).then((server) {
+ RawSecureServerSocket.bind(HOST_NAME, 0, 5, CERTIFICATE).then((server) {
server.listen((serverConnection) {
serverConnection.listen((event) {
if (toClose == "server" || event == RawSocketEvent.READ_CLOSED) {
@@ -55,7 +54,7 @@ void testCloseOneEnd(String toClose) {
void testCloseBothEnds() {
ReceivePort port = new ReceivePort();
- RawSecureServerSocket.bind(SERVER_ADDRESS, 0, 5, CERTIFICATE).then((server) {
+ RawSecureServerSocket.bind(HOST_NAME, 0, 5, CERTIFICATE).then((server) {
var clientEndFuture = RawSecureSocket.connect(HOST_NAME, server.port);
server.listen((serverEnd) {
clientEndFuture.then((clientEnd) {
@@ -75,7 +74,7 @@ testPauseServerSocket() {
ReceivePort port = new ReceivePort();
- RawSecureServerSocket.bind(SERVER_ADDRESS,
+ RawSecureServerSocket.bind(HOST_NAME,
0,
2 * socketCount,
CERTIFICATE).then((server) {
@@ -117,7 +116,7 @@ testCloseServer() {
ReceivePort port = new ReceivePort();
List ends = [];
- RawSecureServerSocket.bind(SERVER_ADDRESS, 0, 15, CERTIFICATE).then((server) {
+ RawSecureServerSocket.bind(HOST_NAME, 0, 15, CERTIFICATE).then((server) {
Expect.isTrue(server.port > 0);
void checkDone() {
if (ends.length < 2 * socketCount) return;
« no previous file with comments | « tests/standalone/io/https_server_test.dart ('k') | tests/standalone/io/raw_secure_server_socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698