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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/ContentViewReadbackTest.java

Issue 1071973002: onFinishGetBitmap() test should assert ReadbackResponse also (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698