CTS: Rename IC#inputContent to IC#commitContent.
Bug: 29450024
Change-Id: I5b844ad3ffa3410922cb5ded1465c0a26b992c86
diff --git a/tests/tests/view/src/android/view/inputmethod/cts/InputConnectionWrapperTest.java b/tests/tests/view/src/android/view/inputmethod/cts/InputConnectionWrapperTest.java
index c3f8ac0..c9b3ad7 100644
--- a/tests/tests/view/src/android/view/inputmethod/cts/InputConnectionWrapperTest.java
+++ b/tests/tests/view/src/android/view/inputmethod/cts/InputConnectionWrapperTest.java
@@ -97,13 +97,13 @@
assertFalse(inputConnection.isGetHandlerCalled);
assertNull(inputConnection.getHandler());
assertTrue(inputConnection.isGetHandlerCalled);
- assertFalse(inputConnection.isInsertContentCalled);
+ assertFalse(inputConnection.isCommitContentCalled);
final InputContentInfo inputContentInfo = new InputContentInfo(
Uri.parse("content://com.example/path"),
new ClipDescription("sample content", new String[]{"image/png"}),
Uri.parse("https://example.com"));
- assertTrue(inputConnection.insertContent(inputContentInfo, null /* opt */));
- assertTrue(inputConnection.isInsertContentCalled);
+ assertTrue(inputConnection.commitContent(inputContentInfo, null /* opt */));
+ assertTrue(inputConnection.isCommitContentCalled);
}
private class MockInputConnection implements InputConnection {
@@ -132,7 +132,7 @@
public boolean isRequestCursorUpdatesCalled;
public boolean isGetHandlerCalled;
public boolean isCloseConnectionCalled;
- public boolean isInsertContentCalled;
+ public boolean isCommitContentCalled;
public boolean beginBatchEdit() {
isBeginBatchEditCalled = true;
@@ -258,8 +258,8 @@
isCloseConnectionCalled = true;
}
- public boolean insertContent(InputContentInfo inputContentInfo, Bundle opts) {
- isInsertContentCalled = true;
+ public boolean commitContent(InputContentInfo inputContentInfo, Bundle opts) {
+ isCommitContentCalled = true;
return true;
}
}