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

Side by Side Diff: pkg/analyzer2dart/test/mock_sdk.dart

Issue 898453006: Fix mock SDK used by analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library testing.mock_sdk; 5 library testing.mock_sdk;
6 6
7 import 'package:analyzer/file_system/file_system.dart' as resource; 7 import 'package:analyzer/file_system/file_system.dart' as resource;
8 import 'package:analyzer/file_system/memory_file_system.dart' as resource; 8 import 'package:analyzer/file_system/memory_file_system.dart' as resource;
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/sdk.dart'; 10 import 'package:analyzer/src/generated/sdk.dart';
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 external bool identical(Object a, Object b); 68 external bool identical(Object a, Object b);
69 69
70 void print(Object object) {} 70 void print(Object object) {}
71 71
72 typedef int Comparator<T>(T a, T b); 72 typedef int Comparator<T>(T a, T b);
73 '''); 73 ''');
74 74
75 static const _MockSdkLibrary LIB_ASYNC = 75 static const _MockSdkLibrary LIB_ASYNC =
76 const _MockSdkLibrary('async', '/lib/async/async.dart', ''' 76 const _MockSdkLibrary('async', '/lib/async/async.dart', '''
77 library dart.async; 77 library dart.async;
78 class Future { 78 class Future<T> {
79 static Future wait(List<Future> futures) => null; 79 static Future wait(List<Future> futures) => null;
80 } 80 }
81 81
82 class Stream<T> {} 82 class Stream<T> {}
83 '''); 83 ''');
84 84
85 static const _MockSdkLibrary LIB_MATH = 85 static const _MockSdkLibrary LIB_MATH =
86 const _MockSdkLibrary('math', '/lib/math/math.dart', ''' 86 const _MockSdkLibrary('math', '/lib/math/math.dart', '''
87 library dart.math; 87 library dart.math;
88 const double E = 2.718281828459045; 88 const double E = 2.718281828459045;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 bool get isInternal => throw unimplemented; 239 bool get isInternal => throw unimplemented;
240 240
241 @override 241 @override
242 bool get isShared => throw unimplemented; 242 bool get isShared => throw unimplemented;
243 243
244 @override 244 @override
245 bool get isVmLibrary => throw unimplemented; 245 bool get isVmLibrary => throw unimplemented;
246 246
247 UnimplementedError get unimplemented => new UnimplementedError(); 247 UnimplementedError get unimplemented => new UnimplementedError();
248 } 248 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698