Index: content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java |
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java b/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java |
index 9fd15aa2c1959416c2569f356aa81c7b9093632e..7ec3e4771276349ba3c91208242e943f79ae93cc 100644 |
--- a/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java |
+++ b/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java |
@@ -23,6 +23,7 @@ import org.junit.runner.RunWith; |
import org.chromium.base.ThreadUtils; |
import org.chromium.base.test.util.Feature; |
import org.chromium.content.browser.input.ImeAdapter; |
+import org.chromium.content.browser.input.TextSuggestionHost; |
import org.chromium.content.browser.test.ContentJUnit4ClassRunner; |
import org.chromium.content.browser.test.util.TestInputMethodManagerWrapper; |
import org.chromium.content_public.browser.WebContents; |
@@ -104,6 +105,9 @@ public class PopupZoomerTest { |
new TestInputMethodManagerWrapper(mContentViewCore))); |
mPopupZoomer = createPopupZoomerForTest(InstrumentationRegistry.getTargetContext()); |
mContentViewCore.setPopupZoomerForTest(mPopupZoomer); |
+ mContentViewCore.setTextSuggestionHostForTesting(new TextSuggestionHost(context, |
+ webContents, mActivityTestRule.getContentViewCore().getContainerView(), |
+ mContentViewCore, mContentViewCore.getRenderCoordinates())); |
} |
}); |
} |