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

Unified Diff: benchmarks/mojo_rtt_benchmark/lib/echo_server.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
« no previous file with comments | « no previous file | examples/dart/echo_client/lib/main.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: benchmarks/mojo_rtt_benchmark/lib/echo_server.dart
diff --git a/benchmarks/mojo_rtt_benchmark/lib/echo_server.dart b/benchmarks/mojo_rtt_benchmark/lib/echo_server.dart
index b9053056bd7c108371836bce68b06445cd863db7..04a2601582778318673e3220707f38d322c0b3a9 100644
--- a/benchmarks/mojo_rtt_benchmark/lib/echo_server.dart
+++ b/benchmarks/mojo_rtt_benchmark/lib/echo_server.dart
@@ -10,18 +10,18 @@ import 'package:mojo/core.dart';
import 'package:_mojo_for_test_only/mojo/examples/echo.mojom.dart';
class EchoImpl implements Echo {
- EchoStub _stub;
+ EchoInterface _echo;
EchoApplication _application;
EchoImpl(this._application, MojoMessagePipeEndpoint endpoint) {
- _stub = new EchoStub.fromEndpoint(endpoint, this);
- _stub.ctrl.onError = _errorHandler;
+ _echo = new EchoInterface.fromEndpoint(endpoint, this);
+ _echo.ctrl.onError = _errorHandler;
}
echoString(String value, [Function responseFactory]) =>
responseFactory(value);
- Future close() => _stub.close();
+ Future close() => _echo.close();
_errorHandler(Object e) => _application.removeService(this);
}
« no previous file with comments | « no previous file | examples/dart/echo_client/lib/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698