
There are multiple problems in the test: 1. The controller must run on the main thread due to the Player interface requirement to add surfaces on the thread their callbacks will be called on. 2. This test made assertions about an expected callback that aren't true. Setting an anonymous surface will not result in a size change callback because the size stays unknown. But clearing a surface (even if never set) ensures the returned size is guaranteed to be zero. PiperOrigin-RevId: 559080905
Session test module
Tests cross-process use of the session module. To run the tests:
- Prepare a device (either an emulator or a real device) to run the tests on.
- Run
./gradlew :test-session-current:cAT