Skip to content

[pigeon] Remove dartHostTestHandler #178322

@stuartmorgan-g

Description

@stuartmorgan-g

Following up from #159886, we should remove dartHostTestHandler entirely from Pigeon:

  • It's an extra generator we have to maintain.
  • It relies on special test hooks for method channels, which means it won't work if we transition Pigeon to using FFI internally.
  • In every case where we were using it, switching to an injected (or in one case, global wrapper) instance did not make testing any harder.
  • Having individual packages unit test parts of the generated code (which that structure did) is not useful now that we have extensive testing of Pigeon itself.

The plan is to deprecate it, wait a while to see if there is any feedback highlighting a case we never encountered where it provides significant value in writing tests, and if not, remove it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions