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

Unified Diff: pkg/analysis_server/test/analysis_server_test.dart

Issue 2382053002: Remove unused option in server API (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/test/analysis_abstract.dart ('k') | pkg/analysis_server/test/context_manager_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/analysis_server_test.dart
diff --git a/pkg/analysis_server/test/analysis_server_test.dart b/pkg/analysis_server/test/analysis_server_test.dart
index ed5056358079840d99fb2abad05137986cb91e07..b41486c43ada447eb6ec6fec6b3a9b74e8db80db 100644
--- a/pkg/analysis_server/test/analysis_server_test.dart
+++ b/pkg/analysis_server/test/analysis_server_test.dart
@@ -41,7 +41,6 @@ class AnalysisServerTest {
MockServerChannel channel;
AnalysisServer server;
MemoryResourceProvider resourceProvider;
- MockPackageMapProvider packageMapProvider;
/**
* Verify that getAnalysisContextForSource returns the correct contexts even
@@ -138,11 +137,9 @@ import "../foo/foo.dart";
channel = new MockServerChannel();
resourceProvider = new MemoryResourceProvider();
MockSdk sdk = new MockSdk(resourceProvider: resourceProvider);
- packageMapProvider = new MockPackageMapProvider();
server = new AnalysisServer(
channel,
resourceProvider,
- packageMapProvider,
null,
plugin,
new AnalysisServerOptions(),
@@ -541,8 +538,8 @@ analyzer:
void _configureSourceFactory(AnalysisContext context) {
var resourceUriResolver = new ResourceUriResolver(resourceProvider);
- var packageUriResolver = new PackageMapUriResolver(
- resourceProvider, packageMapProvider.packageMap);
+ var packageUriResolver =
+ new PackageMapUriResolver(resourceProvider, <String, List<Folder>>{});
context.sourceFactory =
new SourceFactory([packageUriResolver, resourceUriResolver]);
}
« no previous file with comments | « pkg/analysis_server/test/analysis_abstract.dart ('k') | pkg/analysis_server/test/context_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698