| OLD | NEW |
| 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 engine.resolver_test; | 5 library engine.resolver_test; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'package:analyzer/src/generated/java_core.dart'; | 8 import 'package:analyzer/src/generated/java_core.dart'; |
| 9 import 'package:analyzer/src/generated/java_engine.dart'; | 9 import 'package:analyzer/src/generated/java_engine.dart'; |
| 10 import 'package:analyzer/src/generated/java_engine_io.dart'; | 10 import 'package:analyzer/src/generated/java_engine_io.dart'; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 * for testing purposes. | 35 * for testing purposes. |
| 36 */ | 36 */ |
| 37 class AnalysisContextFactory { | 37 class AnalysisContextFactory { |
| 38 static String _DART_MATH = "dart:math"; | 38 static String _DART_MATH = "dart:math"; |
| 39 | 39 |
| 40 static String _DART_INTERCEPTORS = "dart:_interceptors"; | 40 static String _DART_INTERCEPTORS = "dart:_interceptors"; |
| 41 | 41 |
| 42 static String _DART_JS_HELPER = "dart:_js_helper"; | 42 static String _DART_JS_HELPER = "dart:_js_helper"; |
| 43 | 43 |
| 44 /** | 44 /** |
| 45 * The fake SDK used by all of the contexts created by this factory. | |
| 46 */ | |
| 47 static DirectoryBasedDartSdk _FAKE_SDK; | |
| 48 | |
| 49 /** | |
| 50 * Create an analysis context that has a fake core library already resolved. | 45 * Create an analysis context that has a fake core library already resolved. |
| 51 * | 46 * |
| 52 * @return the analysis context that was created | 47 * @return the analysis context that was created |
| 53 */ | 48 */ |
| 54 static AnalysisContextImpl contextWithCore() { | 49 static AnalysisContextImpl contextWithCore() { |
| 55 AnalysisContextForTests context = new AnalysisContextForTests(); | 50 AnalysisContextForTests context = new AnalysisContextForTests(); |
| 56 return initContextWithCore(context); | 51 return initContextWithCore(context); |
| 57 } | 52 } |
| 58 | 53 |
| 59 /** | 54 /** |
| (...skipping 12375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12435 runReflectiveTests(TypeResolverVisitorTest); | 12430 runReflectiveTests(TypeResolverVisitorTest); |
| 12436 runReflectiveTests(CheckedModeCompileTimeErrorCodeTest); | 12431 runReflectiveTests(CheckedModeCompileTimeErrorCodeTest); |
| 12437 runReflectiveTests(ErrorResolverTest); | 12432 runReflectiveTests(ErrorResolverTest); |
| 12438 runReflectiveTests(HintCodeTest); | 12433 runReflectiveTests(HintCodeTest); |
| 12439 runReflectiveTests(MemberMapTest); | 12434 runReflectiveTests(MemberMapTest); |
| 12440 runReflectiveTests(NonHintCodeTest); | 12435 runReflectiveTests(NonHintCodeTest); |
| 12441 runReflectiveTests(SimpleResolverTest); | 12436 runReflectiveTests(SimpleResolverTest); |
| 12442 runReflectiveTests(StrictModeTest); | 12437 runReflectiveTests(StrictModeTest); |
| 12443 runReflectiveTests(TypePropagationTest); | 12438 runReflectiveTests(TypePropagationTest); |
| 12444 } | 12439 } |
| OLD | NEW |