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

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

Issue 2752113005: Let ImeAdapterAndroid have the same lifecycle as its Java peer (Closed)
Patch Set: fix tests Created 3 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 | « content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java ('k') | 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/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 2ef1267db8addf9bbcac6eea8506d615842d4f92..0a554c964b3d43f39cdd6f107e7ace6e7e5b7b6c 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
@@ -79,6 +79,8 @@ public class PopupZoomerTest extends ContentShellTestBase {
@Override
public void setUp() throws Exception {
super.setUp();
+ mPopupZoomer = createPopupZoomerForTest(getInstrumentation().getTargetContext());
+ mContentViewCore = new ContentViewCore(getActivity(), "");
final Context context = getActivity();
@@ -87,12 +89,11 @@ public class PopupZoomerTest extends ContentShellTestBase {
public void run() {
mPopupZoomer = createPopupZoomerForTest(getInstrumentation().getTargetContext());
mContentViewCore = new ContentViewCore(context, "");
- ImeAdapter imeAdapter = new ImeAdapter(
+ ImeAdapter imeAdapter = new ImeAdapter(getContentViewCore().getWebContents(),
new TestInputMethodManagerWrapper(mContentViewCore),
new TestImeAdapterDelegate(getContentViewCore().getContainerView()));
- mContentViewCore.setSelectionPopupControllerForTesting(
- new SelectionPopupController(context, null, null, null,
- mContentViewCore.getRenderCoordinates(), imeAdapter));
+ mContentViewCore.setSelectionPopupControllerForTesting(new SelectionPopupController(
+ context, null, null, null, mContentViewCore.getRenderCoordinates()));
mContentViewCore.setPopupZoomerForTest(mPopupZoomer);
mContentViewCore.setImeAdapterForTest(imeAdapter);
}
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698