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

Unified Diff: mojo/dart/embedder/test/dart_to_cpp_tests.dart

Issue 800523004: Dart: Simplifies the handle watcher. Various cleanups and bugfixes. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: cleanup 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 | « mojo/dart/embedder/test/dart_to_cpp_tests.cc ('k') | mojo/dart/test/bindings_generation_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/test/dart_to_cpp_tests.dart
diff --git a/mojo/dart/embedder/test/dart_to_cpp_tests.dart b/mojo/dart/embedder/test/dart_to_cpp_tests.dart
index 5f4af6613e2e5ed9b2bb5051c5b22d5e46ffbbdf..8a5e1026b582c9f5085c28bb6f5e93a2440bf1e9 100644
--- a/mojo/dart/embedder/test/dart_to_cpp_tests.dart
+++ b/mojo/dart/embedder/test/dart_to_cpp_tests.dart
@@ -39,14 +39,12 @@ class DartSide extends DartSideInterface {
});
}
- void ping(params) {
+ void ping() {
callPingResponse();
_completer.complete(null);
}
- void echo(params) {
- int numIterations = params.numIterations;
- EchoArgs arg = params.arg;
+ void echo(int numIterations, EchoArgs arg) {
if (arg.si64 > 0) {
arg.si64 = BAD_VALUE;
}
@@ -98,10 +96,10 @@ class DartSide extends DartSideInterface {
}
-main(List<int> args) {
+main(List args) {
assert(args.length == 1);
int mojoHandle = args[0];
- var rawHandle = new core.RawMojoHandle(mojoHandle);
+ var rawHandle = new core.MojoHandle(mojoHandle);
var endpoint = new core.MojoMessagePipeEndpoint(rawHandle);
var dartSide = new DartSide(endpoint);
dartSide.listen();
« no previous file with comments | « mojo/dart/embedder/test/dart_to_cpp_tests.cc ('k') | mojo/dart/test/bindings_generation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698