Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DBluetoothPbapCallLogComposerTest.java71 @Mock Cursor mMockCursor; field in BluetoothPbapCallLogComposerTest
77 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 …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/
DRestoreDbTaskTest.java92 private Cursor mMockCursor; field in RestoreDbTaskTest
103 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()