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

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

Issue 9420001: Various mocks and tweaks to reduce cancels in Leg. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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
« no previous file with comments | « dart/frog/leg/lib/mock.dart ('k') | dart/frog/leg/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/lib/mockimpl.dart
diff --git a/dart/frog/leg/lib/mockimpl.dart b/dart/frog/leg/lib/mockimpl.dart
new file mode 100644
index 0000000000000000000000000000000000000000..959b67536159b3e93ecbb8e0b150fd53627f04e1
--- /dev/null
+++ b/dart/frog/leg/lib/mockimpl.dart
@@ -0,0 +1,84 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// Mocks of classes and interfaces that Leg cannot read directly.
+
+// TODO(ahe): Remove this file.
+
+class JSSyntaxRegExp {}
+class StringBufferImpl {}
+class DateImplementation {}
+class ReceivePortFactory {}
+
+class StringBase {
+ static String createFromCharCodes(List<int> charCodes) {
+ throw "StringBase.createFromCharCodes is not implemented";
+ }
+
+ static String join(List<String> strings, String separator) {
+ throw "StringBase.join is not implemented";
+ }
+
+ static String concatAll(List<String> strings) {
+ throw "StringBase.concatAll is not implemented";
+ }
+}
+
+class MathNatives {
+ static int parseInt(String str) {
+ throw 'MathNatives.parseInt is not implemented';
+ }
+
+ static double parseDouble(String str) {
+ throw 'MathNatives.parseDouble is not implemented';
+ }
+
+ static double sqrt(num value) {
+ throw 'MathNatives.sqrt is not implemented';
+ }
+
+ static double sin(num value) {
+ throw 'MathNatives.sin is not implemented';
+ }
+
+ static double cos(num value) {
+ throw 'MathNatives.cos is not implemented';
+ }
+
+ static double tan(num value) {
+ throw 'MathNatives.tan is not implemented';
+ }
+
+ static double acos(num value) {
+ throw 'MathNatives.acos is not implemented';
+ }
+
+ static double asin(num value) {
+ throw 'MathNatives.asin is not implemented';
+ }
+
+ static double atan(num value) {
+ throw 'MathNatives.atan is not implemented';
+ }
+
+ static double atan2(num a, num b) {
+ throw 'MathNatives.atan2 is not implemented';
+ }
+
+ static double exp(num value) {
+ throw 'MathNatives.exp is not implemented';
+ }
+
+ static double log(num value) {
+ throw 'MathNatives.log is not implemented';
+ }
+
+ static num pow(num value, num exponent) {
+ throw 'MathNatives.pow is not implemented';
+ }
+
+ static double random() {
+ throw 'MathNatives.random is not implemented';
+ }
+}
« no previous file with comments | « dart/frog/leg/lib/mock.dart ('k') | dart/frog/leg/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698