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

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

Issue 2772473004: Fix errors in analyzer (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | pkg/analyzer_plugin/test/integration/support/integration_tests.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b1febef25e5cba143be2f0605d93ed16c4379a99..45a766657076745b42ce5bf859aaee913de1e6be 100644
--- a/pkg/analysis_server/test/integration/integration_tests.dart
+++ b/pkg/analysis_server/test/integration/integration_tests.dart
@@ -125,9 +125,6 @@ abstract class AbstractAnalysisServerIntegrationTest
*/
bool _subscribedToServerStatus = false;
- List<AnalysisError> getErrors(String pathname) =>
- currentAnalysisErrors[pathname];
-
AbstractAnalysisServerIntegrationTest() {
initializeInttestMixin();
}
@@ -169,6 +166,14 @@ abstract class AbstractAnalysisServerIntegrationTest
server.debugStdio();
}
+ List<AnalysisError> getErrors(String pathname) =>
+ currentAnalysisErrors[pathname];
+
+ /**
+ * Read a source file with the given absolute [pathname].
+ */
+ String readFile(String pathname) => new File(pathname).readAsStringSync();
+
@override
Future sendServerSetSubscriptions(List<ServerService> subscriptions) {
_subscribedToServerStatus = subscriptions.contains(ServerService.STATUS);
@@ -281,24 +286,6 @@ abstract class AbstractAnalysisServerIntegrationTest
file.writeAsStringSync(contents);
return file.resolveSymbolicLinksSync();
}
-
- /**
- * Read a source file with the given absolute [pathname].
- */
- String readFile(String pathname) => new File(pathname).readAsStringSync();
-}
-
-/**
- * An error result from a server request.
- */
-class ServerErrorMessage {
- final Map message;
-
- ServerErrorMessage(this.message);
-
- dynamic get error => message['error'];
-
- String toString() => message.toString();
}
/**
@@ -558,7 +545,7 @@ class Server {
/**
* Stop the server.
*/
- Future kill(String reason) {
+ Future<int> kill(String reason) {
debugStdio();
_recordStdio('FORCIBLY TERMINATING PROCESS: $reason');
_process.kill();
@@ -771,6 +758,19 @@ class Server {
}
/**
+ * An error result from a server request.
+ */
+class ServerErrorMessage {
+ final Map message;
+
+ ServerErrorMessage(this.message);
+
+ dynamic get error => message['error'];
+
+ String toString() => message.toString();
+}
+
+/**
* Matcher that matches a list of objects, each of which satisfies the given
* matcher.
*/
« no previous file with comments | « no previous file | pkg/analyzer_plugin/test/integration/support/integration_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698