| 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 analyzer.test.generated.test_support; | 5 library analyzer.test.generated.test_support; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode, SimpleIdentifier; | 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode, SimpleIdentifier; |
| 10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| 11 import 'package:analyzer/dart/element/type.dart'; | 11 import 'package:analyzer/dart/element/type.dart'; |
| 12 import 'package:analyzer/src/dart/ast/utilities.dart'; | 12 import 'package:analyzer/src/dart/ast/utilities.dart'; |
| 13 import 'package:analyzer/src/generated/engine.dart'; | 13 import 'package:analyzer/src/generated/engine.dart'; |
| 14 import 'package:analyzer/src/generated/error.dart'; | 14 import 'package:analyzer/src/generated/error.dart'; |
| 15 import 'package:analyzer/src/generated/java_core.dart'; | 15 import 'package:analyzer/src/generated/java_core.dart'; |
| 16 import 'package:analyzer/src/generated/java_engine.dart'; | 16 import 'package:analyzer/src/generated/java_engine.dart'; |
| 17 import 'package:analyzer/src/generated/source.dart'; | 17 import 'package:analyzer/src/generated/source.dart'; |
| 18 import 'package:plugin/manager.dart'; | 18 import 'package:plugin/manager.dart'; |
| 19 import 'package:plugin/plugin.dart'; | 19 import 'package:plugin/plugin.dart'; |
| 20 import 'package:unittest/unittest.dart'; | 20 import 'package:unittest/unittest.dart'; |
| 21 | 21 |
| 22 import 'resolver_test.dart'; | 22 import 'analysis_context_factory.dart'; |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * The class `EngineTestCase` defines utility methods for making assertions. | 25 * The class `EngineTestCase` defines utility methods for making assertions. |
| 26 */ | 26 */ |
| 27 class EngineTestCase { | 27 class EngineTestCase { |
| 28 /** | 28 /** |
| 29 * Assert that the given collection has the same number of elements as the num
ber of specified | 29 * Assert that the given collection has the same number of elements as the num
ber of specified |
| 30 * names, and that for each specified name, a corresponding element can be fou
nd in the given | 30 * names, and that for each specified name, a corresponding element can be fou
nd in the given |
| 31 * collection with that name. | 31 * collection with that name. |
| 32 * | 32 * |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 if (other is TestSource) { | 661 if (other is TestSource) { |
| 662 return other.uri == uri; | 662 return other.uri == uri; |
| 663 } | 663 } |
| 664 return false; | 664 return false; |
| 665 } | 665 } |
| 666 | 666 |
| 667 Uri resolveRelativeUri(Uri uri) { | 667 Uri resolveRelativeUri(Uri uri) { |
| 668 return this.uri.resolveUri(uri); | 668 return this.uri.resolveUri(uri); |
| 669 } | 669 } |
| 670 } | 670 } |
| OLD | NEW |