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

Unified Diff: tests/standalone/io/file_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/file_system_links_test.dart ('k') | tests/standalone/io/http_body_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index ce493f8964a328465e15b0df092b35cfeb8a2ea9..03b6c758b961f9e1df270399c2da06ae7c4a2f55 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -92,7 +92,7 @@ class FileTest {
tempDirectory.path + "/out_read_write_stream";
var file2 = new File(outFilename);
var output = file2.openWrite();
- output.writeBytes(buffer);
+ output.add(buffer);
output.close();
output.done.then((_) {
// Now read the contents of the file just written.
@@ -130,8 +130,8 @@ class FileTest {
tempDirectory.path + "/out_read_write_stream_large_file";
File file = new File(filename);
IOSink output = file.openWrite();
- output.writeBytes(buffer);
- output.writeBytes(buffer);
+ output.add(buffer);
+ output.add(buffer);
output.close();
output.done.then((_) {
Stream input = file.openRead();
@@ -345,12 +345,12 @@ class FileTest {
file.createSync();
List<int> buffer = content.codeUnits;
var output = file.openWrite();
- output.writeBytes(buffer);
+ output.add(buffer);
output.close();
output.done.then((_) {
File file2 = new File(filename);
var appendingOutput = file2.openWrite(mode: FileMode.APPEND);
- appendingOutput.writeBytes(buffer);
+ appendingOutput.add(buffer);
appendingOutput.close();
appendingOutput.done.then((_) {
File file3 = new File(filename);
@@ -766,7 +766,7 @@ class FileTest {
file.createSync();
var output = file.openWrite();
output.close();
- Expect.throws(() => output.writeBytes(buffer));
+ Expect.throws(() => output.add(buffer));
output.done.then((_) {
file.deleteSync();
asyncTestDone("testCloseExceptionStream");
« no previous file with comments | « tests/standalone/io/file_system_links_test.dart ('k') | tests/standalone/io/http_body_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698