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

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

Issue 851173002: Dart: Encode/Decode handle and interface types. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix Interface encode parameters 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 | « no previous file | mojo/dart/embedder/test/run_dart_tests.cc » ('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 af3e07630e4b34e7876e456b91a289c152ca89b3..531666a541f37f6d3db0d4f0a43b5fb5eb6d53b9 100644
--- a/mojo/dart/embedder/test/dart_to_cpp_tests.dart
+++ b/mojo/dart/embedder/test/dart_to_cpp_tests.dart
@@ -64,8 +64,8 @@ class DartSide extends DartSideInterface {
var messagePipe1 = new core.MojoMessagePipe();
var messagePipe2 = new core.MojoMessagePipe();
- arg.dataHandle = dataPipe1.consumer.handle;
- arg.messageHandle = messagePipe1.endpoints[0].handle;
+ arg.dataHandle = dataPipe1.consumer;
+ arg.messageHandle = messagePipe1.endpoints[0];
var specialArg = new EchoArgs();
specialArg.si64 = -1;
@@ -73,8 +73,8 @@ class DartSide extends DartSideInterface {
specialArg.si16 = -1;
specialArg.si8 = -1;
specialArg.name = 'going';
- specialArg.dataHandle = dataPipe2.consumer.handle;
- specialArg.messageHandle = messagePipe2.endpoints[0].handle;
+ specialArg.dataHandle = dataPipe2.consumer;
+ specialArg.messageHandle = messagePipe2.endpoints[0];
dataPipe1.producer.write(_sampleData.buffer.asByteData());
dataPipe2.producer.write(_sampleData.buffer.asByteData());
« no previous file with comments | « no previous file | mojo/dart/embedder/test/run_dart_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698