Index: content/public/android/javatests/src/org/chromium/content/browser/input/AdapterInputConnectionTest.java |
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/input/AdapterInputConnectionTest.java b/content/public/android/javatests/src/org/chromium/content/browser/input/AdapterInputConnectionTest.java |
index cfeebd9865dc2989ab8be75024128a4e83793777..0694de03af19c105cfb612c2e757a9f293c11951 100644 |
--- a/content/public/android/javatests/src/org/chromium/content/browser/input/AdapterInputConnectionTest.java |
+++ b/content/public/android/javatests/src/org/chromium/content/browser/input/AdapterInputConnectionTest.java |
@@ -36,8 +36,7 @@ public class AdapterInputConnectionTest extends ContentShellTestBase { |
launchContentShellWithUrl("about:blank"); |
assertTrue("Page failed to load", waitForActiveShellToBeDoneLoading()); |
mWrapper = new TestInputMethodManagerWrapper(getActivity()); |
- ImeAdapterDelegate delegate = new TestImeAdapterDelegate(); |
- mImeAdapter = new TestImeAdapter(mWrapper, delegate); |
+ mImeAdapter = new TestImeAdapter(mWrapper, new TestImeAdapterDelegate()); |
mEditable = Editable.Factory.getInstance().newEditable(""); |
mConnection = new AdapterInputConnection( |
getContentViewCore().getContainerView(), mImeAdapter, mEditable, new EditorInfo()); |
@@ -158,29 +157,6 @@ public class AdapterInputConnectionTest extends ContentShellTestBase { |
} |
} |
- private static class TestImeAdapterDelegate implements ImeAdapterDelegate { |
- @Override |
- public void onImeEvent() {} |
- |
- @Override |
- public void onKeyboardBoundsUnchanged() {} |
- |
- @Override |
- public boolean performContextMenuAction(int id) { |
- return false; |
- } |
- |
- @Override |
- public View getAttachedView() { |
- return null; |
- } |
- |
- @Override |
- public ResultReceiver getNewShowKeyboardReceiver() { |
- return null; |
- } |
- } |
- |
private static void assertCorrectState(String text, int selectionStart, int selectionEnd, |
int compositionStart, int compositionEnd, ImeState actual) { |
assertEquals("Text did not match", text, actual.text); |