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

Side by Side Diff: mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart

Issue 1983453002: Dart: Refactor Stubs (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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 library validation_test_interfaces_mojom; 5 library validation_test_interfaces_mojom;
6 import 'dart:async'; 6 import 'dart:async';
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'dart:typed_data'; 10 import 'dart:typed_data';
(...skipping 3350 matching lines...) Expand 10 before | Expand all | Expand 10 after
3361 responseFactory(null); 3361 responseFactory(null);
3362 3362
3363 dynamic getAllTypeDefinitions([Function responseFactory]) => 3363 dynamic getAllTypeDefinitions([Function responseFactory]) =>
3364 responseFactory(null); 3364 responseFactory(null);
3365 } 3365 }
3366 3366
3367 abstract class InterfaceA { 3367 abstract class InterfaceA {
3368 static const String serviceName = null; 3368 static const String serviceName = null;
3369 } 3369 }
3370 3370
3371 3371 class _InterfaceAProxyControl
3372 class _InterfaceAProxyControl extends bindings.ProxyMessageHandler 3372 extends bindings.ProxyMessageHandler
3373 implements bindings.ProxyControl { 3373 implements bindings.ProxyControl {
3374 _InterfaceAProxyControl.fromEndpoint( 3374 _InterfaceAProxyControl.fromEndpoint(
3375 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 3375 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
3376 3376
3377 _InterfaceAProxyControl.fromHandle( 3377 _InterfaceAProxyControl.fromHandle(
3378 core.MojoHandle handle) : super.fromHandle(handle); 3378 core.MojoHandle handle) : super.fromHandle(handle);
3379 3379
3380 _InterfaceAProxyControl.unbound() : super.unbound(); 3380 _InterfaceAProxyControl.unbound() : super.unbound();
3381 3381
3382 service_describer.ServiceDescription get serviceDescription => 3382 service_describer.ServiceDescription get serviceDescription =>
3383 new _InterfaceAServiceDescription(); 3383 new _InterfaceAServiceDescription();
3384 3384
3385 String get serviceName => InterfaceA.serviceName; 3385 String get serviceName => InterfaceA.serviceName;
3386 3386
3387 @override
3388 void handleResponse(bindings.ServiceMessage message) { 3387 void handleResponse(bindings.ServiceMessage message) {
3389 switch (message.header.type) { 3388 switch (message.header.type) {
3390 default: 3389 default:
3391 proxyError("Unexpected message type: ${message.header.type}"); 3390 proxyError("Unexpected message type: ${message.header.type}");
3392 close(immediate: true); 3391 close(immediate: true);
3393 break; 3392 break;
3394 } 3393 }
3395 } 3394 }
3396 3395
3397 @override 3396 @override
3398 String toString() { 3397 String toString() {
3399 var superString = super.toString(); 3398 var superString = super.toString();
3400 return "_InterfaceAProxyControl($superString)"; 3399 return "_InterfaceAProxyControl($superString)";
3401 } 3400 }
3402 } 3401 }
3403 3402
3404 3403 class InterfaceAProxy
3405 class InterfaceAProxy extends bindings.Proxy 3404 extends bindings.Proxy
3406 implements InterfaceA { 3405 implements InterfaceA {
3407 InterfaceAProxy.fromEndpoint( 3406 InterfaceAProxy.fromEndpoint(
3408 core.MojoMessagePipeEndpoint endpoint) 3407 core.MojoMessagePipeEndpoint endpoint)
3409 : super(new _InterfaceAProxyControl.fromEndpoint(endpoint)); 3408 : super(new _InterfaceAProxyControl.fromEndpoint(endpoint));
3410 3409
3411 InterfaceAProxy.fromHandle(core.MojoHandle handle) 3410 InterfaceAProxy.fromHandle(core.MojoHandle handle)
3412 : super(new _InterfaceAProxyControl.fromHandle(handle)); 3411 : super(new _InterfaceAProxyControl.fromHandle(handle));
3413 3412
3414 InterfaceAProxy.unbound() 3413 InterfaceAProxy.unbound()
3415 : super(new _InterfaceAProxyControl.unbound()); 3414 : super(new _InterfaceAProxyControl.unbound());
3416 3415
3417 static InterfaceAProxy newFromEndpoint( 3416 static InterfaceAProxy newFromEndpoint(
3418 core.MojoMessagePipeEndpoint endpoint) { 3417 core.MojoMessagePipeEndpoint endpoint) {
3419 assert(endpoint.setDescription("For InterfaceAProxy")); 3418 assert(endpoint.setDescription("For InterfaceAProxy"));
3420 return new InterfaceAProxy.fromEndpoint(endpoint); 3419 return new InterfaceAProxy.fromEndpoint(endpoint);
3421 } 3420 }
3422 3421
3423 factory InterfaceAProxy.connectToService( 3422 factory InterfaceAProxy.connectToService(
3424 bindings.ServiceConnector s, String url, [String serviceName]) { 3423 bindings.ServiceConnector s, String url, [String serviceName]) {
3425 InterfaceAProxy p = new InterfaceAProxy.unbound(); 3424 InterfaceAProxy p = new InterfaceAProxy.unbound();
3426 s.connectToService(url, p, serviceName); 3425 s.connectToService(url, p, serviceName);
3427 return p; 3426 return p;
3428 } 3427 }
3429 3428
3430 3429
3431 } 3430 }
3432 3431
3433 3432 class _InterfaceAStubControl
3434 class InterfaceAStub extends bindings.Stub { 3433 extends bindings.StubMessageHandler
3434 implements bindings.StubControl<InterfaceA> {
3435 InterfaceA _impl; 3435 InterfaceA _impl;
3436 3436
3437 InterfaceAStub.fromEndpoint( 3437 _InterfaceAStubControl.fromEndpoint(
3438 core.MojoMessagePipeEndpoint endpoint, [InterfaceA impl]) 3438 core.MojoMessagePipeEndpoint endpoint, [InterfaceA impl])
3439 : super.fromEndpoint(endpoint, autoBegin: impl != null) { 3439 : super.fromEndpoint(endpoint, autoBegin: impl != null) {
3440 _impl = impl; 3440 _impl = impl;
3441 } 3441 }
3442 3442
3443 InterfaceAStub.fromHandle( 3443 _InterfaceAStubControl.fromHandle(
3444 core.MojoHandle handle, [InterfaceA impl]) 3444 core.MojoHandle handle, [InterfaceA impl])
3445 : super.fromHandle(handle, autoBegin: impl != null) { 3445 : super.fromHandle(handle, autoBegin: impl != null) {
3446 _impl = impl; 3446 _impl = impl;
3447 } 3447 }
3448 3448
3449 InterfaceAStub.unbound([this._impl]) : super.unbound(); 3449 _InterfaceAStubControl.unbound([this._impl]) : super.unbound();
3450
3451 static InterfaceAStub newFromEndpoint(
3452 core.MojoMessagePipeEndpoint endpoint) {
3453 assert(endpoint.setDescription("For InterfaceAStub"));
3454 return new InterfaceAStub.fromEndpoint(endpoint);
3455 }
3456 3450
3457 3451
3458 3452
3459 dynamic handleMessage(bindings.ServiceMessage message) { 3453 dynamic handleMessage(bindings.ServiceMessage message) {
3460 if (bindings.ControlMessageHandler.isControlMessage(message)) { 3454 if (bindings.ControlMessageHandler.isControlMessage(message)) {
3461 return bindings.ControlMessageHandler.handleMessage(this, 3455 return bindings.ControlMessageHandler.handleMessage(this,
3462 0, 3456 0,
3463 message); 3457 message);
3464 } 3458 }
3465 if (_impl == null) { 3459 if (_impl == null) {
(...skipping 19 matching lines...) Expand all
3485 } 3479 }
3486 3480
3487 @override 3481 @override
3488 void bind(core.MojoMessagePipeEndpoint endpoint) { 3482 void bind(core.MojoMessagePipeEndpoint endpoint) {
3489 super.bind(endpoint); 3483 super.bind(endpoint);
3490 if (!isOpen && (_impl != null)) { 3484 if (!isOpen && (_impl != null)) {
3491 beginHandlingEvents(); 3485 beginHandlingEvents();
3492 } 3486 }
3493 } 3487 }
3494 3488
3489 @override
3495 String toString() { 3490 String toString() {
3496 var superString = super.toString(); 3491 var superString = super.toString();
3497 return "InterfaceAStub($superString)"; 3492 return "_InterfaceAStubControl($superString)";
3498 } 3493 }
3499 3494
3500 int get version => 0; 3495 int get version => 0;
3501 3496
3502 static service_describer.ServiceDescription _cachedServiceDescription; 3497 static service_describer.ServiceDescription _cachedServiceDescription;
3503 static service_describer.ServiceDescription get serviceDescription { 3498 static service_describer.ServiceDescription get serviceDescription {
3504 if (_cachedServiceDescription == null) { 3499 if (_cachedServiceDescription == null) {
3505 _cachedServiceDescription = new _InterfaceAServiceDescription(); 3500 _cachedServiceDescription = new _InterfaceAServiceDescription();
3506 } 3501 }
3507 return _cachedServiceDescription; 3502 return _cachedServiceDescription;
3508 } 3503 }
3509 } 3504 }
3510 3505
3506 class InterfaceAStub
3507 extends bindings.Stub<InterfaceA>
3508 implements InterfaceA {
3509 InterfaceAStub.fromEndpoint(
3510 core.MojoMessagePipeEndpoint endpoint, [InterfaceA impl])
3511 : super(new _InterfaceAStubControl.fromEndpoint(endpoint, impl));
3512
3513 InterfaceAStub.fromHandle(
3514 core.MojoHandle handle, [InterfaceA impl])
3515 : super(new _InterfaceAStubControl.fromHandle(handle, impl));
3516
3517 InterfaceAStub.unbound([InterfaceA impl])
3518 : super(new _InterfaceAStubControl.unbound(impl));
3519
3520 static InterfaceAStub newFromEndpoint(
3521 core.MojoMessagePipeEndpoint endpoint) {
3522 assert(endpoint.setDescription("For InterfaceAStub"));
3523 return new InterfaceAStub.fromEndpoint(endpoint);
3524 }
3525
3526 static service_describer.ServiceDescription get serviceDescription =>
3527 _InterfaceAStubControl.serviceDescription;
3528
3529
3530 }
3531
3511 const int _boundsCheckTestInterfaceMethodMethod0Name = 0; 3532 const int _boundsCheckTestInterfaceMethodMethod0Name = 0;
3512 const int _boundsCheckTestInterfaceMethodMethod1Name = 1; 3533 const int _boundsCheckTestInterfaceMethodMethod1Name = 1;
3513 3534
3514 class _BoundsCheckTestInterfaceServiceDescription implements service_describer.S erviceDescription { 3535 class _BoundsCheckTestInterfaceServiceDescription implements service_describer.S erviceDescription {
3515 dynamic getTopLevelInterface([Function responseFactory]){ 3536 dynamic getTopLevelInterface([Function responseFactory]){
3516 var interfaceTypeKey = getRuntimeTypeInfo().services["this.is.the.service.na me.for.BoundsCheckTestInterface"]; 3537 var interfaceTypeKey = getRuntimeTypeInfo().services["this.is.the.service.na me.for.BoundsCheckTestInterface"];
3517 var userDefinedType = getAllMojomTypeDefinitions()[interfaceTypeKey]; 3538 var userDefinedType = getAllMojomTypeDefinitions()[interfaceTypeKey];
3518 return responseFactory(userDefinedType.interfaceType); 3539 return responseFactory(userDefinedType.interfaceType);
3519 } 3540 }
3520 3541
3521 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 3542 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
3522 responseFactory(getAllMojomTypeDefinitions()[typeKey]); 3543 responseFactory(getAllMojomTypeDefinitions()[typeKey]);
3523 3544
3524 dynamic getAllTypeDefinitions([Function responseFactory]) => 3545 dynamic getAllTypeDefinitions([Function responseFactory]) =>
3525 responseFactory(getAllMojomTypeDefinitions()); 3546 responseFactory(getAllMojomTypeDefinitions());
3526 } 3547 }
3527 3548
3528 abstract class BoundsCheckTestInterface { 3549 abstract class BoundsCheckTestInterface {
3529 static const String serviceName = "this.is.the.service.name.for.BoundsCheckTes tInterface"; 3550 static const String serviceName = "this.is.the.service.name.for.BoundsCheckTes tInterface";
3530 dynamic method0(int param0,[Function responseFactory = null]); 3551 dynamic method0(int param0,[Function responseFactory = null]);
3531 void method1(int param0); 3552 void method1(int param0);
3532 } 3553 }
3533 3554
3534 3555 class _BoundsCheckTestInterfaceProxyControl
3535 class _BoundsCheckTestInterfaceProxyControl extends bindings.ProxyMessageHandler 3556 extends bindings.ProxyMessageHandler
3536 implements bindings.ProxyControl { 3557 implements bindings.ProxyControl {
3537 _BoundsCheckTestInterfaceProxyControl.fromEndpoint( 3558 _BoundsCheckTestInterfaceProxyControl.fromEndpoint(
3538 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 3559 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
3539 3560
3540 _BoundsCheckTestInterfaceProxyControl.fromHandle( 3561 _BoundsCheckTestInterfaceProxyControl.fromHandle(
3541 core.MojoHandle handle) : super.fromHandle(handle); 3562 core.MojoHandle handle) : super.fromHandle(handle);
3542 3563
3543 _BoundsCheckTestInterfaceProxyControl.unbound() : super.unbound(); 3564 _BoundsCheckTestInterfaceProxyControl.unbound() : super.unbound();
3544 3565
3545 service_describer.ServiceDescription get serviceDescription => 3566 service_describer.ServiceDescription get serviceDescription =>
3546 new _BoundsCheckTestInterfaceServiceDescription(); 3567 new _BoundsCheckTestInterfaceServiceDescription();
3547 3568
3548 String get serviceName => BoundsCheckTestInterface.serviceName; 3569 String get serviceName => BoundsCheckTestInterface.serviceName;
3549 3570
3550 @override
3551 void handleResponse(bindings.ServiceMessage message) { 3571 void handleResponse(bindings.ServiceMessage message) {
3552 switch (message.header.type) { 3572 switch (message.header.type) {
3553 case _boundsCheckTestInterfaceMethodMethod0Name: 3573 case _boundsCheckTestInterfaceMethodMethod0Name:
3554 var r = BoundsCheckTestInterfaceMethod0ResponseParams.deserialize( 3574 var r = BoundsCheckTestInterfaceMethod0ResponseParams.deserialize(
3555 message.payload); 3575 message.payload);
3556 if (!message.header.hasRequestId) { 3576 if (!message.header.hasRequestId) {
3557 proxyError("Expected a message with a valid request Id."); 3577 proxyError("Expected a message with a valid request Id.");
3558 return; 3578 return;
3559 } 3579 }
3560 Completer c = completerMap[message.header.requestId]; 3580 Completer c = completerMap[message.header.requestId];
(...skipping 16 matching lines...) Expand all
3577 } 3597 }
3578 } 3598 }
3579 3599
3580 @override 3600 @override
3581 String toString() { 3601 String toString() {
3582 var superString = super.toString(); 3602 var superString = super.toString();
3583 return "_BoundsCheckTestInterfaceProxyControl($superString)"; 3603 return "_BoundsCheckTestInterfaceProxyControl($superString)";
3584 } 3604 }
3585 } 3605 }
3586 3606
3587 3607 class BoundsCheckTestInterfaceProxy
3588 class BoundsCheckTestInterfaceProxy extends bindings.Proxy 3608 extends bindings.Proxy
3589 implements BoundsCheckTestInterface { 3609 implements BoundsCheckTestInterface {
3590 BoundsCheckTestInterfaceProxy.fromEndpoint( 3610 BoundsCheckTestInterfaceProxy.fromEndpoint(
3591 core.MojoMessagePipeEndpoint endpoint) 3611 core.MojoMessagePipeEndpoint endpoint)
3592 : super(new _BoundsCheckTestInterfaceProxyControl.fromEndpoint(endpoint)); 3612 : super(new _BoundsCheckTestInterfaceProxyControl.fromEndpoint(endpoint));
3593 3613
3594 BoundsCheckTestInterfaceProxy.fromHandle(core.MojoHandle handle) 3614 BoundsCheckTestInterfaceProxy.fromHandle(core.MojoHandle handle)
3595 : super(new _BoundsCheckTestInterfaceProxyControl.fromHandle(handle)); 3615 : super(new _BoundsCheckTestInterfaceProxyControl.fromHandle(handle));
3596 3616
3597 BoundsCheckTestInterfaceProxy.unbound() 3617 BoundsCheckTestInterfaceProxy.unbound()
3598 : super(new _BoundsCheckTestInterfaceProxyControl.unbound()); 3618 : super(new _BoundsCheckTestInterfaceProxyControl.unbound());
3599 3619
(...skipping 25 matching lines...) Expand all
3625 ctrl.proxyError("The Proxy is closed."); 3645 ctrl.proxyError("The Proxy is closed.");
3626 return; 3646 return;
3627 } 3647 }
3628 var params = new _BoundsCheckTestInterfaceMethod1Params(); 3648 var params = new _BoundsCheckTestInterfaceMethod1Params();
3629 params.param0 = param0; 3649 params.param0 = param0;
3630 ctrl.sendMessage(params, 3650 ctrl.sendMessage(params,
3631 _boundsCheckTestInterfaceMethodMethod1Name); 3651 _boundsCheckTestInterfaceMethodMethod1Name);
3632 } 3652 }
3633 } 3653 }
3634 3654
3635 3655 class _BoundsCheckTestInterfaceStubControl
3636 class BoundsCheckTestInterfaceStub extends bindings.Stub { 3656 extends bindings.StubMessageHandler
3657 implements bindings.StubControl<BoundsCheckTestInterface> {
3637 BoundsCheckTestInterface _impl; 3658 BoundsCheckTestInterface _impl;
3638 3659
3639 BoundsCheckTestInterfaceStub.fromEndpoint( 3660 _BoundsCheckTestInterfaceStubControl.fromEndpoint(
3640 core.MojoMessagePipeEndpoint endpoint, [BoundsCheckTestInterface impl]) 3661 core.MojoMessagePipeEndpoint endpoint, [BoundsCheckTestInterface impl])
3641 : super.fromEndpoint(endpoint, autoBegin: impl != null) { 3662 : super.fromEndpoint(endpoint, autoBegin: impl != null) {
3642 _impl = impl; 3663 _impl = impl;
3643 } 3664 }
3644 3665
3645 BoundsCheckTestInterfaceStub.fromHandle( 3666 _BoundsCheckTestInterfaceStubControl.fromHandle(
3646 core.MojoHandle handle, [BoundsCheckTestInterface impl]) 3667 core.MojoHandle handle, [BoundsCheckTestInterface impl])
3647 : super.fromHandle(handle, autoBegin: impl != null) { 3668 : super.fromHandle(handle, autoBegin: impl != null) {
3648 _impl = impl; 3669 _impl = impl;
3649 } 3670 }
3650 3671
3651 BoundsCheckTestInterfaceStub.unbound([this._impl]) : super.unbound(); 3672 _BoundsCheckTestInterfaceStubControl.unbound([this._impl]) : super.unbound();
3652
3653 static BoundsCheckTestInterfaceStub newFromEndpoint(
3654 core.MojoMessagePipeEndpoint endpoint) {
3655 assert(endpoint.setDescription("For BoundsCheckTestInterfaceStub"));
3656 return new BoundsCheckTestInterfaceStub.fromEndpoint(endpoint);
3657 }
3658 3673
3659 3674
3660 BoundsCheckTestInterfaceMethod0ResponseParams _boundsCheckTestInterfaceMethod0 ResponseParamsFactory(int param0) { 3675 BoundsCheckTestInterfaceMethod0ResponseParams _boundsCheckTestInterfaceMethod0 ResponseParamsFactory(int param0) {
3661 var result = new BoundsCheckTestInterfaceMethod0ResponseParams(); 3676 var result = new BoundsCheckTestInterfaceMethod0ResponseParams();
3662 result.param0 = param0; 3677 result.param0 = param0;
3663 return result; 3678 return result;
3664 } 3679 }
3665 3680
3666 dynamic handleMessage(bindings.ServiceMessage message) { 3681 dynamic handleMessage(bindings.ServiceMessage message) {
3667 if (bindings.ControlMessageHandler.isControlMessage(message)) { 3682 if (bindings.ControlMessageHandler.isControlMessage(message)) {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
3719 } 3734 }
3720 3735
3721 @override 3736 @override
3722 void bind(core.MojoMessagePipeEndpoint endpoint) { 3737 void bind(core.MojoMessagePipeEndpoint endpoint) {
3723 super.bind(endpoint); 3738 super.bind(endpoint);
3724 if (!isOpen && (_impl != null)) { 3739 if (!isOpen && (_impl != null)) {
3725 beginHandlingEvents(); 3740 beginHandlingEvents();
3726 } 3741 }
3727 } 3742 }
3728 3743
3744 @override
3729 String toString() { 3745 String toString() {
3730 var superString = super.toString(); 3746 var superString = super.toString();
3731 return "BoundsCheckTestInterfaceStub($superString)"; 3747 return "_BoundsCheckTestInterfaceStubControl($superString)";
3732 } 3748 }
3733 3749
3734 int get version => 0; 3750 int get version => 0;
3735 3751
3736 static service_describer.ServiceDescription _cachedServiceDescription; 3752 static service_describer.ServiceDescription _cachedServiceDescription;
3737 static service_describer.ServiceDescription get serviceDescription { 3753 static service_describer.ServiceDescription get serviceDescription {
3738 if (_cachedServiceDescription == null) { 3754 if (_cachedServiceDescription == null) {
3739 _cachedServiceDescription = new _BoundsCheckTestInterfaceServiceDescriptio n(); 3755 _cachedServiceDescription = new _BoundsCheckTestInterfaceServiceDescriptio n();
3740 } 3756 }
3741 return _cachedServiceDescription; 3757 return _cachedServiceDescription;
3742 } 3758 }
3743 } 3759 }
3744 3760
3761 class BoundsCheckTestInterfaceStub
3762 extends bindings.Stub<BoundsCheckTestInterface>
3763 implements BoundsCheckTestInterface {
3764 BoundsCheckTestInterfaceStub.fromEndpoint(
3765 core.MojoMessagePipeEndpoint endpoint, [BoundsCheckTestInterface impl])
3766 : super(new _BoundsCheckTestInterfaceStubControl.fromEndpoint(endpoint, im pl));
3767
3768 BoundsCheckTestInterfaceStub.fromHandle(
3769 core.MojoHandle handle, [BoundsCheckTestInterface impl])
3770 : super(new _BoundsCheckTestInterfaceStubControl.fromHandle(handle, impl)) ;
3771
3772 BoundsCheckTestInterfaceStub.unbound([BoundsCheckTestInterface impl])
3773 : super(new _BoundsCheckTestInterfaceStubControl.unbound(impl));
3774
3775 static BoundsCheckTestInterfaceStub newFromEndpoint(
3776 core.MojoMessagePipeEndpoint endpoint) {
3777 assert(endpoint.setDescription("For BoundsCheckTestInterfaceStub"));
3778 return new BoundsCheckTestInterfaceStub.fromEndpoint(endpoint);
3779 }
3780
3781 static service_describer.ServiceDescription get serviceDescription =>
3782 _BoundsCheckTestInterfaceStubControl.serviceDescription;
3783
3784
3785 dynamic method0(int param0,[Function responseFactory = null]) {
3786 return impl.method0(param0,responseFactory);
3787 }
3788 void method1(int param0) {
3789 return impl.method1(param0);
3790 }
3791 }
3792
3745 const int _conformanceTestInterfaceMethodMethod0Name = 0; 3793 const int _conformanceTestInterfaceMethodMethod0Name = 0;
3746 const int _conformanceTestInterfaceMethodMethod1Name = 1; 3794 const int _conformanceTestInterfaceMethodMethod1Name = 1;
3747 const int _conformanceTestInterfaceMethodMethod2Name = 2; 3795 const int _conformanceTestInterfaceMethodMethod2Name = 2;
3748 const int _conformanceTestInterfaceMethodMethod3Name = 3; 3796 const int _conformanceTestInterfaceMethodMethod3Name = 3;
3749 const int _conformanceTestInterfaceMethodMethod4Name = 4; 3797 const int _conformanceTestInterfaceMethodMethod4Name = 4;
3750 const int _conformanceTestInterfaceMethodMethod5Name = 5; 3798 const int _conformanceTestInterfaceMethodMethod5Name = 5;
3751 const int _conformanceTestInterfaceMethodMethod6Name = 6; 3799 const int _conformanceTestInterfaceMethodMethod6Name = 6;
3752 const int _conformanceTestInterfaceMethodMethod7Name = 7; 3800 const int _conformanceTestInterfaceMethodMethod7Name = 7;
3753 const int _conformanceTestInterfaceMethodMethod8Name = 8; 3801 const int _conformanceTestInterfaceMethodMethod8Name = 8;
3754 const int _conformanceTestInterfaceMethodMethod9Name = 9; 3802 const int _conformanceTestInterfaceMethodMethod9Name = 9;
(...skipping 28 matching lines...) Expand all
3783 void method8(List<List<String>> param0); 3831 void method8(List<List<String>> param0);
3784 void method9(List<List<core.MojoHandle>> param0); 3832 void method9(List<List<core.MojoHandle>> param0);
3785 void method10(Map<String, int> param0); 3833 void method10(Map<String, int> param0);
3786 void method11(StructG param0); 3834 void method11(StructG param0);
3787 dynamic method12(double param0,[Function responseFactory = null]); 3835 dynamic method12(double param0,[Function responseFactory = null]);
3788 void method13(Object param0, int param1, Object param2); 3836 void method13(Object param0, int param1, Object param2);
3789 void method14(UnionA param0); 3837 void method14(UnionA param0);
3790 void method15(StructH param0); 3838 void method15(StructH param0);
3791 } 3839 }
3792 3840
3793 3841 class _ConformanceTestInterfaceProxyControl
3794 class _ConformanceTestInterfaceProxyControl extends bindings.ProxyMessageHandler 3842 extends bindings.ProxyMessageHandler
3795 implements bindings.ProxyControl { 3843 implements bindings.ProxyControl {
3796 _ConformanceTestInterfaceProxyControl.fromEndpoint( 3844 _ConformanceTestInterfaceProxyControl.fromEndpoint(
3797 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 3845 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
3798 3846
3799 _ConformanceTestInterfaceProxyControl.fromHandle( 3847 _ConformanceTestInterfaceProxyControl.fromHandle(
3800 core.MojoHandle handle) : super.fromHandle(handle); 3848 core.MojoHandle handle) : super.fromHandle(handle);
3801 3849
3802 _ConformanceTestInterfaceProxyControl.unbound() : super.unbound(); 3850 _ConformanceTestInterfaceProxyControl.unbound() : super.unbound();
3803 3851
3804 service_describer.ServiceDescription get serviceDescription => 3852 service_describer.ServiceDescription get serviceDescription =>
3805 new _ConformanceTestInterfaceServiceDescription(); 3853 new _ConformanceTestInterfaceServiceDescription();
3806 3854
3807 String get serviceName => ConformanceTestInterface.serviceName; 3855 String get serviceName => ConformanceTestInterface.serviceName;
3808 3856
3809 @override
3810 void handleResponse(bindings.ServiceMessage message) { 3857 void handleResponse(bindings.ServiceMessage message) {
3811 switch (message.header.type) { 3858 switch (message.header.type) {
3812 case _conformanceTestInterfaceMethodMethod12Name: 3859 case _conformanceTestInterfaceMethodMethod12Name:
3813 var r = ConformanceTestInterfaceMethod12ResponseParams.deserialize( 3860 var r = ConformanceTestInterfaceMethod12ResponseParams.deserialize(
3814 message.payload); 3861 message.payload);
3815 if (!message.header.hasRequestId) { 3862 if (!message.header.hasRequestId) {
3816 proxyError("Expected a message with a valid request Id."); 3863 proxyError("Expected a message with a valid request Id.");
3817 return; 3864 return;
3818 } 3865 }
3819 Completer c = completerMap[message.header.requestId]; 3866 Completer c = completerMap[message.header.requestId];
(...skipping 16 matching lines...) Expand all
3836 } 3883 }
3837 } 3884 }
3838 3885
3839 @override 3886 @override
3840 String toString() { 3887 String toString() {
3841 var superString = super.toString(); 3888 var superString = super.toString();
3842 return "_ConformanceTestInterfaceProxyControl($superString)"; 3889 return "_ConformanceTestInterfaceProxyControl($superString)";
3843 } 3890 }
3844 } 3891 }
3845 3892
3846 3893 class ConformanceTestInterfaceProxy
3847 class ConformanceTestInterfaceProxy extends bindings.Proxy 3894 extends bindings.Proxy
3848 implements ConformanceTestInterface { 3895 implements ConformanceTestInterface {
3849 ConformanceTestInterfaceProxy.fromEndpoint( 3896 ConformanceTestInterfaceProxy.fromEndpoint(
3850 core.MojoMessagePipeEndpoint endpoint) 3897 core.MojoMessagePipeEndpoint endpoint)
3851 : super(new _ConformanceTestInterfaceProxyControl.fromEndpoint(endpoint)); 3898 : super(new _ConformanceTestInterfaceProxyControl.fromEndpoint(endpoint));
3852 3899
3853 ConformanceTestInterfaceProxy.fromHandle(core.MojoHandle handle) 3900 ConformanceTestInterfaceProxy.fromHandle(core.MojoHandle handle)
3854 : super(new _ConformanceTestInterfaceProxyControl.fromHandle(handle)); 3901 : super(new _ConformanceTestInterfaceProxyControl.fromHandle(handle));
3855 3902
3856 ConformanceTestInterfaceProxy.unbound() 3903 ConformanceTestInterfaceProxy.unbound()
3857 : super(new _ConformanceTestInterfaceProxyControl.unbound()); 3904 : super(new _ConformanceTestInterfaceProxyControl.unbound());
3858 3905
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
4030 ctrl.proxyError("The Proxy is closed."); 4077 ctrl.proxyError("The Proxy is closed.");
4031 return; 4078 return;
4032 } 4079 }
4033 var params = new _ConformanceTestInterfaceMethod15Params(); 4080 var params = new _ConformanceTestInterfaceMethod15Params();
4034 params.param0 = param0; 4081 params.param0 = param0;
4035 ctrl.sendMessage(params, 4082 ctrl.sendMessage(params,
4036 _conformanceTestInterfaceMethodMethod15Name); 4083 _conformanceTestInterfaceMethodMethod15Name);
4037 } 4084 }
4038 } 4085 }
4039 4086
4040 4087 class _ConformanceTestInterfaceStubControl
4041 class ConformanceTestInterfaceStub extends bindings.Stub { 4088 extends bindings.StubMessageHandler
4089 implements bindings.StubControl<ConformanceTestInterface> {
4042 ConformanceTestInterface _impl; 4090 ConformanceTestInterface _impl;
4043 4091
4044 ConformanceTestInterfaceStub.fromEndpoint( 4092 _ConformanceTestInterfaceStubControl.fromEndpoint(
4045 core.MojoMessagePipeEndpoint endpoint, [ConformanceTestInterface impl]) 4093 core.MojoMessagePipeEndpoint endpoint, [ConformanceTestInterface impl])
4046 : super.fromEndpoint(endpoint, autoBegin: impl != null) { 4094 : super.fromEndpoint(endpoint, autoBegin: impl != null) {
4047 _impl = impl; 4095 _impl = impl;
4048 } 4096 }
4049 4097
4050 ConformanceTestInterfaceStub.fromHandle( 4098 _ConformanceTestInterfaceStubControl.fromHandle(
4051 core.MojoHandle handle, [ConformanceTestInterface impl]) 4099 core.MojoHandle handle, [ConformanceTestInterface impl])
4052 : super.fromHandle(handle, autoBegin: impl != null) { 4100 : super.fromHandle(handle, autoBegin: impl != null) {
4053 _impl = impl; 4101 _impl = impl;
4054 } 4102 }
4055 4103
4056 ConformanceTestInterfaceStub.unbound([this._impl]) : super.unbound(); 4104 _ConformanceTestInterfaceStubControl.unbound([this._impl]) : super.unbound();
4057
4058 static ConformanceTestInterfaceStub newFromEndpoint(
4059 core.MojoMessagePipeEndpoint endpoint) {
4060 assert(endpoint.setDescription("For ConformanceTestInterfaceStub"));
4061 return new ConformanceTestInterfaceStub.fromEndpoint(endpoint);
4062 }
4063 4105
4064 4106
4065 ConformanceTestInterfaceMethod12ResponseParams _conformanceTestInterfaceMethod 12ResponseParamsFactory(double param0) { 4107 ConformanceTestInterfaceMethod12ResponseParams _conformanceTestInterfaceMethod 12ResponseParamsFactory(double param0) {
4066 var result = new ConformanceTestInterfaceMethod12ResponseParams(); 4108 var result = new ConformanceTestInterfaceMethod12ResponseParams();
4067 result.param0 = param0; 4109 result.param0 = param0;
4068 return result; 4110 return result;
4069 } 4111 }
4070 4112
4071 dynamic handleMessage(bindings.ServiceMessage message) { 4113 dynamic handleMessage(bindings.ServiceMessage message) {
4072 if (bindings.ControlMessageHandler.isControlMessage(message)) { 4114 if (bindings.ControlMessageHandler.isControlMessage(message)) {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
4194 } 4236 }
4195 4237
4196 @override 4238 @override
4197 void bind(core.MojoMessagePipeEndpoint endpoint) { 4239 void bind(core.MojoMessagePipeEndpoint endpoint) {
4198 super.bind(endpoint); 4240 super.bind(endpoint);
4199 if (!isOpen && (_impl != null)) { 4241 if (!isOpen && (_impl != null)) {
4200 beginHandlingEvents(); 4242 beginHandlingEvents();
4201 } 4243 }
4202 } 4244 }
4203 4245
4246 @override
4204 String toString() { 4247 String toString() {
4205 var superString = super.toString(); 4248 var superString = super.toString();
4206 return "ConformanceTestInterfaceStub($superString)"; 4249 return "_ConformanceTestInterfaceStubControl($superString)";
4207 } 4250 }
4208 4251
4209 int get version => 0; 4252 int get version => 0;
4210 4253
4211 static service_describer.ServiceDescription _cachedServiceDescription; 4254 static service_describer.ServiceDescription _cachedServiceDescription;
4212 static service_describer.ServiceDescription get serviceDescription { 4255 static service_describer.ServiceDescription get serviceDescription {
4213 if (_cachedServiceDescription == null) { 4256 if (_cachedServiceDescription == null) {
4214 _cachedServiceDescription = new _ConformanceTestInterfaceServiceDescriptio n(); 4257 _cachedServiceDescription = new _ConformanceTestInterfaceServiceDescriptio n();
4215 } 4258 }
4216 return _cachedServiceDescription; 4259 return _cachedServiceDescription;
4217 } 4260 }
4218 } 4261 }
4219 4262
4263 class ConformanceTestInterfaceStub
4264 extends bindings.Stub<ConformanceTestInterface>
4265 implements ConformanceTestInterface {
4266 ConformanceTestInterfaceStub.fromEndpoint(
4267 core.MojoMessagePipeEndpoint endpoint, [ConformanceTestInterface impl])
4268 : super(new _ConformanceTestInterfaceStubControl.fromEndpoint(endpoint, im pl));
4269
4270 ConformanceTestInterfaceStub.fromHandle(
4271 core.MojoHandle handle, [ConformanceTestInterface impl])
4272 : super(new _ConformanceTestInterfaceStubControl.fromHandle(handle, impl)) ;
4273
4274 ConformanceTestInterfaceStub.unbound([ConformanceTestInterface impl])
4275 : super(new _ConformanceTestInterfaceStubControl.unbound(impl));
4276
4277 static ConformanceTestInterfaceStub newFromEndpoint(
4278 core.MojoMessagePipeEndpoint endpoint) {
4279 assert(endpoint.setDescription("For ConformanceTestInterfaceStub"));
4280 return new ConformanceTestInterfaceStub.fromEndpoint(endpoint);
4281 }
4282
4283 static service_describer.ServiceDescription get serviceDescription =>
4284 _ConformanceTestInterfaceStubControl.serviceDescription;
4285
4286
4287 void method0(double param0) {
4288 return impl.method0(param0);
4289 }
4290 void method1(StructA param0) {
4291 return impl.method1(param0);
4292 }
4293 void method2(StructB param0, StructA param1) {
4294 return impl.method2(param0, param1);
4295 }
4296 void method3(List<bool> param0) {
4297 return impl.method3(param0);
4298 }
4299 void method4(StructC param0, List<int> param1) {
4300 return impl.method4(param0, param1);
4301 }
4302 void method5(StructE param0, core.MojoDataPipeProducer param1) {
4303 return impl.method5(param0, param1);
4304 }
4305 void method6(List<List<int>> param0) {
4306 return impl.method6(param0);
4307 }
4308 void method7(StructF param0, List<List<int>> param1) {
4309 return impl.method7(param0, param1);
4310 }
4311 void method8(List<List<String>> param0) {
4312 return impl.method8(param0);
4313 }
4314 void method9(List<List<core.MojoHandle>> param0) {
4315 return impl.method9(param0);
4316 }
4317 void method10(Map<String, int> param0) {
4318 return impl.method10(param0);
4319 }
4320 void method11(StructG param0) {
4321 return impl.method11(param0);
4322 }
4323 dynamic method12(double param0,[Function responseFactory = null]) {
4324 return impl.method12(param0,responseFactory);
4325 }
4326 void method13(Object param0, int param1, Object param2) {
4327 return impl.method13(param0, param1, param2);
4328 }
4329 void method14(UnionA param0) {
4330 return impl.method14(param0);
4331 }
4332 void method15(StructH param0) {
4333 return impl.method15(param0);
4334 }
4335 }
4336
4220 const int _integrationTestInterfaceMethodMethod0Name = 0; 4337 const int _integrationTestInterfaceMethodMethod0Name = 0;
4221 4338
4222 class _IntegrationTestInterfaceServiceDescription implements service_describer.S erviceDescription { 4339 class _IntegrationTestInterfaceServiceDescription implements service_describer.S erviceDescription {
4223 dynamic getTopLevelInterface([Function responseFactory]) => 4340 dynamic getTopLevelInterface([Function responseFactory]) =>
4224 responseFactory(null); 4341 responseFactory(null);
4225 4342
4226 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 4343 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
4227 responseFactory(null); 4344 responseFactory(null);
4228 4345
4229 dynamic getAllTypeDefinitions([Function responseFactory]) => 4346 dynamic getAllTypeDefinitions([Function responseFactory]) =>
4230 responseFactory(null); 4347 responseFactory(null);
4231 } 4348 }
4232 4349
4233 abstract class IntegrationTestInterface { 4350 abstract class IntegrationTestInterface {
4234 static const String serviceName = null; 4351 static const String serviceName = null;
4235 dynamic method0(BasicStruct param0,[Function responseFactory = null]); 4352 dynamic method0(BasicStruct param0,[Function responseFactory = null]);
4236 } 4353 }
4237 4354
4238 4355 class _IntegrationTestInterfaceProxyControl
4239 class _IntegrationTestInterfaceProxyControl extends bindings.ProxyMessageHandler 4356 extends bindings.ProxyMessageHandler
4240 implements bindings.ProxyControl { 4357 implements bindings.ProxyControl {
4241 _IntegrationTestInterfaceProxyControl.fromEndpoint( 4358 _IntegrationTestInterfaceProxyControl.fromEndpoint(
4242 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 4359 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
4243 4360
4244 _IntegrationTestInterfaceProxyControl.fromHandle( 4361 _IntegrationTestInterfaceProxyControl.fromHandle(
4245 core.MojoHandle handle) : super.fromHandle(handle); 4362 core.MojoHandle handle) : super.fromHandle(handle);
4246 4363
4247 _IntegrationTestInterfaceProxyControl.unbound() : super.unbound(); 4364 _IntegrationTestInterfaceProxyControl.unbound() : super.unbound();
4248 4365
4249 service_describer.ServiceDescription get serviceDescription => 4366 service_describer.ServiceDescription get serviceDescription =>
4250 new _IntegrationTestInterfaceServiceDescription(); 4367 new _IntegrationTestInterfaceServiceDescription();
4251 4368
4252 String get serviceName => IntegrationTestInterface.serviceName; 4369 String get serviceName => IntegrationTestInterface.serviceName;
4253 4370
4254 @override
4255 void handleResponse(bindings.ServiceMessage message) { 4371 void handleResponse(bindings.ServiceMessage message) {
4256 switch (message.header.type) { 4372 switch (message.header.type) {
4257 case _integrationTestInterfaceMethodMethod0Name: 4373 case _integrationTestInterfaceMethodMethod0Name:
4258 var r = IntegrationTestInterfaceMethod0ResponseParams.deserialize( 4374 var r = IntegrationTestInterfaceMethod0ResponseParams.deserialize(
4259 message.payload); 4375 message.payload);
4260 if (!message.header.hasRequestId) { 4376 if (!message.header.hasRequestId) {
4261 proxyError("Expected a message with a valid request Id."); 4377 proxyError("Expected a message with a valid request Id.");
4262 return; 4378 return;
4263 } 4379 }
4264 Completer c = completerMap[message.header.requestId]; 4380 Completer c = completerMap[message.header.requestId];
(...skipping 16 matching lines...) Expand all
4281 } 4397 }
4282 } 4398 }
4283 4399
4284 @override 4400 @override
4285 String toString() { 4401 String toString() {
4286 var superString = super.toString(); 4402 var superString = super.toString();
4287 return "_IntegrationTestInterfaceProxyControl($superString)"; 4403 return "_IntegrationTestInterfaceProxyControl($superString)";
4288 } 4404 }
4289 } 4405 }
4290 4406
4291 4407 class IntegrationTestInterfaceProxy
4292 class IntegrationTestInterfaceProxy extends bindings.Proxy 4408 extends bindings.Proxy
4293 implements IntegrationTestInterface { 4409 implements IntegrationTestInterface {
4294 IntegrationTestInterfaceProxy.fromEndpoint( 4410 IntegrationTestInterfaceProxy.fromEndpoint(
4295 core.MojoMessagePipeEndpoint endpoint) 4411 core.MojoMessagePipeEndpoint endpoint)
4296 : super(new _IntegrationTestInterfaceProxyControl.fromEndpoint(endpoint)); 4412 : super(new _IntegrationTestInterfaceProxyControl.fromEndpoint(endpoint));
4297 4413
4298 IntegrationTestInterfaceProxy.fromHandle(core.MojoHandle handle) 4414 IntegrationTestInterfaceProxy.fromHandle(core.MojoHandle handle)
4299 : super(new _IntegrationTestInterfaceProxyControl.fromHandle(handle)); 4415 : super(new _IntegrationTestInterfaceProxyControl.fromHandle(handle));
4300 4416
4301 IntegrationTestInterfaceProxy.unbound() 4417 IntegrationTestInterfaceProxy.unbound()
4302 : super(new _IntegrationTestInterfaceProxyControl.unbound()); 4418 : super(new _IntegrationTestInterfaceProxyControl.unbound());
4303 4419
(...skipping 15 matching lines...) Expand all
4319 var params = new _IntegrationTestInterfaceMethod0Params(); 4435 var params = new _IntegrationTestInterfaceMethod0Params();
4320 params.param0 = param0; 4436 params.param0 = param0;
4321 return ctrl.sendMessageWithRequestId( 4437 return ctrl.sendMessageWithRequestId(
4322 params, 4438 params,
4323 _integrationTestInterfaceMethodMethod0Name, 4439 _integrationTestInterfaceMethodMethod0Name,
4324 -1, 4440 -1,
4325 bindings.MessageHeader.kMessageExpectsResponse); 4441 bindings.MessageHeader.kMessageExpectsResponse);
4326 } 4442 }
4327 } 4443 }
4328 4444
4329 4445 class _IntegrationTestInterfaceStubControl
4330 class IntegrationTestInterfaceStub extends bindings.Stub { 4446 extends bindings.StubMessageHandler
4447 implements bindings.StubControl<IntegrationTestInterface> {
4331 IntegrationTestInterface _impl; 4448 IntegrationTestInterface _impl;
4332 4449
4333 IntegrationTestInterfaceStub.fromEndpoint( 4450 _IntegrationTestInterfaceStubControl.fromEndpoint(
4334 core.MojoMessagePipeEndpoint endpoint, [IntegrationTestInterface impl]) 4451 core.MojoMessagePipeEndpoint endpoint, [IntegrationTestInterface impl])
4335 : super.fromEndpoint(endpoint, autoBegin: impl != null) { 4452 : super.fromEndpoint(endpoint, autoBegin: impl != null) {
4336 _impl = impl; 4453 _impl = impl;
4337 } 4454 }
4338 4455
4339 IntegrationTestInterfaceStub.fromHandle( 4456 _IntegrationTestInterfaceStubControl.fromHandle(
4340 core.MojoHandle handle, [IntegrationTestInterface impl]) 4457 core.MojoHandle handle, [IntegrationTestInterface impl])
4341 : super.fromHandle(handle, autoBegin: impl != null) { 4458 : super.fromHandle(handle, autoBegin: impl != null) {
4342 _impl = impl; 4459 _impl = impl;
4343 } 4460 }
4344 4461
4345 IntegrationTestInterfaceStub.unbound([this._impl]) : super.unbound(); 4462 _IntegrationTestInterfaceStubControl.unbound([this._impl]) : super.unbound();
4346
4347 static IntegrationTestInterfaceStub newFromEndpoint(
4348 core.MojoMessagePipeEndpoint endpoint) {
4349 assert(endpoint.setDescription("For IntegrationTestInterfaceStub"));
4350 return new IntegrationTestInterfaceStub.fromEndpoint(endpoint);
4351 }
4352 4463
4353 4464
4354 IntegrationTestInterfaceMethod0ResponseParams _integrationTestInterfaceMethod0 ResponseParamsFactory(List<int> param0) { 4465 IntegrationTestInterfaceMethod0ResponseParams _integrationTestInterfaceMethod0 ResponseParamsFactory(List<int> param0) {
4355 var result = new IntegrationTestInterfaceMethod0ResponseParams(); 4466 var result = new IntegrationTestInterfaceMethod0ResponseParams();
4356 result.param0 = param0; 4467 result.param0 = param0;
4357 return result; 4468 return result;
4358 } 4469 }
4359 4470
4360 dynamic handleMessage(bindings.ServiceMessage message) { 4471 dynamic handleMessage(bindings.ServiceMessage message) {
4361 if (bindings.ControlMessageHandler.isControlMessage(message)) { 4472 if (bindings.ControlMessageHandler.isControlMessage(message)) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
4408 } 4519 }
4409 4520
4410 @override 4521 @override
4411 void bind(core.MojoMessagePipeEndpoint endpoint) { 4522 void bind(core.MojoMessagePipeEndpoint endpoint) {
4412 super.bind(endpoint); 4523 super.bind(endpoint);
4413 if (!isOpen && (_impl != null)) { 4524 if (!isOpen && (_impl != null)) {
4414 beginHandlingEvents(); 4525 beginHandlingEvents();
4415 } 4526 }
4416 } 4527 }
4417 4528
4529 @override
4418 String toString() { 4530 String toString() {
4419 var superString = super.toString(); 4531 var superString = super.toString();
4420 return "IntegrationTestInterfaceStub($superString)"; 4532 return "_IntegrationTestInterfaceStubControl($superString)";
4421 } 4533 }
4422 4534
4423 int get version => 0; 4535 int get version => 0;
4424 4536
4425 static service_describer.ServiceDescription _cachedServiceDescription; 4537 static service_describer.ServiceDescription _cachedServiceDescription;
4426 static service_describer.ServiceDescription get serviceDescription { 4538 static service_describer.ServiceDescription get serviceDescription {
4427 if (_cachedServiceDescription == null) { 4539 if (_cachedServiceDescription == null) {
4428 _cachedServiceDescription = new _IntegrationTestInterfaceServiceDescriptio n(); 4540 _cachedServiceDescription = new _IntegrationTestInterfaceServiceDescriptio n();
4429 } 4541 }
4430 return _cachedServiceDescription; 4542 return _cachedServiceDescription;
4431 } 4543 }
4432 } 4544 }
4433 4545
4546 class IntegrationTestInterfaceStub
4547 extends bindings.Stub<IntegrationTestInterface>
4548 implements IntegrationTestInterface {
4549 IntegrationTestInterfaceStub.fromEndpoint(
4550 core.MojoMessagePipeEndpoint endpoint, [IntegrationTestInterface impl])
4551 : super(new _IntegrationTestInterfaceStubControl.fromEndpoint(endpoint, im pl));
4552
4553 IntegrationTestInterfaceStub.fromHandle(
4554 core.MojoHandle handle, [IntegrationTestInterface impl])
4555 : super(new _IntegrationTestInterfaceStubControl.fromHandle(handle, impl)) ;
4556
4557 IntegrationTestInterfaceStub.unbound([IntegrationTestInterface impl])
4558 : super(new _IntegrationTestInterfaceStubControl.unbound(impl));
4559
4560 static IntegrationTestInterfaceStub newFromEndpoint(
4561 core.MojoMessagePipeEndpoint endpoint) {
4562 assert(endpoint.setDescription("For IntegrationTestInterfaceStub"));
4563 return new IntegrationTestInterfaceStub.fromEndpoint(endpoint);
4564 }
4565
4566 static service_describer.ServiceDescription get serviceDescription =>
4567 _IntegrationTestInterfaceStubControl.serviceDescription;
4568
4569
4570 dynamic method0(BasicStruct param0,[Function responseFactory = null]) {
4571 return impl.method0(param0,responseFactory);
4572 }
4573 }
4574
4434 4575
4435 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ?? 4576 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ??
4436 _initRuntimeTypeInfo(); 4577 _initRuntimeTypeInfo();
4437 4578
4438 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { 4579 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
4439 return getRuntimeTypeInfo().typeMap; 4580 return getRuntimeTypeInfo().typeMap;
4440 } 4581 }
4441 4582
4442 var _runtimeTypeInfo; 4583 var _runtimeTypeInfo;
4443 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { 4584 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() {
4444 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of 4585 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of
4445 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this 4586 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this
4446 // file. The string contains the base64 encoding of the gzip-compressed bytes. 4587 // file. The string contains the base64 encoding of the gzip-compressed bytes.
4447 var serializedRuntimeTypeInfo = "H4sIAAAJbogC/+xdy3MTyRnv0cOSH4DYXYgggRKwEMPuS vILDFUksmSBUxtS3uVlstmVhTy2RCzJaORdL0lVfEtyCkcuqeLIkSPHPe6RI0f/CRx92UpmrK/xTE+3p kea0fTYM7VNb8stzcyvv+/3PbqnJ4k6RwLqN1CTny/p2pJa4tC+qZYZtbSrNSWt/teuymlFbn1fq8jpR rkup1ebrXS+udlYUQpVufLXe7LS/kOjLbdWyxWZ8ntTavlMLfceLRZLXxYf3ag3nzTTbfVb3X7FfL1vw p36hVo+Ustz+Pw11G+h3ju5emShXoZ6G+qXUP8E9Q7UKNSpUlDnoF6GehvqV1C/g3oX6k/V8hvGfZaVW qXY2Kxr/S6p5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Y907Q8gj5epeEU1uEUGVBcPyNgXG9nf0UrfXbqvVAYx1UGjlf9lC/MW+c78pz4OvX+G YzvGgPfa+hgrhe34kun3huC8a0y8J1FYq9ftuJLp94bYLWe4zrqrKX16360Vvrs1D7uGMcnDBxveOwH2 soP2+DLgcR1eWZclyfPf9PjuI7M96UAD7wfaCosVpz2uyBO2zt+LygOIwOO03KCy8Og4qk5j3H4fwAAA P//uuih0nCoAAA=";
4448 4589
4449 // Deserialize RuntimeTypeInfo 4590 // Deserialize RuntimeTypeInfo
4450 var bytes = BASE64.decode(serializedRuntimeTypeInfo); 4591 var bytes = BASE64.decode(serializedRuntimeTypeInfo);
4451 var unzippedBytes = new ZLibDecoder().convert(bytes); 4592 var unzippedBytes = new ZLibDecoder().convert(bytes);
4452 var bdata = new ByteData.view(unzippedBytes.buffer); 4593 var bdata = new ByteData.view(unzippedBytes.buffer);
4453 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); 4594 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0);
4454 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); 4595 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message);
4455 return _runtimeTypeInfo; 4596 return _runtimeTypeInfo;
4456 } 4597 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698