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

Unified Diff: dart/frog/leg/lib/io.dart

Issue 9813012: Add "mock" compilation feature to dart2js and use it to improve test coverage. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 years, 9 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: dart/frog/leg/lib/io.dart
diff --git a/dart/frog/leg/lib/io.dart b/dart/frog/leg/lib/io.dart
index ea3c69b2d130b650c114d580434b07a9f0aac700..40484505ed1a7c89e382a7e17fb2170668955170 100644
--- a/dart/frog/leg/lib/io.dart
+++ b/dart/frog/leg/lib/io.dart
@@ -68,6 +68,10 @@ class _Directory implements Directory {
factory Directory(arg) {
throw new UnsupportedOperationException('new Directory($arg)');
}
+
+ factory Directory.current() {
+ throw new UnsupportedOperationException('new Directory.current()');
+ }
}
class _Process implements Process {
@@ -88,7 +92,7 @@ class _ServerSocket implements ServerSocket {
class _Socket implements Socket {
factory Socket(String host, int port) {
- throw new UnsupportedOperationException('new Socket($host, $int)');
+ throw new UnsupportedOperationException('new Socket($host, $port)');
}
}

Powered by Google App Engine
This is Rietveld 408576698