Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: components/policy/android/junit/src/org/chromium/policy/AbstractAppRestrictionsProviderTest.java

Issue 2076783004: Changes to update Junit and Mockito. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to update Junit and Mockito. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698