Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9822563a authored by Kweku Adams's avatar Kweku Adams Committed by Automerger Merge Worker
Browse files

Merge "Remove service before adding test mock." into tm-dev am: 279ce138

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17140808

Change-Id: If735f5e77523b9503d551ce7b89b8f7abfe784a0
parents 4aa19e7d 279ce138
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -489,6 +489,7 @@ public class AppStandbyControllerTests {

    @Before
    public void setUp() throws Exception {
        LocalServices.removeServiceForTest(UsageStatsManagerInternal.class);
        LocalServices.addService(
                UsageStatsManagerInternal.class, mock(UsageStatsManagerInternal.class));
        MyContextWrapper myContext = new MyContextWrapper(InstrumentationRegistry.getContext());