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

Unified Diff: test/server/utils.dart

Issue 1652413002: Use StreamChannel. (Closed) Base URL: git@github.com:dart-lang/json_rpc_2.git@master
Patch Set: Code review changes Created 4 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
« no previous file with comments | « test/server/stream_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/server/utils.dart
diff --git a/test/server/utils.dart b/test/server/utils.dart
index 9b4b020c53dd62154b1f2a45b2be5b7591aba273..f33cb1398b66d96a5ea41370a0d8705edc0086a1 100644
--- a/test/server/utils.dart
+++ b/test/server/utils.dart
@@ -5,9 +5,11 @@
import 'dart:async';
import 'dart:convert';
+import 'package:stream_channel/stream_channel.dart';
+import 'package:test/test.dart';
+
import 'package:json_rpc_2/json_rpc_2.dart' as json_rpc;
import 'package:json_rpc_2/error_code.dart' as error_code;
-import 'package:test/test.dart';
/// A controller used to test a [json_rpc.Server].
class ServerController {
@@ -23,7 +25,7 @@ class ServerController {
ServerController() {
_server = new json_rpc.Server(
- _requestController.stream, _responseController.sink);
+ new StreamChannel(_requestController.stream, _responseController.sink));
_server.listen();
}
« no previous file with comments | « test/server/stream_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698