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

Unified Diff: tests/standalone/src/io/HttpShutdownTest.dart

Issue 9653026: Add writeString method to OutputStream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 8 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
« no previous file with comments | « tests/standalone/src/io/FileTest.dart ('k') | tests/standalone/src/io/HttpTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/HttpShutdownTest.dart
diff --git a/tests/standalone/src/io/HttpShutdownTest.dart b/tests/standalone/src/io/HttpShutdownTest.dart
index 5aa833424549bf76e831b5c7d84c18b32f8b8e0e..5d77bd1e91a455bd7636fe32b55a8913c0a2959c 100644
--- a/tests/standalone/src/io/HttpShutdownTest.dart
+++ b/tests/standalone/src/io/HttpShutdownTest.dart
@@ -37,7 +37,7 @@ void test2(int totalConnections) {
HttpServer server = new HttpServer();
server.listen("127.0.0.1", 0, totalConnections);
server.onRequest = (HttpRequest request, HttpResponse response) {
- response.writeString("!dlrow ,olleH");
+ response.outputStream.writeString("!dlrow ,olleH");
response.outputStream.close();
};
@@ -46,7 +46,7 @@ void test2(int totalConnections) {
for (int i = 0; i < totalConnections; i++) {
HttpClientConnection conn = client.get("127.0.0.1", server.port, "/");
conn.onRequest = (HttpClientRequest request) {
- request.writeString("Hello, world!");
+ request.outputStream.writeString("Hello, world!");
request.outputStream.close();
};
conn.onResponse = (HttpClientResponse response) {
@@ -66,7 +66,7 @@ void test3(int totalConnections) {
server.listen("127.0.0.1", 0, totalConnections);
server.onRequest = (HttpRequest request, HttpResponse response) {
request.inputStream.onClosed = () {
- response.writeString("!dlrow ,olleH");
+ response.outputStream.writeString("!dlrow ,olleH");
response.outputStream.close();
};
};
@@ -76,7 +76,7 @@ void test3(int totalConnections) {
for (int i = 0; i < totalConnections; i++) {
HttpClientConnection conn = client.get("127.0.0.1", server.port, "/");
conn.onRequest = (HttpClientRequest request) {
- request.writeString("Hello, world!");
+ request.outputStream.writeString("Hello, world!");
request.outputStream.close();
};
conn.onResponse = (HttpClientResponse response) {
« no previous file with comments | « tests/standalone/src/io/FileTest.dart ('k') | tests/standalone/src/io/HttpTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698