Searched refs:mockController (Results 1 – 3 of 3) sorted by relevance
59 final AbstractPreferenceController mockController = in testPreferenceControllerGetterSetter_shouldAddAndGetProperly() local61 mPreferenceControllerFragment.addPreferenceController(mockController); in testPreferenceControllerGetterSetter_shouldAddAndGetProperly()64 mPreferenceControllerFragment.getOnePreferenceController(mockController.getClass()); in testPreferenceControllerGetterSetter_shouldAddAndGetProperly()66 assertThat(mockController).isSameAs(retrievedController); in testPreferenceControllerGetterSetter_shouldAddAndGetProperly()71 final AbstractPreferenceController mockController = in testOnPreferenceTreeClick_shouldCallPreferenceController() local73 mPreferenceControllerFragment.addPreferenceController(mockController); in testOnPreferenceTreeClick_shouldCallPreferenceController()78 verify(mockController, times(1)).handlePreferenceTreeClick(mockPref); in testOnPreferenceTreeClick_shouldCallPreferenceController()83 final AbstractPreferenceController mockController = in testUpdatePreferenceStates_shouldCallUpdateState() local85 doReturn("TEST_KEY").when(mockController).getPreferenceKey(); in testUpdatePreferenceStates_shouldCallUpdateState()86 doReturn(true).when(mockController).isAvailable(); in testUpdatePreferenceStates_shouldCallUpdateState()[all …]
181 MediaController mockController = mock(MediaController.class); in testPlayItem() local184 when(mockController.getTransportControls()).thenReturn(mockTransport); in testPlayItem()185 MediaControllerFactory.inject(mockController); in testPlayItem()193 verify(mockController).registerCallback(mControllerCb.capture(), any()); in testPlayItem()218 MediaController mockController = mock(MediaController.class); in testPlayItem_Timeout() local221 when(mockController.getTransportControls()).thenReturn(mockTransport); in testPlayItem_Timeout()222 MediaControllerFactory.inject(mockController); in testPlayItem_Timeout()227 verify(mockController).registerCallback(any(), mTimeoutHandler.capture()); in testPlayItem_Timeout()
35 public static void setUseMock(EntityHeaderController mockController) { in setUseMock() argument36 sMockController = mockController; in setUseMock()