Merge "Fix build - tests for screenshot helper not updated." into rvc-dev am: 80c031b151
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11731435 Change-Id: I5210598ea5607d1e1fe6b146b432b994a3f6c3a1
This commit is contained in:
@@ -29,11 +29,12 @@ import static org.mockito.Mockito.doNothing;
|
||||
import static org.mockito.Mockito.doReturn;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Insets;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.view.WindowManager;
|
||||
@@ -91,8 +92,7 @@ public final class ScreenshotHelperTest {
|
||||
@Test
|
||||
public void testProvidedImageScreenshot() {
|
||||
mScreenshotHelper.provideScreenshot(
|
||||
Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888), new Rect(),
|
||||
Insets.of(0, 0, 0, 0), 1,
|
||||
new Bundle(), new Rect(), Insets.of(0, 0, 0, 0), 1, 1, new ComponentName("", ""),
|
||||
WindowManager.ScreenshotSource.SCREENSHOT_OTHER, mHandler, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user