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

Unified Diff: editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java

Issue 845973006: Addition of AnalysisServer.isSocketOpen for clients to know if the server is still running. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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: editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java
diff --git a/editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java b/editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java
index acd9699e8057f0ad29844be48f82e7d22ea86768..043ba922e86bd0995537bd6b998c6a5f9680a8d1 100644
--- a/editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java
+++ b/editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java
@@ -1088,7 +1088,7 @@ public class RemoteAnalysisServerImplTest extends AbstractRemoteServerTest {
}
public void test_analysis_updateOptions_all_false() throws Exception {
- AnalysisOptions options = new AnalysisOptions(false, false, false, false, false);
+ AnalysisOptions options = new AnalysisOptions(false, false, false, false, false, false);
server.analysis_updateOptions(options);
List<JsonObject> requests = requestSink.getRequests();
JsonElement expected = parseJson(//
@@ -1101,7 +1101,8 @@ public class RemoteAnalysisServerImplTest extends AbstractRemoteServerTest {
" 'enableDeferredLoading': false,",
" 'enableEnums': false,",
" 'generateDart2jsHints': false,",
- " 'generateHints': false",
+ " 'generateHints': false,",
+ " 'generateLints': false",
" }",
" }",
"}");
@@ -1109,7 +1110,7 @@ public class RemoteAnalysisServerImplTest extends AbstractRemoteServerTest {
}
public void test_analysis_updateOptions_all_true() throws Exception {
- AnalysisOptions options = new AnalysisOptions(true, true, true, true, true);
+ AnalysisOptions options = new AnalysisOptions(true, true, true, true, true, true);
server.analysis_updateOptions(options);
List<JsonObject> requests = requestSink.getRequests();
JsonElement expected = parseJson(//
@@ -1122,7 +1123,8 @@ public class RemoteAnalysisServerImplTest extends AbstractRemoteServerTest {
" 'enableDeferredLoading': true,",
" 'enableEnums': true,",
" 'generateDart2jsHints': true,",
- " 'generateHints': true",
+ " 'generateHints': true,",
+ " 'generateLints': true",
" }",
" }",
"}");
@@ -1130,7 +1132,7 @@ public class RemoteAnalysisServerImplTest extends AbstractRemoteServerTest {
}
public void test_analysis_updateOptions_subset1() throws Exception {
- AnalysisOptions options = new AnalysisOptions(true, null, null, null, null);
+ AnalysisOptions options = new AnalysisOptions(true, null, null, null, null, null);
server.analysis_updateOptions(options);
List<JsonObject> requests = requestSink.getRequests();
JsonElement expected = parseJson(//
@@ -1147,7 +1149,7 @@ public class RemoteAnalysisServerImplTest extends AbstractRemoteServerTest {
}
public void test_analysis_updateOptions_subset2() throws Exception {
- AnalysisOptions options = new AnalysisOptions(false, true, null, null, null);
+ AnalysisOptions options = new AnalysisOptions(false, true, null, null, null, null);
server.analysis_updateOptions(options);
List<JsonObject> requests = requestSink.getRequests();
JsonElement expected = parseJson(//

Powered by Google App Engine
This is Rietveld 408576698