Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed Jun 18, 2024
1 parent e81fd82 commit 3c4a2b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/ffigen/test/native_objc_test/protocol_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void main() {

final sel = registerName('instanceMethod:withDouble:');
final signature = getProtocolMethodSignature(protocol, sel,
isRequired: true, isInstance: true);
isRequired: true, isInstanceMethod: true);
final block = InstanceMethodBlock.fromFunction(
(Pointer<Void> p, NSString s, double x) {
return 'DartProxy: $s: $x'.toNSString();
Expand All @@ -163,7 +163,7 @@ void main() {

final optSel = registerName('optionalMethod:');
final optSignature = getProtocolMethodSignature(protocol, optSel,
isRequired: false, isInstance: true);
isRequired: false, isInstanceMethod: true);
final optBlock =
OptionalMethodBlock.fromFunction((Pointer<Void> p, SomeStruct s) {
return s.y - s.x;
Expand All @@ -174,7 +174,7 @@ void main() {
final otherSel = registerName('otherMethod:b:c:d:');
final otherSignature = getProtocolMethodSignature(
secondProtocol, otherSel,
isRequired: true, isInstance: true);
isRequired: true, isInstanceMethod: true);
final otherBlock = OtherMethodBlock.fromFunction(
(Pointer<Void> p, int a, int b, int c, int d) {
return a * b * c * d;
Expand Down Expand Up @@ -235,7 +235,7 @@ void main() {

final sel = registerName('instanceMethod:withDouble:');
final signature = getProtocolMethodSignature(protocol, sel,
isRequired: true, isInstance: true);
isRequired: true, isInstanceMethod: true);
final block = InstanceMethodBlock.fromFunction(
(Pointer<Void> p, NSString s, double x) => 'Hello'.toNSString());
proxyBuilder.implementMethod_withSignature_andBlock_(
Expand Down

0 comments on commit 3c4a2b0

Please sign in to comment.