Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library test.channel; | 5 library test.channel; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/channel.dart'; | 9 import 'package:analysis_server/src/channel.dart'; |
| 10 import 'package:analysis_server/src/protocol.dart'; | 10 import 'package:analysis_server/src/protocol.dart'; |
| 11 import 'package:unittest/matcher.dart'; | 11 import 'package:unittest/matcher.dart'; |
| 12 import 'package:unittest/unittest.dart'; | 12 import 'package:unittest/unittest.dart'; |
| 13 | 13 |
| 14 import 'mocks.dart'; | 14 import 'mocks.dart'; |
| 15 | 15 |
| 16 main() { | 16 main(List<String> args) { |
|
Brian Wilkerson
2014/03/22 14:37:20
I'm not sure what the value of adding 'args' is wh
danrubel
2014/03/25 19:03:58
Good point. Removed here and elsewhere.
| |
| 17 group('WebSocketChannel', () { | 17 group('WebSocketChannel', () { |
| 18 setUp(WebSocketChannelTest.setUp); | 18 setUp(WebSocketChannelTest.setUp); |
| 19 test('close', WebSocketChannelTest.close); | 19 test('close', WebSocketChannelTest.close); |
| 20 test('invalidJsonToClient', WebSocketChannelTest.invalidJsonToClient); | 20 test('invalidJsonToClient', WebSocketChannelTest.invalidJsonToClient); |
| 21 test('invalidJsonToServer', WebSocketChannelTest.invalidJsonToServer); | 21 test('invalidJsonToServer', WebSocketChannelTest.invalidJsonToServer); |
| 22 test('notification', WebSocketChannelTest.notification); | 22 test('notification', WebSocketChannelTest.notification); |
| 23 test('notificationAndResponse', WebSocketChannelTest.notificationAndResponse ); | 23 test('notificationAndResponse', WebSocketChannelTest.notificationAndResponse ); |
| 24 test('request', WebSocketChannelTest.request); | 24 test('request', WebSocketChannelTest.request); |
| 25 test('requestResponse', WebSocketChannelTest.requestResponse); | 25 test('requestResponse', WebSocketChannelTest.requestResponse); |
| 26 test('response', WebSocketChannelTest.response); | 26 test('response', WebSocketChannelTest.response); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 } | 151 } |
| 152 | 152 |
| 153 static void expectMsgCount({requestCount: 0, | 153 static void expectMsgCount({requestCount: 0, |
| 154 responseCount: 0, | 154 responseCount: 0, |
| 155 notificationCount: 0}) { | 155 notificationCount: 0}) { |
| 156 expect(requestsReceived, hasLength(requestCount)); | 156 expect(requestsReceived, hasLength(requestCount)); |
| 157 expect(responsesReceived, hasLength(responseCount)); | 157 expect(responsesReceived, hasLength(responseCount)); |
| 158 expect(notificationsReceived, hasLength(notificationCount)); | 158 expect(notificationsReceived, hasLength(notificationCount)); |
| 159 } | 159 } |
| 160 } | 160 } |
| OLD | NEW |