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

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

Issue 12504006: Make IOSink implement StringSink (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed second round of review comments Created 7 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/io/http_keep_alive_test.dart ('k') | tests/standalone/io/http_read_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_proxy_test.dart
diff --git a/tests/standalone/io/http_proxy_test.dart b/tests/standalone/io/http_proxy_test.dart
index af8cdff4882b8fe658f1ecb1416feb2718a2f160..27ac6105c9f248f46a6ce4b03a3ac297d9b41f2e 100644
--- a/tests/standalone/io/http_proxy_test.dart
+++ b/tests/standalone/io/http_proxy_test.dart
@@ -49,7 +49,7 @@ class Server {
String path = request.uri.path.substring(1);
String content = "$path$path$path";
Expect.equals(content, body.toString());
- response.addString(request.uri.path);
+ response.write(request.uri.path);
response.close();
});
});
@@ -165,7 +165,7 @@ void testDirectProxy() {
.then((HttpClientRequest clientRequest) {
String content = "$i$i$i";
clientRequest.contentLength = content.length;
- clientRequest.addString(content);
+ clientRequest.write(content);
return clientRequest.close();
})
.then((HttpClientResponse response) {
@@ -224,7 +224,7 @@ void testProxy() {
client.postUrl(Uri.parse(url))
.then((HttpClientRequest clientRequest) {
String content = "$i$i$i";
- clientRequest.addString(content);
+ clientRequest.write(content);
return clientRequest.close();
})
.then((HttpClientResponse response) {
@@ -290,7 +290,7 @@ void testProxyChain() {
.then((HttpClientRequest clientRequest) {
String content = "$i$i$i";
clientRequest.contentLength = content.length;
- clientRequest.addString(content);
+ clientRequest.write(content);
return clientRequest.close();
})
.then((HttpClientResponse response) {
@@ -333,7 +333,7 @@ void testRealProxy() {
.then((HttpClientRequest clientRequest) {
String content = "$i$i$i";
clientRequest.contentLength = content.length;
- clientRequest.addString(content);
+ clientRequest.write(content);
return clientRequest.close();
})
.then((HttpClientResponse response) {
« no previous file with comments | « tests/standalone/io/http_keep_alive_test.dart ('k') | tests/standalone/io/http_read_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698