Commit 973a0f2d authored by Evan Stade's avatar Evan Stade Committed by Commit Bot

Fix DecoderServiceHostTest

The failure was not caught by the CQ because there's no >=N
coverage in the CQ, and the test is disabled for <N.

Bug: none
Change-Id: I3003ed59630b707314cbc23b882bb57ba3ac8add
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2398855Reviewed-by: default avatarFinnur Thorarinsson <finnur@chromium.org>
Commit-Queue: Evan Stade <estade@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805333}
parent b17f4309
......@@ -5,6 +5,7 @@
package org.chromium.components.browser_ui.photo_picker;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
......@@ -60,6 +61,11 @@ public class DecoderServiceHostTest implements DecoderServiceHost.DecoderStatusC
public void setUp() throws Exception {
mContext = InstrumentationRegistry.getTargetContext();
TestThreadUtils.runOnUiThreadBlocking(() -> {
DecoderServiceHost.setIntentSupplier(
() -> { return new Intent(mContext, TestImageDecoderService.class); });
});
DecoderServiceHost.setStatusCallback(this);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment