Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 234890363
  • Loading branch information
Googler authored and copybara-robolectric committed Feb 21, 2019
1 parent 1eb490c commit 0b5944c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public class ShadowScaleGestureDetectorTest {

@Before
public void setUp() throws Exception {
detector = new ScaleGestureDetector(ApplicationProvider.getApplicationContext(), null);
detector = new ScaleGestureDetector(ApplicationProvider.getApplicationContext(),
new TestOnGestureListener());
motionEvent = MotionEvent.obtain(-1, -1, MotionEvent.ACTION_UP, 100, 30, -1);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.ViewConfiguration;
import org.robolectric.RuntimeEnvironment;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.shadow.api.Shadow;
import org.robolectric.util.ReflectionHelpers;

@SuppressWarnings({"UnusedDeclaration"})
@Implements(ViewConfiguration.class)
Expand Down

0 comments on commit 0b5944c

Please sign in to comment.