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

Side by Side Diff: pkg/analyzer/test/src/context/mock_sdk.dart

Issue 1827293002: Use AbstractSingleUnitTest, so MockSdk in resynthesize tests. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 unified diff | Download patch
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 analyzer.test.src.context.mock_sdk; 5 library analyzer.test.src.context.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/context/cache.dart'; 9 import 'package:analyzer/src/context/cache.dart';
10 import 'package:analyzer/src/context/context.dart'; 10 import 'package:analyzer/src/context/context.dart';
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 class bool extends Object {} 106 class bool extends Object {}
107 abstract class num implements Comparable<num> { 107 abstract class num implements Comparable<num> {
108 bool operator <(num other); 108 bool operator <(num other);
109 bool operator <=(num other); 109 bool operator <=(num other);
110 bool operator >(num other); 110 bool operator >(num other);
111 bool operator >=(num other); 111 bool operator >=(num other);
112 num operator +(num other); 112 num operator +(num other);
113 num operator -(num other); 113 num operator -(num other);
114 num operator *(num other); 114 num operator *(num other);
115 num operator /(num other); 115 num operator /(num other);
116 int operator ^(int other);
117 int operator &(int other);
118 int operator |(int other);
119 int operator <<(int other);
120 int operator >>(int other);
121 int operator ~/(int other);
122 int operator %(int other);
123 int operator ~();
116 int toInt(); 124 int toInt();
117 double toDouble(); 125 double toDouble();
118 num abs(); 126 num abs();
119 int round(); 127 int round();
120 } 128 }
121 abstract class int extends num { 129 abstract class int extends num {
122 bool get isEven => false; 130 bool get isEven => false;
123 int operator -(); 131 int operator -();
124 external static int parse(String source, 132 external static int parse(String source,
125 { int radix, 133 { int radix,
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 399
392 @override 400 @override
393 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { 401 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) {
394 if (factory == null) { 402 if (factory == null) {
395 return super.createCacheFromSourceFactory(factory); 403 return super.createCacheFromSourceFactory(factory);
396 } 404 }
397 return new AnalysisCache( 405 return new AnalysisCache(
398 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 406 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
399 } 407 }
400 } 408 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/abstract_single_unit.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698