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

Unified Diff: sky/tests/services/iframe-embed-vmc.sky

Issue 959993002: Dart: Removes name conflicts from generated 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: sky/tests/services/iframe-embed-vmc.sky
diff --git a/sky/tests/services/iframe-embed-vmc.sky b/sky/tests/services/iframe-embed-vmc.sky
index 1396b0d66d74d2ecbbf5c8fefe7177c64f189334..905ddd3da771d8e1f49e9e9aba823655504327cb 100644
--- a/sky/tests/services/iframe-embed-vmc.sky
+++ b/sky/tests/services/iframe-embed-vmc.sky
@@ -29,7 +29,8 @@ class IFrameEmbed extends Application {
// The Promise returned by the vmcApp's echoString() method will not
// resolve until the vmcApp's onEmbed() method runs.
final echoService = new echo_service_mojom.EchoServiceProxy.unbound();
- vmcAppConnection.requestService(echoService);
+ vmcAppConnection.requestService(
+ echo_service_mojom.EchoServiceRequest(echoService));
echoService.echoString("success").then((response) {
internals.notifyTestComplete(response.value);
});
@@ -38,7 +39,7 @@ class IFrameEmbed extends Application {
var proxyEndpoint = applicationPipe.endpoints[0];
var applicationEndpoint = applicationPipe.endpoints[1];
vmcAppConnection.remoteServiceProvider.connectToService(
- view_manager.ViewManagerClient.name, applicationEndpoint);
+ view_manager.ViewManagerClientName, applicationEndpoint);
document.querySelector("iframe").
embedViewManagerClient(proxyEndpoint.handle.h);
}
@@ -47,7 +48,6 @@ class IFrameEmbed extends Application {
main() {
var messagePipe = new MojoMessagePipe();
var app = new IFrameEmbed(messagePipe.endpoints[1]);
- app.listen();
var shellProxy = new shell_mojom.ShellProxy.fromHandle(
new MojoHandle(internals.takeShellProxyHandle()));
app.initializeFromShellProxy(shellProxy, [], "");

Powered by Google App Engine
This is Rietveld 408576698