Skip to content
Commit e6e2b0f3 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

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
parent f9aa3044
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