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

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

Issue 1700403002: fixes #25793, make strong checker tests sane (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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 18 matching lines...) Expand all
29 29
30 class Function {} 30 class Function {}
31 class StackTrace {} 31 class StackTrace {}
32 class Symbol {} 32 class Symbol {}
33 class Type {} 33 class Type {}
34 34
35 abstract class Comparable<T> { 35 abstract class Comparable<T> {
36 int compareTo(T other); 36 int compareTo(T other);
37 } 37 }
38 38
39 abstract class String implements Comparable<String> { 39 abstract class Pattern {}
40 abstract class String implements Comparable<String>, Pattern {
40 external factory String.fromCharCodes(Iterable<int> charCodes, 41 external factory String.fromCharCodes(Iterable<int> charCodes,
41 [int start = 0, int end]); 42 [int start = 0, int end]);
42 String operator +(String other) => null; 43 String operator +(String other) => null;
43 bool get isEmpty => false; 44 bool get isEmpty => false;
44 bool get isNotEmpty => false; 45 bool get isNotEmpty => false;
45 int get length => 0; 46 int get length => 0;
46 String substring(int len) => null; 47 String substring(int len) => null;
47 String toUpperCase(); 48 String toUpperCase();
48 List<int> get codeUnits; 49 List<int> get codeUnits;
49 } 50 }
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 365
365 @override 366 @override
366 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { 367 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) {
367 if (factory == null) { 368 if (factory == null) {
368 return super.createCacheFromSourceFactory(factory); 369 return super.createCacheFromSourceFactory(factory);
369 } 370 }
370 return new AnalysisCache( 371 return new AnalysisCache(
371 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 372 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
372 } 373 }
373 } 374 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/test/src/task/strong/checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698