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

Unified Diff: runtime/tests/vm/dart/hello_fuchsia_test.dart

Issue 2579483002: Fuchsia: Directory listing (Closed)
Patch Set: Format Created 4 years 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 | « runtime/bin/directory_fuchsia.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tests/vm/dart/hello_fuchsia_test.dart
diff --git a/runtime/tests/vm/dart/hello_fuchsia_test.dart b/runtime/tests/vm/dart/hello_fuchsia_test.dart
index 1c36a0cf2870a9d582f21592190b68ced079df7e..bcda2bfab336050b20e3c2ecf5a6ccfaad3dd7e0 100644
--- a/runtime/tests/vm/dart/hello_fuchsia_test.dart
+++ b/runtime/tests/vm/dart/hello_fuchsia_test.dart
@@ -386,6 +386,13 @@ Future testProcess() async {
print("dart --version exited with code $code");
}
+Future testLs(String path) async {
+ Stream<FileSystemEntity> stream = (new Directory(path)).list();
+ await for (FileSystemEntity fse in stream) {
+ print(fse.path);
+ }
+}
+
main() async {
print("Hello, Fuchsia!");
@@ -417,6 +424,10 @@ main() async {
await testGoogleHttps(null, 'pass');
print("testGoogleHttps done");
+ print("lsTest");
+ await testLs("/");
+ print("lsTest done");
+
print("testProcess");
await testProcess();
print("testProcess done");
« no previous file with comments | « runtime/bin/directory_fuchsia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698