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

Unified Diff: tests/standalone/src/FileTest.dart

Issue 8413034: New OutputStream interface (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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
Index: tests/standalone/src/FileTest.dart
diff --git a/tests/standalone/src/FileTest.dart b/tests/standalone/src/FileTest.dart
index 3c662bc061a7b82cdb32f58c9363608ad588c803..5639fd234b2349d9ea46717d38e3b4167c34fb76 100644
--- a/tests/standalone/src/FileTest.dart
+++ b/tests/standalone/src/FileTest.dart
@@ -47,7 +47,7 @@ class FileTest {
String outFilename = getFilename("tests/vm/data/fixed_length_file_out");
file = new File(outFilename);
OutputStream output = file.openOutputStream();
- bool writeDone = output.write(buffer1, 0, 42, null);
+ bool writeDone = output.writeFrom(buffer1, 0, 42);
Expect.equals(true, writeDone);
output.close();
// Now read the contents of the file just written.
@@ -259,11 +259,11 @@ class FileTest {
Expect.equals(true, exceptionCaught);
Expect.equals(true, !wrongExceptionCaught);
exceptionCaught = false;
- FileOutputStream output = file.openOutputStream();
+ OutputStream output = file.openOutputStream();
output.close();
try {
List<int> buffer = new List<int>(42);
- bool readDone = output.write(buffer, 0, 12, null);
+ bool readDone = output.writeFrom(buffer, 0, 12);
} catch (FileIOException ex) {
exceptionCaught = true;
} catch (Exception ex) {

Powered by Google App Engine
This is Rietveld 408576698