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

Unified Diff: mojo/dart/unittests/embedder_tests/dart_to_cpp_tests.dart

Issue 1964193002: Dart: Refactors Proxies (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address comments Created 4 years, 7 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/unittests/embedder_tests/dart_to_cpp_tests.dart
diff --git a/mojo/dart/unittests/embedder_tests/dart_to_cpp_tests.dart b/mojo/dart/unittests/embedder_tests/dart_to_cpp_tests.dart
index 5f0764a0335fddff97b2fa84343f73eb59b62c59..5b32a37cb2b3f4cf499ab8409bf3414f33a76489 100644
--- a/mojo/dart/unittests/embedder_tests/dart_to_cpp_tests.dart
+++ b/mojo/dart/unittests/embedder_tests/dart_to_cpp_tests.dart
@@ -43,14 +43,14 @@ class DartSideImpl implements DartSide {
});
}
- void setClient(bindings.ProxyBase proxy) {
+ void setClient(bindings.Proxy proxy) {
assert(cppSide == null);
cppSide = proxy;
- cppSide.ptr.startTest();
+ cppSide.startTest();
}
void ping() {
- cppSide.ptr.pingResponse();
+ cppSide.pingResponse();
_completer.complete(null);
cppSide.close();
}
@@ -92,14 +92,14 @@ class DartSideImpl implements DartSide {
messagePipe1.endpoints[1].write(_sampleMessage.buffer.asByteData());
messagePipe2.endpoints[1].write(_sampleMessage.buffer.asByteData());
- cppSide.ptr.echoResponse(createEchoArgsList([arg, specialArg]));
+ cppSide.echoResponse(createEchoArgsList([arg, specialArg]));
dataPipe1.producer.handle.close();
dataPipe2.producer.handle.close();
messagePipe1.endpoints[1].handle.close();
messagePipe2.endpoints[1].handle.close();
}
- cppSide.ptr.testFinished();
+ cppSide.testFinished();
_completer.complete(null);
cppSide.close();
}

Powered by Google App Engine
This is Rietveld 408576698