Skip to content

Allow unit tests in platform/android/** C++ codeΒ #59031

@blasten

Description

@blasten

Currently, unit tests are compiled with the host toolchain, which means that unit test targets cannot depend on the Android toolchain. However, JNI is a direct dependency of most of the C++ code under platform/android/**.

The proposed solution is to have an interface and a concrete implementation. This way, the JNI implementation can be "faked" in the unit test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: contributor-productivityTeam-specific productivity, code health, technical debt.engineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions