diff options
author | Kazuki Takise <takise@google.com> | 2018-07-27 10:44:25 +0900 |
---|---|---|
committer | Kazuki Takise <takise@google.com> | 2018-07-27 10:44:25 +0900 |
commit | 561483908c80078d4af9c5de574f99fc4aa85440 (patch) | |
tree | bb381f15b578ead65443a2e3438af40a3c894bf7 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 309adbff03ea6e0dedd232375a9f0583a7a80049 (diff) |
Set return value for mock(IWindow).asBinder() to prevent exception
In TestWindowManagerPolicy#addSplashScreen(), mock(IWindow) is
created and it's passed to the constructor of WindowState. In the
constructor, c.asBinder().linkToDeath() is called, but currently,
c.asBinder() returns null, which ends up throwing an exception.
This CL sets a proper return value for c.asBinder(). With this CL,
all the tests in AppWindowContainerControllerTests pass in ARC.
Bug: 110906840
Test: atest AppWindowContainerControllerTests
Change-Id: I5cacd6635eb11f174d14c7c2a3873dc648d43527
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions