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

Unified Diff: test/client/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/client/stream_test.dart ('k') | test/peer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/client/utils.dart
diff --git a/test/client/utils.dart b/test/client/utils.dart
index 868489235658285a343a311118f832e3836a6f5d..5eb0b60474cf5568f1d4f4af2bb1a11342ebbe2d 100644
--- a/test/client/utils.dart
+++ b/test/client/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.Client].
class ClientController {
@@ -23,7 +25,7 @@ class ClientController {
ClientController() {
_client = new json_rpc.Client(
- _responseController.stream, _requestController.sink);
+ new StreamChannel(_responseController.stream, _requestController.sink));
_client.listen();
}
« no previous file with comments | « test/client/stream_test.dart ('k') | test/peer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698