diff options
author | Vishnu Nair <vishnun@google.com> | 2019-02-21 10:41:00 -0800 |
---|---|---|
committer | Vishnu Nair <vishnun@google.com> | 2019-02-21 21:01:35 +0000 |
commit | e6e2b0f344e63cc1bf7cc70ab7451a277791b18f (patch) | |
tree | cd20a20832c010b3f010746cd629aa2dae4d2545 /rs/java/android/renderscript/ProgramStore.java | |
parent | f9aa3044f2b493272fa1a0254dab7d74a1c83cdc (diff) |
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions