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

Unified Diff: dart/pkg/analysis_server/test/mock_sdk.dart

Issue 931103003: Version 1.9.0-dev.8.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 5 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
Index: dart/pkg/analysis_server/test/mock_sdk.dart
===================================================================
--- dart/pkg/analysis_server/test/mock_sdk.dart (revision 43805)
+++ dart/pkg/analysis_server/test/mock_sdk.dart (working copy)
@@ -108,6 +108,8 @@
import 'dart:math';
class Future<T> {
+ factory Future.delayed(Duration duration, [T computation()]) => null;
+ factory Future.value([value]) => null;
static Future wait(List<Future> futures) => null;
}
@@ -143,7 +145,11 @@
external double cos(num x);
external double sin(num x);
external double sqrt(num x);
-class Random {}
+class Random {
+ bool nextBool() => true;
+ double nextDouble() => 2.0;
+ int nextInt() => 1;
+}
''');
static const _MockSdkLibrary LIB_HTML =

Powered by Google App Engine
This is Rietveld 408576698