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

Unified Diff: dart/frog/leg/lib/mock.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/mock.dart
diff --git a/dart/frog/leg/lib/mock.dart b/dart/frog/leg/lib/mock.dart
index ce86fbe718f8dbb14fbd017acfef10fb58020a9f..74421d3b245313f6212ade9507870856e97d41ad 100644
--- a/dart/frog/leg/lib/mock.dart
+++ b/dart/frog/leg/lib/mock.dart
@@ -25,3 +25,13 @@ class InternalError {
class StaticResolutionException implements Exception {}
void assert(condition) {}
+
+interface ByteArray extends List default _InternalByteArray {
+ ByteArray(int length);
+}
+
+class _InternalByteArray {
+ factory _InternalByteArray(int length) {
+ throw new UnsupportedOperationException("new ByteArray($length)");
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698