| 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_reflective_loader/test_reflective_loader.dart'; | 26 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 26 import 'package:typed_mock/typed_mock.dart'; | 27 import 'package:typed_mock/typed_mock.dart'; |
| 27 import 'package:unittest/unittest.dart'; | |
| 28 | 28 |
| 29 import '../utils.dart'; | 29 import '../utils.dart'; |
| 30 | 30 |
| 31 main() { | 31 main() { |
| 32 initializeTestEnvironment(); | 32 initializeTestEnvironment(); |
| 33 defineReflectiveTests(SourcesChangedEventTest); | 33 defineReflectiveSuite(() { |
| 34 defineReflectiveTests(SourcesChangedEventTest); |
| 35 }); |
| 34 } | 36 } |
| 35 | 37 |
| 36 /** | 38 /** |
| 37 * A listener used to gather the [ImplicitAnalysisEvent]s that are produced | 39 * A listener used to gather the [ImplicitAnalysisEvent]s that are produced |
| 38 * during analysis. | 40 * during analysis. |
| 39 */ | 41 */ |
| 40 class AnalyzedSourcesListener { | 42 class AnalyzedSourcesListener { |
| 41 /** | 43 /** |
| 42 * The events that have been gathered. | 44 * The events that have been gathered. |
| 43 */ | 45 */ |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 @override | 707 @override |
| 706 void test_flushAstStructures(Source source) { | 708 void test_flushAstStructures(Source source) { |
| 707 fail("Unexpected invocation of test_flushAstStructures"); | 709 fail("Unexpected invocation of test_flushAstStructures"); |
| 708 } | 710 } |
| 709 | 711 |
| 710 @override | 712 @override |
| 711 void visitContentCache(ContentCacheVisitor visitor) { | 713 void visitContentCache(ContentCacheVisitor visitor) { |
| 712 fail("Unexpected invocation of visitContentCache"); | 714 fail("Unexpected invocation of visitContentCache"); |
| 713 } | 715 } |
| 714 } | 716 } |
| OLD | NEW |