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

Skip to content
Commit 62ad2da3 authored by Bryce Lee's avatar Bryce Lee
Browse files

Improve DreamService testability.

This changelist refactors DreamService and associated classes to be
more amenable to testing. A significant change is the introduction of
a dependency injector, allowing test code to have more control over
the DreamService environment.

TestDreamEnvironment has been introduced to provide a scoped space for
interacting with DreamService. It allows tests to control moving through
the dream phases.

Bug: 334083490
Flag: N/A
Test: atest DreamServiceTest#testCreate
Test: atest DreamServiceTest#testBind
Test: atest DreamServiceTest#testDreamActivityCreate
Test: atest DreamServiceTest#testStart
Test: atest DreamServiceTest#testWake
Change-Id: I8720c1994ec638559fcd6505588b8f686b5b477e
parent 4a6154e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment