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

Side by Side Diff: pkg/analyzer/test/generated/engine_test.dart

Issue 2298913003: Pull in test_reflective_loader 0.0.4 and switch analyzer to it. (Closed)
Patch Set: Fixes for review comments. Created 4 years, 3 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.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/plugin/resolver_provider.dart'; 11 import 'package:analyzer/plugin/resolver_provider.dart';
12 import 'package:analyzer/src/cancelable_future.dart'; 12 import 'package:analyzer/src/cancelable_future.dart';
13 import 'package:analyzer/src/context/builder.dart' show EmbedderYamlLocator; 13 import 'package:analyzer/src/context/builder.dart' show EmbedderYamlLocator;
14 import 'package:analyzer/src/context/cache.dart'; 14 import 'package:analyzer/src/context/cache.dart';
15 import 'package:analyzer/src/context/context.dart'; 15 import 'package:analyzer/src/context/context.dart';
16 import 'package:analyzer/src/context/source.dart'; 16 import 'package:analyzer/src/context/source.dart';
17 import 'package:analyzer/src/generated/constant.dart'; 17 import 'package:analyzer/src/generated/constant.dart';
18 import 'package:analyzer/src/generated/engine.dart'; 18 import 'package:analyzer/src/generated/engine.dart';
19 import 'package:analyzer/src/generated/error.dart'; 19 import 'package:analyzer/src/generated/error.dart';
20 import 'package:analyzer/src/generated/java_core.dart'; 20 import 'package:analyzer/src/generated/java_core.dart';
21 import 'package:analyzer/src/generated/resolver.dart'; 21 import 'package:analyzer/src/generated/resolver.dart';
22 import 'package:analyzer/src/generated/source_io.dart'; 22 import 'package:analyzer/src/generated/source_io.dart';
23 import 'package:analyzer/src/string_source.dart'; 23 import 'package:analyzer/src/string_source.dart';
24 import 'package:analyzer/task/model.dart'; 24 import 'package:analyzer/task/model.dart';
25 import 'package:html/dom.dart' show Document; 25 import 'package:html/dom.dart' show Document;
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 import 'package:unittest/unittest.dart';
28 29
29 import '../reflective_tests.dart';
30 import '../utils.dart'; 30 import '../utils.dart';
31 31
32 main() { 32 main() {
33 initializeTestEnvironment(); 33 initializeTestEnvironment();
34 runReflectiveTests(SourcesChangedEventTest); 34 defineReflectiveTests(SourcesChangedEventTest);
35 } 35 }
36 36
37 /** 37 /**
38 * A listener used to gather the [ImplicitAnalysisEvent]s that are produced 38 * A listener used to gather the [ImplicitAnalysisEvent]s that are produced
39 * during analysis. 39 * during analysis.
40 */ 40 */
41 class AnalyzedSourcesListener { 41 class AnalyzedSourcesListener {
42 /** 42 /**
43 * The events that have been gathered. 43 * The events that have been gathered.
44 */ 44 */
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 @override 705 @override
706 void test_flushAstStructures(Source source) { 706 void test_flushAstStructures(Source source) {
707 fail("Unexpected invocation of test_flushAstStructures"); 707 fail("Unexpected invocation of test_flushAstStructures");
708 } 708 }
709 709
710 @override 710 @override
711 void visitContentCache(ContentCacheVisitor visitor) { 711 void visitContentCache(ContentCacheVisitor visitor) {
712 fail("Unexpected invocation of visitContentCache"); 712 fail("Unexpected invocation of visitContentCache");
713 } 713 }
714 } 714 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698