| Index: chrome/android/javatests/src/org/chromium/chrome/browser/SelectFileDialogTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/SelectFileDialogTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/SelectFileDialogTest.java
|
| index 0788ce37122d517379d3daeb8fadd22beaf3b969..a2dbc05551f1cf1f6d42111358dddc3b41e68846 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/SelectFileDialogTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/SelectFileDialogTest.java
|
| @@ -106,12 +106,12 @@ public class SelectFileDialogTest extends ChromeActivityTestCaseBase<ChromeActiv
|
| @DisableIf.Build(sdk_is_greater_than = 22, message = "crbug.com/592627")
|
| public void testSelectFileAndCancelRequest() throws Throwable {
|
| DOMUtils.clickNode(this, mContentViewCore, "input_file");
|
| - CriteriaHelper.pollForCriteria(new IntentSentCriteria());
|
| + CriteriaHelper.pollInstrumentationThread(new IntentSentCriteria());
|
| assertEquals(Intent.ACTION_CHOOSER, mActivityWindowAndroidForTest.lastIntent.getAction());
|
| resetActivityWindowAndroidForTest();
|
|
|
| DOMUtils.clickNode(this, mContentViewCore, "input_file_multiple");
|
| - CriteriaHelper.pollForCriteria(new IntentSentCriteria());
|
| + CriteriaHelper.pollInstrumentationThread(new IntentSentCriteria());
|
| assertEquals(Intent.ACTION_CHOOSER, mActivityWindowAndroidForTest.lastIntent.getAction());
|
| Intent contentIntent = (Intent)
|
| mActivityWindowAndroidForTest.lastIntent.getParcelableExtra(Intent.EXTRA_INTENT);
|
| @@ -122,13 +122,13 @@ public class SelectFileDialogTest extends ChromeActivityTestCaseBase<ChromeActiv
|
| resetActivityWindowAndroidForTest();
|
|
|
| DOMUtils.clickNode(this, mContentViewCore, "input_image");
|
| - CriteriaHelper.pollForCriteria(new IntentSentCriteria());
|
| + CriteriaHelper.pollInstrumentationThread(new IntentSentCriteria());
|
| assertEquals(MediaStore.ACTION_IMAGE_CAPTURE,
|
| mActivityWindowAndroidForTest.lastIntent.getAction());
|
| resetActivityWindowAndroidForTest();
|
|
|
| DOMUtils.clickNode(this, mContentViewCore, "input_audio");
|
| - CriteriaHelper.pollForCriteria(new IntentSentCriteria());
|
| + CriteriaHelper.pollInstrumentationThread(new IntentSentCriteria());
|
| assertEquals(MediaStore.Audio.Media.RECORD_SOUND_ACTION,
|
| mActivityWindowAndroidForTest.lastIntent.getAction());
|
| resetActivityWindowAndroidForTest();
|
|
|