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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelperTest.java

Issue 2076783004: Changes to update Junit and Mockito. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding myself to junit OWNERS 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: chrome/android/junit/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelperTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelperTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelperTest.java
index 489b56d6962739b8ce25c3a8606113e864ccdc6a..b0ac68b1fef5ef5d8e4202a6925e48100bc62210 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelperTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelperTest.java
@@ -5,10 +5,11 @@
package org.chromium.chrome.browser.compositor.overlays.strip;
import static org.junit.Assert.assertEquals;
-import static org.mockito.Matchers.any;
-import static org.mockito.Matchers.anyBoolean;
-import static org.mockito.Matchers.anyFloat;
-import static org.mockito.Matchers.anyInt;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.anyBoolean;
+import static org.mockito.ArgumentMatchers.anyFloat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.ArgumentMatchers.isNull;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@@ -86,7 +87,7 @@ public class StripLayoutHelperTest {
final TypedArray mockTypedArray = mock(TypedArray.class);
when(mockTypedArray.getDimension(anyInt(), anyFloat())).thenReturn(0f);
when(mockTypedArray.getBoolean(anyInt(), anyBoolean())).thenReturn(false);
- when(mContext.obtainStyledAttributes(any(AttributeSet.class), any(int[].class), anyInt(),
+ when(mContext.obtainStyledAttributes((AttributeSet) isNull(), any(int[].class), anyInt(),
anyInt())).thenReturn(mockTypedArray);
final Configuration mockConfiguration = mock(Configuration.class);
when(mResources.getConfiguration()).thenReturn(mockConfiguration);

Powered by Google App Engine
This is Rietveld 408576698