Searched refs:mockActionModeCallback (Results 1 – 1 of 1) sorted by relevance
6062 final ActionMode.Callback mockActionModeCallback = mock(ActionMode.Callback.class); in testSetAndGetCustomSelectionActionModeCallback() local6063 when(mockActionModeCallback.onCreateActionMode(any(ActionMode.class), any(Menu.class))). in testSetAndGetCustomSelectionActionModeCallback()6065 mTextView.setCustomSelectionActionModeCallback(mockActionModeCallback); in testSetAndGetCustomSelectionActionModeCallback()6066 assertEquals(mockActionModeCallback, in testSetAndGetCustomSelectionActionModeCallback()6079 verify(mockActionModeCallback, times(1)).onCreateActionMode( in testSetAndGetCustomSelectionActionModeCallback()6089 verify(mockActionModeCallback, never()).onDestroyActionMode(any(ActionMode.class)); in testSetAndGetCustomSelectionActionModeCallback()6092 reset(mockActionModeCallback); in testSetAndGetCustomSelectionActionModeCallback()6093 when(mockActionModeCallback.onCreateActionMode(any(ActionMode.class), any(Menu.class))). in testSetAndGetCustomSelectionActionModeCallback()6095 assertEquals(mockActionModeCallback, mTextView.getCustomSelectionActionModeCallback()); in testSetAndGetCustomSelectionActionModeCallback()6108 verify(mockActionModeCallback, times(1)).onCreateActionMode( in testSetAndGetCustomSelectionActionModeCallback()[all …]