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

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

Issue 24395013: Merge services into a shared IOService in dart:io, and use a native port. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Finish off native_service Created 7 years, 3 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 | « sdk/lib/io/secure_socket.dart ('k') | no next file » | 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 1c5f860dc5d3e7b23e7ab5576c40305b63354192..3b8c383469b2f1d29ede4d03f6d3565e0c0ca285 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -528,15 +528,15 @@ class FileTest {
file.create().then((ignore) {
file.open(mode: WRITE).then((RandomAccessFile openedFile) {
// Write bytes from 0 to 7.
- openedFile.writeFrom([0], 0, 1);
- openedFile.writeFrom(const [1], 0, 1);
- openedFile.writeFrom(new MyListOfOneElement(2), 0, 1);
+ openedFile.writeFromSync([0], 0, 1);
+ openedFile.writeFromSync(const [1], 0, 1);
+ openedFile.writeFromSync(new MyListOfOneElement(2), 0, 1);
var x = 12345678901234567890123456789012345678901234567890;
var y = 12345678901234567890123456789012345678901234567893;
- openedFile.writeFrom([y - x], 0, 1);
- openedFile.writeFrom([260], 0, 1); // 260 = 256 + 4 = 0x104.
- openedFile.writeFrom(const [261], 0, 1);
- openedFile.writeFrom(new MyListOfOneElement(262), 0, 1);
+ openedFile.writeFromSync([y - x], 0, 1);
+ openedFile.writeFromSync([260], 0, 1); // 260 = 256 + 4 = 0x104.
+ openedFile.writeFromSync(const [261], 0, 1);
+ openedFile.writeFromSync(new MyListOfOneElement(262), 0, 1);
x = 12345678901234567890123456789012345678901234567890;
y = 12345678901234567890123456789012345678901234568153;
openedFile.writeFrom([y - x], 0, 1).then((ignore) {
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698