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

Unified Diff: tests/standalone/io/web_socket_protocol_processor_test.dart

Issue 12435002: Fix web_socket_protocol_processor_test to pass in checked mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/web_socket_protocol_processor_test.dart
diff --git a/tests/standalone/io/web_socket_protocol_processor_test.dart b/tests/standalone/io/web_socket_protocol_processor_test.dart
index 4dfdbe8253ad3b6a4f40ff191c28f2ef186f29b9..090d34575713d31d5a6c3bf5413222ced9e230a8 100644
--- a/tests/standalone/io/web_socket_protocol_processor_test.dart
+++ b/tests/standalone/io/web_socket_protocol_processor_test.dart
@@ -30,9 +30,9 @@ class WebSocketMessageCollector {
var data;
- WebSocketMessageCollector(_WebSocketProtocolTransformer transformer,
+ WebSocketMessageCollector(Stream stream,
[List<int> this.expectedMessage = null]) {
- transformer.listen(onMessageData, onDone: onClosed, onError: onError);
+ stream.listen(onMessageData, onDone: onClosed, onError: onError);
}
void onMessageData(buffer) {
@@ -44,7 +44,7 @@ class WebSocketMessageCollector {
data = buffer;
}
- void onClosed(int status, String reason) {
+ void onClosed() {
closeCount++;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698