commit | 7bdabfb1f4a6dd42b9c2796964ee26161edd2301 | [log] [tgz] |
---|---|---|
author | Kweku Adams <kwekua@google.com> | Wed Jan 15 17:18:56 2020 -0800 |
committer | Kweku Adams <kwekua@google.com> | Wed Jan 15 17:18:56 2020 -0800 |
tree | 50df9f3b34b2c1b2d983bee2c9345a175ab226f1 | |
parent | 78bfd35ae1b0266cff5325a751880b9e1f0f72c0 [diff] |
Fix JobSchedulerTest. ServiceManager wasn't being mocked so the test kept failing with "java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.android.server.compat.PlatformCompat". Adding the mocking fixes the tests. Bug: N/A Test: atest FrameworksMockingServicesTests:JobSchedulerServiceTest Change-Id: I07148319f8dd4a31a83b43410f9e06e932faa103