| 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.engine_test; | 5 library analyzer.test.generated.engine_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| 11 import 'package:analyzer/error/error.dart'; | 11 import 'package:analyzer/error/error.dart'; |
| 12 import 'package:analyzer/plugin/resolver_provider.dart'; | 12 import 'package:analyzer/plugin/resolver_provider.dart'; |
| 13 import 'package:analyzer/src/cancelable_future.dart'; | 13 import 'package:analyzer/src/cancelable_future.dart'; |
| 14 import 'package:analyzer/src/context/builder.dart' show EmbedderYamlLocator; | 14 import 'package:analyzer/src/context/builder.dart' show EmbedderYamlLocator; |
| 15 import 'package:analyzer/src/context/cache.dart'; | 15 import 'package:analyzer/src/context/cache.dart'; |
| 16 import 'package:analyzer/src/context/context.dart'; | 16 import 'package:analyzer/src/context/context.dart'; |
| 17 import 'package:analyzer/src/context/source.dart'; | 17 import 'package:analyzer/src/context/source.dart'; |
| 18 import 'package:analyzer/src/generated/constant.dart'; | 18 import 'package:analyzer/src/generated/constant.dart'; |
| 19 import 'package:analyzer/src/generated/engine.dart'; | 19 import 'package:analyzer/src/generated/engine.dart'; |
| 20 import 'package:analyzer/src/generated/resolver.dart'; | 20 import 'package:analyzer/src/generated/resolver.dart'; |
| 21 import 'package:analyzer/src/generated/source_io.dart'; | 21 import 'package:analyzer/src/generated/source_io.dart'; |
| 22 import 'package:analyzer/src/string_source.dart'; | 22 import 'package:analyzer/src/string_source.dart'; |
| 23 import 'package:analyzer/task/model.dart'; | 23 import 'package:analyzer/task/model.dart'; |
| 24 import 'package:html/dom.dart' show Document; | 24 import 'package:html/dom.dart' show Document; |
| 25 import 'package:test/test.dart'; | 25 import 'package:test/test.dart'; |
| 26 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 26 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 27 import 'package:typed_mock/typed_mock.dart'; | 27 import 'package:typed_mock/typed_mock.dart'; |
| 28 | 28 |
| 29 import '../utils.dart'; | |
| 30 | |
| 31 main() { | 29 main() { |
| 32 initializeTestEnvironment(); | |
| 33 defineReflectiveSuite(() { | 30 defineReflectiveSuite(() { |
| 34 defineReflectiveTests(SourcesChangedEventTest); | 31 defineReflectiveTests(SourcesChangedEventTest); |
| 35 }); | 32 }); |
| 36 } | 33 } |
| 37 | 34 |
| 38 /** | 35 /** |
| 39 * A listener used to gather the [ImplicitAnalysisEvent]s that are produced | 36 * A listener used to gather the [ImplicitAnalysisEvent]s that are produced |
| 40 * during analysis. | 37 * during analysis. |
| 41 */ | 38 */ |
| 42 class AnalyzedSourcesListener { | 39 class AnalyzedSourcesListener { |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 @override | 704 @override |
| 708 void test_flushAstStructures(Source source) { | 705 void test_flushAstStructures(Source source) { |
| 709 fail("Unexpected invocation of test_flushAstStructures"); | 706 fail("Unexpected invocation of test_flushAstStructures"); |
| 710 } | 707 } |
| 711 | 708 |
| 712 @override | 709 @override |
| 713 void visitContentCache(ContentCacheVisitor visitor) { | 710 void visitContentCache(ContentCacheVisitor visitor) { |
| 714 fail("Unexpected invocation of visitContentCache"); | 711 fail("Unexpected invocation of visitContentCache"); |
| 715 } | 712 } |
| 716 } | 713 } |
| OLD | NEW |