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

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

Issue 14150002: Remove StreamSink(replaced by EventSink) and make IOSink extend EventSink. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/http_client_connect_test.dart ('k') | tests/standalone/io/http_close_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_client_request_test.dart
diff --git a/tests/standalone/io/http_client_request_test.dart b/tests/standalone/io/http_client_request_test.dart
index 7d77c032a8dd77dbfeec1da0b49804596640f73d..a9434d31781e2a12eeb3e7ba75c39f0ebf8464d9 100644
--- a/tests/standalone/io/http_client_request_test.dart
+++ b/tests/standalone/io/http_client_request_test.dart
@@ -48,7 +48,7 @@ void testBadResponseAdd() {
testClientRequest((request) {
var port = new ReceivePort();
request.contentLength = 0;
- request.writeBytes([0]);
+ request.add([0]);
request.close();
request.done.catchError((error) {
port.close();
@@ -59,8 +59,8 @@ void testBadResponseAdd() {
testClientRequest((request) {
var port = new ReceivePort();
request.contentLength = 5;
- request.writeBytes([0, 0, 0]);
- request.writeBytes([0, 0, 0]);
+ request.add([0, 0, 0]);
+ request.add([0, 0, 0]);
request.close();
request.done.catchError((error) {
port.close();
@@ -71,9 +71,9 @@ void testBadResponseAdd() {
testClientRequest((request) {
var port = new ReceivePort();
request.contentLength = 0;
- request.writeBytes(new Uint8List(64 * 1024));
- request.writeBytes(new Uint8List(64 * 1024));
- request.writeBytes(new Uint8List(64 * 1024));
+ request.add(new Uint8List(64 * 1024));
+ request.add(new Uint8List(64 * 1024));
+ request.add(new Uint8List(64 * 1024));
request.close();
request.done.catchError((error) {
port.close();
@@ -96,7 +96,7 @@ void testBadResponseClose() {
testClientRequest((request) {
var port = new ReceivePort();
request.contentLength = 5;
- request.writeBytes([0]);
+ request.add([0]);
request.close();
request.done.catchError((error) {
port.close();
« no previous file with comments | « tests/standalone/io/http_client_connect_test.dart ('k') | tests/standalone/io/http_close_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698