Index: content/public/android/javatests/src/org/chromium/content/browser/ContentViewReadbackTest.java |
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/ContentViewReadbackTest.java b/content/public/android/javatests/src/org/chromium/content/browser/ContentViewReadbackTest.java |
index 5a670c45b54738de987ef312231d83a14cb09074..b3452e471ec199e56008e48312b64676892ec7f7 100644 |
--- a/content/public/android/javatests/src/org/chromium/content/browser/ContentViewReadbackTest.java |
+++ b/content/public/android/javatests/src/org/chromium/content/browser/ContentViewReadbackTest.java |
@@ -20,6 +20,7 @@ import org.chromium.base.test.util.UrlUtils; |
import org.chromium.content.browser.ContentReadbackHandler.GetBitmapCallback; |
import org.chromium.content.browser.test.util.Criteria; |
import org.chromium.content.browser.test.util.CriteriaHelper; |
+import org.chromium.content_public.browser.readback_types.ReadbackResponse; |
import org.chromium.content_shell_apk.ContentShellTestBase; |
import java.util.concurrent.atomic.AtomicBoolean; |
@@ -106,6 +107,7 @@ public class ContentViewReadbackTest extends ContentShellTestBase { |
GetBitmapCallback callback = new GetBitmapCallback() { |
@Override |
public void onFinishGetBitmap(Bitmap bitmap, int response) { |
+ assertEquals(ReadbackResponse.SUCCESS, response); |
assertNotNull("Readback did not return valid bitmap", bitmap); |
// Verify a pixel in the center of the screenshot. |
color.set(bitmap.getPixel(bitmap.getWidth() / 2, bitmap.getHeight() / 2)); |