Searched refs:mockActionModeCallback (Results 1 – 1 of 1) sorted by relevance
6811 final ActionMode.Callback mockActionModeCallback = mock(ActionMode.Callback.class); in testSetAndGetCustomSelectionActionModeCallback() local6812 when(mockActionModeCallback.onCreateActionMode(any(ActionMode.class), any(Menu.class))). in testSetAndGetCustomSelectionActionModeCallback()6814 mTextView.setCustomSelectionActionModeCallback(mockActionModeCallback); in testSetAndGetCustomSelectionActionModeCallback()6815 assertEquals(mockActionModeCallback, in testSetAndGetCustomSelectionActionModeCallback()6828 verify(mockActionModeCallback, times(1)).onCreateActionMode( in testSetAndGetCustomSelectionActionModeCallback()6838 verify(mockActionModeCallback, never()).onDestroyActionMode(any(ActionMode.class)); in testSetAndGetCustomSelectionActionModeCallback()6841 reset(mockActionModeCallback); in testSetAndGetCustomSelectionActionModeCallback()6842 when(mockActionModeCallback.onCreateActionMode(any(ActionMode.class), any(Menu.class))). in testSetAndGetCustomSelectionActionModeCallback()6844 assertEquals(mockActionModeCallback, mTextView.getCustomSelectionActionModeCallback()); in testSetAndGetCustomSelectionActionModeCallback()6857 verify(mockActionModeCallback, times(1)).onCreateActionMode( in testSetAndGetCustomSelectionActionModeCallback()[all …]