Visitar URL original
Pigeon : Support for asynchronous methods/Functions by xsahil03x · Pull Request #201 · flutter/packages · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
updated test for new formatting
  • Loading branch information
gaaclarke committed Sep 29, 2020
commit 2ea5e55bcd4fecadb22ed653de3b4d7188e34da9
4 changes: 2 additions & 2 deletions packages/pigeon/test/java_generator_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,11 @@ void main() {
expect(code, contains('public interface Api'));
expect(code, contains('public interface Result<T> {'));
expect(
code, contains('void doSomething(Input arg,Result<Output> result);'));
code, contains('void doSomething(Input arg, Result<Output> result);'));
expect(
code,
contains(
'api.doSomething(input,result -> {wrapped.put("result", result.toMap());reply.reply(wrapped);});'));
'api.doSomething(input, result -> { wrapped.put("result", result.toMap()); reply.reply(wrapped); });'));
expect(code, contains('channel.setMessageHandler(null)'));
});

Expand Down