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

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

Issue 968243003: Dart: Adds optional named arguments for creating bindings. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
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 c93d82d4e9f89302fdb30de5ad6fd3e63a02d501..385884759d34da758dece25bac9c0e4ab2afe82d 100644
--- a/mojo/dart/embedder/test/dart_to_cpp_tests.dart
+++ b/mojo/dart/embedder/test/dart_to_cpp_tests.dart
@@ -14,7 +14,7 @@ class DartSideImpl implements DartSide {
static const int ELEMENT_BYTES = 1;
static const int CAPACITY_BYTES = 64;
- DartSideStub _stub;
+ DartSideBinding _binding;
CppSideProxy cppSide;
Uint8List _sampleData;
@@ -22,9 +22,7 @@ class DartSideImpl implements DartSide {
Completer _completer;
DartSideImpl(core.MojoMessagePipeEndpoint endpoint) {
- _stub = new DartSideStub.fromEndpoint(endpoint)
- ..delegate = this
- ..listen();
+ _binding = new DartSideBinding.fromEndpoint(endpoint, delegate: this);
_sampleData = new Uint8List(CAPACITY_BYTES);
for (int i = 0; i < _sampleData.length; ++i) {
_sampleData[i] = i;

Powered by Google App Engine
This is Rietveld 408576698