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

Commit b8ab470c authored by Daniel Bonnevier's avatar Daniel Bonnevier Committed by Neil Fuller
Browse files

Correct sendBroadcast test

Commit 23eb3a19 changed the implementation from sendBroadcast to
sendBroadcastAsUser but didn't change the test.

Test: adb shell am instrument -r -w -e class \
        android.app.timezone.RulesUpdaterContractTest#sendBroadcast \
        com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Bug: 78166765
Change-Id: I0a47e096a46fc63d46dd9ff878a4af0d76af82f0
parent 9a6f2959
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import static org.mockito.hamcrest.MockitoHamcrest.argThat;

import android.content.Context;
import android.content.Intent;
import android.os.UserHandle;
import android.support.test.filters.LargeTest;

import org.hamcrest.BaseMatcher;
@@ -59,8 +60,9 @@ public class RulesUpdaterContractTest {

        RulesUpdaterContract.sendBroadcast(mockContext, packageName, tokenBytes);

        verify(mockContext).sendBroadcast(
        verify(mockContext).sendBroadcastAsUser(
                filterEquals(expectedIntent),
                eq(UserHandle.SYSTEM),
                eq(RulesUpdaterContract.UPDATE_TIME_ZONE_RULES_PERMISSION));
    }