bind: update testdata to reflect changes from cl/17866

Change-Id: Icdc68c536b8bc9c5e3874731e33b5f90e123a052
Reviewed-on: https://go-review.googlesource.com/18618
Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
Hyang-Ah Hana Kim
2016-01-13 21:19:59 +00:00
parent a99e944551
commit 24a199a648
9 changed files with 112 additions and 104 deletions
+18 -12
View File
@@ -10,9 +10,11 @@ public abstract class Structs {
private Structs() {} // uninstantiable
public static S Identity(S s) {
go.Seq _in = new go.Seq();
go.Seq _out = new go.Seq();
go.Seq _in = null;
go.Seq _out = null;
_out = new go.Seq();
S _result;
_in = new go.Seq();
_in.writeRef(s.ref());
Seq.send(DESCRIPTOR, CALL_Identity, _in, _out);
_result = new S(_out.readRef());
@@ -20,9 +22,11 @@ public abstract class Structs {
}
public static S IdentityWithError(S s) throws Exception {
go.Seq _in = new go.Seq();
go.Seq _out = new go.Seq();
go.Seq _in = null;
go.Seq _out = null;
_out = new go.Seq();
S _result;
_in = new go.Seq();
_in.writeRef(s.ref());
Seq.send(DESCRIPTOR, CALL_IdentityWithError, _in, _out);
_result = new S(_out.readRef());
@@ -62,10 +66,9 @@ public abstract class Structs {
public void setX(double v) {
Seq in = new Seq();
Seq out = new Seq();
in.writeRef(ref);
in.writeFloat64(v);
Seq.send(DESCRIPTOR, FIELD_X_SET, in, out);
Seq.send(DESCRIPTOR, FIELD_X_SET, in, null);
}
public double getY() {
@@ -78,16 +81,17 @@ public abstract class Structs {
public void setY(double v) {
Seq in = new Seq();
Seq out = new Seq();
in.writeRef(ref);
in.writeFloat64(v);
Seq.send(DESCRIPTOR, FIELD_Y_SET, in, out);
Seq.send(DESCRIPTOR, FIELD_Y_SET, in, null);
}
public S Identity() throws Exception {
go.Seq _in = new go.Seq();
go.Seq _out = new go.Seq();
go.Seq _in = null;
go.Seq _out = null;
_out = new go.Seq();
S _result;
_in = new go.Seq();
_in.writeRef(ref);
Seq.send(DESCRIPTOR, CALL_Identity, _in, _out);
_result = new S(_out.readRef());
@@ -99,9 +103,11 @@ public abstract class Structs {
}
public double Sum() {
go.Seq _in = new go.Seq();
go.Seq _out = new go.Seq();
go.Seq _in = null;
go.Seq _out = null;
_out = new go.Seq();
double _result;
_in = new go.Seq();
_in.writeRef(ref);
Seq.send(DESCRIPTOR, CALL_Sum, _in, _out);
_result = _out.readFloat64();