Index: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java |
diff --git a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java |
index cac7590b74c4c478a1929e6597e92a9f8f3185d4..75ac4bc19d50a4c755433eba085e9f2af431c5f1 100644 |
--- a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java |
+++ b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java |
@@ -32,6 +32,7 @@ import org.chromium.content_public.browser.LoadUrlParams; |
import org.chromium.content_public.browser.NavigationController; |
import org.chromium.content_public.browser.WebContents; |
import org.chromium.content_shell.Shell; |
+import org.chromium.content_shell.ShellViewAndroidDelegate.OnCursorUpdateHelper; |
import java.util.concurrent.Callable; |
import java.util.concurrent.ExecutionException; |
@@ -118,6 +119,18 @@ public final class ContentShellTestCommon { |
}, WAIT_FOR_ACTIVE_SHELL_LOADING_TIMEOUT, CriteriaHelper.DEFAULT_POLLING_INTERVAL); |
} |
+ OnCursorUpdateHelper getOnCursorUpdateHelper() throws ExecutionException { |
+ return ThreadUtils.runOnUiThreadBlocking(new Callable<OnCursorUpdateHelper>() { |
+ @Override |
+ public OnCursorUpdateHelper call() { |
+ return mCallback.getActivityForTestCommon() |
+ .getActiveShell() |
+ .getViewAndroidDelegate() |
+ .getOnCursorUpdateHelper(); |
+ } |
+ }); |
+ } |
+ |
ContentViewCore getContentViewCore() { |
return mCallback.getActivityForTestCommon().getActiveShell().getContentViewCore(); |
} |