WM: Mock or stub SurfaceControl and Surface calls in wm unit tests
WM unit tests create a test instance of the WMS service and run assertions
on them. This change limits calls to native code via SurfaceControl#Transaction
and Surface classes on the test instance in order to provide a more hermetic
environment to run the tests on.
- Create a Surface factory class and override SurfaceControl#Transaction,
SurfaceControl and Surface factory classes in the test service during test
setup.
- Modify WallpaperControllerTests to not call native code and assert
WallpaperController state as opposed to native call results.
- Cleanup use of mSkipOnParentChanged for TestAppWindowToken
Test: atest WmTests
Bug: 124357362
Change-Id: I25a16d0eca70be3b3ae93ed5bbff101007196105
13 files changed