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

Unified Diff: pkg/analysis_server/test/integration/integration_tests.dart

Issue 2564863003: Get all integration tests running with the new driver (Closed)
Patch Set: Created 4 years 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/analysis_server/test/integration/integration_tests.dart
diff --git a/pkg/analysis_server/test/integration/integration_tests.dart b/pkg/analysis_server/test/integration/integration_tests.dart
index 71b5378a4b24a839ab4ad7a981dc1cb6494a212a..b278c96025cfe36b7d79066140cbb66dd3b1d75b 100644
--- a/pkg/analysis_server/test/integration/integration_tests.dart
+++ b/pkg/analysis_server/test/integration/integration_tests.dart
@@ -154,6 +154,11 @@ abstract class AbstractAnalysisServerIntegrationTest
}
/**
+ * Return `true` if the new analysis driver should be used by these tests.
+ */
+ bool get enableNewAnalysisDriver => false;
+
+ /**
* Print out any messages exchanged with the server. If some messages have
* already been exchanged with the server, they are printed out immediately.
*/
@@ -242,6 +247,7 @@ abstract class AbstractAnalysisServerIntegrationTest
server.start(
checked: checked,
diagnosticPort: diagnosticPort,
+ enableNewAnalysisDriver: enableNewAnalysisDriver,
servicesPort: servicesPort);
/**
@@ -636,6 +642,7 @@ class Server {
{bool checked: true,
bool debugServer: false,
int diagnosticPort,
+ bool enableNewAnalysisDriver: false,
bool profileServer: false,
String sdkPath,
int servicesPort,
@@ -691,6 +698,9 @@ class Server {
if (useAnalysisHighlight2) {
arguments.add('--useAnalysisHighlight2');
}
+ if (enableNewAnalysisDriver) {
+ arguments.add('--enable-new-analysis-driver');
+ }
// print('Launching $serverPath');
// print('$dartBinary ${arguments.join(' ')}');
return Process.start(dartBinary, arguments).then((Process process) {

Powered by Google App Engine
This is Rietveld 408576698