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

Unified Diff: pkg/analyzer/test/generated/test_support.dart

Issue 1150863007: Remove many explicit references to AnalysisContextImpl and enable testing of the new task model (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | pkg/analyzer/test/task/task_dart_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/test_support.dart
diff --git a/pkg/analyzer/test/generated/test_support.dart b/pkg/analyzer/test/generated/test_support.dart
index 7d83198c85dcde4fbc3c7212cce5a9aa97331408..2552ea7e416d09aae478138c66a7e9f6e52a5718 100644
--- a/pkg/analyzer/test/generated/test_support.dart
+++ b/pkg/analyzer/test/generated/test_support.dart
@@ -18,6 +18,8 @@ import 'package:analyzer/src/generated/java_engine.dart';
import 'package:analyzer/src/generated/source.dart';
import 'package:unittest/unittest.dart';
+import 'resolver_test.dart';
+
/**
* The class `EngineTestCase` defines utility methods for making assertions.
*/
@@ -54,10 +56,8 @@ class EngineTestCase {
expect(elements, hasLength(names.length));
}
- AnalysisContextImpl createAnalysisContext() {
- AnalysisContextImpl context = new AnalysisContextImpl();
- context.sourceFactory = new SourceFactory([]);
- return context;
+ AnalysisContext createAnalysisContext() {
+ return AnalysisContextFactory.contextWithCore();
}
/**
@@ -594,8 +594,6 @@ class TestSource extends Source {
UriKind get uriKind {
throw new UnsupportedOperationException();
}
- @override
- String toString() => '$_name';
bool operator ==(Object other) {
if (other is TestSource) {
return other._name == _name;
@@ -616,6 +614,8 @@ class TestSource extends Source {
modificationStamp = new DateTime.now().millisecondsSinceEpoch;
_contents = value;
}
+ @override
+ String toString() => '$_name';
}
class TestSourceWithUri extends TestSource {
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | pkg/analyzer/test/task/task_dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698