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

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

Issue 337943002: Adjust server for API changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed bug Created 6 years, 6 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/protocol_test.dart ('k') | pkg/analysis_server/test/test_all.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/socket_server_test.dart
diff --git a/pkg/analysis_server/test/socket_server_test.dart b/pkg/analysis_server/test/socket_server_test.dart
index 0f9c083914cb56d228f0122a4f32f4164d2f9327..67c6c2e885f5972935aac148f5f75d17a49887d0 100644
--- a/pkg/analysis_server/test/socket_server_test.dart
+++ b/pkg/analysis_server/test/socket_server_test.dart
@@ -28,10 +28,10 @@ class SocketServerTest {
MockServerChannel channel = new MockServerChannel();
server.createAnalysisServer(channel);
channel.expectMsgCount(notificationCount: 1);
- expect(channel.notificationsReceived[0].event, NOTIFICATION_CONNECTED);
+ expect(channel.notificationsReceived[0].event, SERVER_CONNECTED);
expect(channel.notificationsReceived[0].params, isEmpty);
return channel.sendRequest(
- new Request('0', METHOD_SHUTDOWN)
+ new Request('0', SERVER_SHUTDOWN)
).then((Response response) {
expect(response.id, equals('0'));
expect(response.error, isNull);
@@ -44,7 +44,7 @@ class SocketServerTest {
MockServerChannel channel1 = new MockServerChannel();
MockServerChannel channel2 = new MockServerChannel();
server.createAnalysisServer(channel1);
- expect(channel1.notificationsReceived[0].event, NOTIFICATION_CONNECTED);
+ expect(channel1.notificationsReceived[0].event, SERVER_CONNECTED);
expect(channel1.notificationsReceived[0].params, isEmpty);
server.createAnalysisServer(channel2);
channel1.expectMsgCount(notificationCount: 1);
@@ -53,7 +53,7 @@ class SocketServerTest {
expect(channel2.responsesReceived[0].error, isNotNull);
expect(channel2.responsesReceived[0].error.code, equals(
RequestError.CODE_SERVER_ALREADY_STARTED));
- channel2.sendRequest(new Request('0', METHOD_SHUTDOWN)).then((Response response) {
+ channel2.sendRequest(new Request('0', SERVER_SHUTDOWN)).then((Response response) {
expect(response.id, equals('0'));
expect(response.error, isNotNull);
expect(response.error.code, equals(
« no previous file with comments | « pkg/analysis_server/test/protocol_test.dart ('k') | pkg/analysis_server/test/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698