Home
last modified time | relevance | path

Searched refs:mockActionMode (Results 1 – 1 of 1) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DActionModeTest.java79 final ActionMode mockActionMode = new MockActionMode(); in testSetType() local
80 assertEquals(ActionMode.TYPE_PRIMARY, mockActionMode.getType()); in testSetType()
82 mockActionMode.setType(ActionMode.TYPE_FLOATING); in testSetType()
83 assertEquals(ActionMode.TYPE_FLOATING, mockActionMode.getType()); in testSetType()
85 mockActionMode.setType(ActionMode.TYPE_PRIMARY); in testSetType()
86 assertEquals(ActionMode.TYPE_PRIMARY, mockActionMode.getType()); in testSetType()
91 final ActionMode mockActionMode = spy(new MockActionMode()); in testInvalidateContentRectDoesNotInvalidateFull() local
93 mockActionMode.invalidateContentRect(); in testInvalidateContentRectDoesNotInvalidateFull()
95 verify(mockActionMode, never()).invalidate(); in testInvalidateContentRectDoesNotInvalidateFull()