diff options
| author | 2022-07-13 10:42:10 +0200 | |
|---|---|---|
| committer | 2022-07-19 10:21:51 +0200 | |
| commit | 8a169ff03c894299bc28b83cd6d2f5265a0d5b31 (patch) | |
| tree | f8bd3d7557a5f054d2d2b8f9bf38722e4d4ec271 /libs/androidfw/ResourceTimer.cpp | |
| parent | 170bf9e8125a70b05247a6225e9320b574015b94 (diff) | |
Make the PeopleSpaceActivity screenshot testable
This CL makes the PeopleSpaceActivity screenshot testable by extracting
a ViewModel and ViewBinder out of it. See ag/19289788 for the associated
screenshot tests.
Note that I tried to change the code inflating and updating the View as
less as possible, to avoid introducing bugs. Once this CL and the
associated screenshots are submitted, I will go ahead and refactor this
code even more. This CL is meant to be an example of the kind of
refactoring required to make a UI screenshot testable, so I tried to not
make it too big.
Bug: 238993727
Test: atest PeopleSpaceScreenshotTest
Change-Id: Ib792bd5da41c9e8bdab6cba7108a249bab10ebd2
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions