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

Unified Diff: pkg/analyzer/test/src/dart/analysis/session_test.dart

Issue 2989883002: Add sourceFactory getter to AnalysisSession (Closed)
Patch Set: Created 3 years, 5 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/lib/src/dart/analysis/session.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/dart/analysis/session_test.dart
diff --git a/pkg/analyzer/test/src/dart/analysis/session_test.dart b/pkg/analyzer/test/src/dart/analysis/session_test.dart
index d8090e4496eba7e014176126e098ecb28ef19a55..ef27ed85667d41766d8654a06fb12f2aeecef863 100644
--- a/pkg/analyzer/test/src/dart/analysis/session_test.dart
+++ b/pkg/analyzer/test/src/dart/analysis/session_test.dart
@@ -86,6 +86,12 @@ class AnalysisSessionImplTest {
expect(await session.getUnitElementSignature('path'), signature);
}
+ test_sourceFactory() {
+ SourceFactory sourceFactory = new SourceFactory([]);
+ driver.sourceFactory = sourceFactory;
+ expect(session.sourceFactory, sourceFactory);
+ }
+
test_typeProvider() async {
_initializeSDK();
expect(await session.typeProvider, isNotNull);
@@ -143,6 +149,7 @@ class MockAnalysisDriver implements AnalysisDriver {
Map<String, LibraryElement> libraryMap = <String, LibraryElement>{};
ParseResult parseResult;
AnalysisResult result;
+ SourceFactory sourceFactory;
SourceKind sourceKind;
List<TopLevelDeclarationInSource> topLevelDeclarations;
UnitElementResult unitElementResult;
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/session.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698