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

Unified Diff: runtime/observatory/test/echo_test.dart

Issue 869773007: Port _echo, etc commands to RPC (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/observatory/test/malformed_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/test/echo_test.dart
diff --git a/runtime/observatory/test/echo_test.dart b/runtime/observatory/test/echo_test.dart
index 7c7c512a73f9c2bf8349dd7b8595339304850c20..6a10e2444c63ef1d73a68f7fdb2947ec07fe87e7 100644
--- a/runtime/observatory/test/echo_test.dart
+++ b/runtime/observatory/test/echo_test.dart
@@ -10,18 +10,16 @@ import 'test_helper.dart';
var tests = [
(Isolate isolate) =>
- isolate.vm.getDeprecated('_echo').then((result) {
- expect(result['type'], equals("message"));
- expect(result['id'], equals("_echo"));
- expect(result.owner, equals(isolate.vm));
-}),
+ isolate.vm.invokeRpc('_echo', { 'text': 'hello'}).then((result) {
+ expect(result['type'], equals('_EchoResponse'));
+ expect(result['text'], equals('hello'));
+ }),
(Isolate isolate) =>
- isolate.getDeprecated('_echo').then((result) {
- expect(result['type'], equals("message"));
- expect(result['id'], equals("_echo"));
- expect(result.owner, equals(isolate));
-}),
+ isolate.invokeRpc('_echo', { 'text': 'hello'}).then((result) {
+ expect(result['type'], equals('_EchoResponse'));
+ expect(result['text'], equals('hello'));
+ }),
(Isolate isolate) {
Completer completer = new Completer();
@@ -34,7 +32,7 @@ var tests = [
completer.complete();
}
});
- isolate.getDeprecated('_echo/event');
+ isolate.invokeRpc('_triggerEchoEvent', { 'text': 'hello' });
return completer.future;
},
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/observatory/test/malformed_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698