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

Unified Diff: third_party/pkg/angular/lib/tools/io.dart

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 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: third_party/pkg/angular/lib/tools/io.dart
diff --git a/third_party/pkg/angular/lib/tools/io.dart b/third_party/pkg/angular/lib/tools/io.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e6d7de8c40e99b27e31fe071c40fb3c19b5cea44
--- /dev/null
+++ b/third_party/pkg/angular/lib/tools/io.dart
@@ -0,0 +1,14 @@
+library angular.io;
+
+typedef FsVisitor(String file);
+
+/**
+ * A simple mockabe wrapper around dart:io that can be used without introducing
+ * direct dependencies on dart:io.
+ */
+abstract class IoService {
+
+ String readAsStringSync(String filePath);
+
+ void visitFs(String rootDir, FsVisitor visitor);
+}

Powered by Google App Engine
This is Rietveld 408576698