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

Issue 13453002: Read files in chunks, not relaying on size. (Closed)

Created:
7 years, 8 months ago by Anders Johnsen
Modified:
7 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Read files in chunks, not relaying on size. Allows for reading of /proc inputs on linux/mac. BUG=https://code.google.com/p/dart/issues/detail?id=9572,https://code.google.com/p/dart/issues/detail?id=401 Committed: https://code.google.com/p/dart/source/detail?r=20768

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Remove redundant .toString(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -18 lines) Patch
M sdk/lib/io/buffer_list.dart View 1 chunk +2 lines, -1 line 0 comments Download
M sdk/lib/io/file_impl.dart View 3 chunks +9 lines, -10 lines 0 comments Download
A tests/standalone/io/file_read_special_device_test.dart View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A + tests/standalone/io/file_read_stdio_script.dart View 1 1 chunk +4 lines, -7 lines 0 comments Download
M tests/standalone/standalone.status View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Anders Johnsen
Any suggestions for how we should test this? Just a non-windows test, reading 'new File('/proc/self/status').readAsStringSync();' ...
7 years, 8 months ago (2013-04-02 07:28:38 UTC) #1
Mads Ager (google)
LGTM Adding a Linux/Mac only test sounds like a good idea.
7 years, 8 months ago (2013-04-02 07:46:14 UTC) #2
Søren Gjesse
LGTM Regarding testing, /proc is only available on Linux, but testing reading something in there ...
7 years, 8 months ago (2013-04-02 07:46:29 UTC) #3
Anders Johnsen
PTAL
7 years, 8 months ago (2013-04-02 09:51:35 UTC) #4
Mads Ager (google)
lgtm https://codereview.chromium.org/13453002/diff/5001/tests/standalone/io/file_read_special_device_test.dart File tests/standalone/io/file_read_special_device_test.dart (right): https://codereview.chromium.org/13453002/diff/5001/tests/standalone/io/file_read_special_device_test.dart#newcode9 tests/standalone/io/file_read_special_device_test.dart:9: var dir = new Path(options.script).directoryPath.toString(); You don't need ...
7 years, 8 months ago (2013-04-02 10:20:20 UTC) #5
Søren Gjesse
lgtm
7 years, 8 months ago (2013-04-02 10:24:55 UTC) #6
Anders Johnsen
Ty, landing! https://codereview.chromium.org/13453002/diff/5001/tests/standalone/io/file_read_special_device_test.dart File tests/standalone/io/file_read_special_device_test.dart (right): https://codereview.chromium.org/13453002/diff/5001/tests/standalone/io/file_read_special_device_test.dart#newcode9 tests/standalone/io/file_read_special_device_test.dart:9: var dir = new Path(options.script).directoryPath.toString(); On 2013/04/02 ...
7 years, 8 months ago (2013-04-02 10:39:02 UTC) #7
Anders Johnsen
7 years, 8 months ago (2013-04-02 10:40:12 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 manually as r20768 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698