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

Unified Diff: mojo/dart/apptests/test_apps/echo/lib/main.dart

Issue 1998433002: Dart: Adds Interface and InterfaceRequest interfaces. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge 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/apptests/test_apps/echo/lib/main.dart
diff --git a/mojo/dart/apptests/test_apps/echo/lib/main.dart b/mojo/dart/apptests/test_apps/echo/lib/main.dart
index 9f8cb8d6a32e391647ab86ae341a7cf082cb02bc..4a203b9501f14cbb783c585225e28562f4182a51 100644
--- a/mojo/dart/apptests/test_apps/echo/lib/main.dart
+++ b/mojo/dart/apptests/test_apps/echo/lib/main.dart
@@ -10,16 +10,16 @@ import 'package:mojo/core.dart';
import 'package:_mojo_for_test_only/test/echo_service.mojom.dart';
class EchoServiceImpl implements EchoService {
- EchoServiceStub _stub;
+ EchoServiceInterface _service;
Application _application;
EchoServiceImpl(this._application, MojoMessagePipeEndpoint endpoint) {
- _stub = new EchoServiceStub.fromEndpoint(endpoint, this);
+ _service = new EchoServiceInterface.fromEndpoint(endpoint, this);
}
dynamic echoString(String value, [Function responseFactory]) {
if (value == "quit") {
- _stub.close();
+ _service.close();
}
return responseFactory(value);
}
@@ -27,7 +27,7 @@ class EchoServiceImpl implements EchoService {
dynamic delayedEchoString(String value, int millis,
[Function responseFactory]) {
if (value == "quit") {
- _stub.close();
+ _service.close();
}
return new Future.delayed(
new Duration(milliseconds: millis), () => responseFactory(value));
@@ -40,7 +40,7 @@ class EchoServiceImpl implements EchoService {
void quit() {}
static void _swapImpls(EchoServiceImpl impl) {
- final stub = impl._stub;
+ final stub = impl._service;
final app = impl._application;
// It is not allowed to do an unbind in the midst of handling an event, so
// it is delayed until popping back out to the event loop.

Powered by Google App Engine
This is Rietveld 408576698