Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f36dfca8 authored by Kazuki Takise's avatar Kazuki Takise
Browse files

Add unit tests to PresentationControllerTests

This change adds the new test case
testNewPresentationCannotShowOnPresentingDesk to
PresentationControllerTests to cover two additional scenarios
below:

- Multi-desk support (Icb244618be643dfc2989e18f05ae0770a709fa65)
 In the change, getTopDisplayFocusedRootTask() is replaced with
 getTopDisplayFocusedLeafTask() in PresentationController.

- Disallowing adding a new presentation to show over another
 presentation (I29ccb089aa057616138d039b3d62697a5ed63892)

(Why one test case for two scenarios? To test the first one, we
need to test one of the policies using Presentation#mHostTask(),
and the second one is a good example or that.)

Flag: com.android.window.flags.enable_presentation_for_connected_displays
Bug: 418850221
Test: PresentationTest
Change-Id: I296371fd4b3db01b76d58a5f148979c90e964a27
parent c0409dd9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment