Searched refs:mMockCursor (Results 1 – 2 of 2) sorted by relevance
71 @Mock Cursor mMockCursor; field in BluetoothPbapCallLogComposerTest77 doReturn(mMockCursor) in setUp()81 when(mMockCursor.getCount()).thenReturn(validRowCount); in setUp()82 when(mMockCursor.moveToFirst()).thenReturn(true); in setUp()121 when(mMockCursor.getCount()).thenReturn(0); in testInit_failWhenCursorRowCountIsZero()125 verify(mMockCursor).close(); in testInit_failWhenCursorRowCountIsZero()130 when(mMockCursor.moveToFirst()).thenReturn(false); in testInit_failWhenCursorMoveToFirstFails()134 verify(mMockCursor).close(); in testInit_failWhenCursorMoveToFirstFails()143 verify(mMockCursor).moveToNext(); in testCreateOneEntry_success()172 verify(mMockCursor).close(); in testTerminate()[all …]
92 private Cursor mMockCursor; field in RestoreDbTaskTest103 mMockCursor = mock(Cursor.class); in setup()258 mMockCursor); in givenRestoreWithNonExistingWidgets_WhenRestoreAppWidgetIds_ThenRemoveNewIds()259 when(mMockCursor.moveToFirst()).thenReturn(false); in givenRestoreWithNonExistingWidgets_WhenRestoreAppWidgetIds_ThenRemoveNewIds()285 .thenReturn(mMockCursor); in givenRestore_WhenRestoreAppWidgetIds_ThenAddNewIds()286 when(mMockCursor.moveToFirst()).thenReturn(true); in givenRestore_WhenRestoreAppWidgetIds_ThenAddNewIds()287 when(mMockCursor.getColumnNames()).thenReturn(new String[] {}); in givenRestore_WhenRestoreAppWidgetIds_ThenAddNewIds()288 when(mMockCursor.isAfterLast()).thenReturn(true); in givenRestore_WhenRestoreAppWidgetIds_ThenAddNewIds()