Merge "Fix TimeDetectorServiceTest." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ccc3f97602
@@ -209,7 +209,7 @@ public class TimeDetectorServiceTest {
|
||||
@Test(expected = SecurityException.class)
|
||||
public void testSuggestExternalTime_withoutPermission() {
|
||||
doThrow(new SecurityException("Mock"))
|
||||
.when(mMockContext).enforceCallingOrSelfPermission(anyString(), any());
|
||||
.when(mMockContext).enforceCallingPermission(anyString(), any());
|
||||
ExternalTimeSuggestion externalTimeSuggestion = createExternalTimeSuggestion();
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user