| Index: components/policy/android/junit/src/org/chromium/policy/AbstractAppRestrictionsProviderTest.java
|
| diff --git a/components/policy/android/junit/src/org/chromium/policy/AbstractAppRestrictionsProviderTest.java b/components/policy/android/junit/src/org/chromium/policy/AbstractAppRestrictionsProviderTest.java
|
| index 33f26cf3a6a48840b823c010c897156e4d73735d..e4164543dbb8d8e2bebbdbef4dc5f38b90879b20 100644
|
| --- a/components/policy/android/junit/src/org/chromium/policy/AbstractAppRestrictionsProviderTest.java
|
| +++ b/components/policy/android/junit/src/org/chromium/policy/AbstractAppRestrictionsProviderTest.java
|
| @@ -7,6 +7,7 @@ package org.chromium.policy;
|
| import static org.mockito.Matchers.any;
|
| import static org.mockito.Matchers.anyBoolean;
|
| import static org.mockito.Matchers.anyInt;
|
| +import static org.mockito.Matchers.anyLong;
|
| import static org.mockito.Matchers.anyString;
|
| import static org.mockito.Mockito.doNothing;
|
| import static org.mockito.Mockito.mock;
|
| @@ -94,7 +95,7 @@ public class AbstractAppRestrictionsProviderTest {
|
| AbstractAppRestrictionsProvider provider = spy(new DummyAppRestrictionsProvider(context));
|
| provider.setTaskExecutor(new TestExecutor());
|
| doNothing().when(provider).recordCacheLoadResultHistogram(anyBoolean());
|
| - doNothing().when(provider).recordStartTimeHistogram(anyInt());
|
| + doNothing().when(provider).recordStartTimeHistogram(anyLong());
|
|
|
| // Set up the buffer to be returned by getApplicationRestrictions.
|
| when(provider.getApplicationRestrictions(anyString())).thenReturn(b1);
|
| @@ -111,7 +112,7 @@ public class AbstractAppRestrictionsProviderTest {
|
| Robolectric.runBackgroundTasks();
|
| // The AsyncTask should now have got the restrictions.
|
| verify(provider).getApplicationRestrictions(anyString());
|
| - verify(provider).recordStartTimeHistogram(anyInt());
|
| + verify(provider).recordStartTimeHistogram(anyLong());
|
|
|
| Robolectric.runUiThreadTasks();
|
| // The policies should now have been set.
|
|
|