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

Unified Diff: pkg/analyzer/test/stress/for_git_repository.dart

Issue 2425423009: Split out options from ContextBuilder (Closed)
Patch Set: Created 4 years, 2 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
Index: pkg/analyzer/test/stress/for_git_repository.dart
diff --git a/pkg/analyzer/test/stress/for_git_repository.dart b/pkg/analyzer/test/stress/for_git_repository.dart
index 0fe14f3d9a9cec7cbead38c6bd55835769df9115..23105816ef255109355f5c26325e402123a3077f 100644
--- a/pkg/analyzer/test/stress/for_git_repository.dart
+++ b/pkg/analyzer/test/stress/for_git_repository.dart
@@ -246,9 +246,11 @@ class StressTest {
FolderBasedDartSdk.defaultSdkDirectory(resourceProvider);
sdkManager = new DartSdkManager(sdkDirectory.path, false);
contentCache = new ContentCache();
- ContextBuilder builder =
- new ContextBuilder(resourceProvider, sdkManager, contentCache);
- builder.defaultOptions = new AnalysisOptionsImpl();
+ ContextBuilderOptions builderOptions = new ContextBuilderOptions();
+ builderOptions.defaultOptions = new AnalysisOptionsImpl();
+ ContextBuilder builder = new ContextBuilder(
+ resourceProvider, sdkManager, contentCache,
+ options: builderOptions);
expectedContext = builder.buildContext(folderPath);
actualContext = builder.buildContext(folderPath);
expectedContext.analysisOptions =
« no previous file with comments | « pkg/analyzer/test/src/context/builder_test.dart ('k') | pkg/analyzer/tool/task_dependency_graph/generate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698