Searched refs:mockDataSetObserver (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/widget/src/android/widget/cts/ |
D | BaseExpandableListAdapterTest.java | 88 DataSetObserver mockDataSetObserver = mock(DataSetObserver.class); in testNotifyDataSetChanged() local 89 adapter.registerDataSetObserver(mockDataSetObserver); in testNotifyDataSetChanged() 91 verifyZeroInteractions(mockDataSetObserver); in testNotifyDataSetChanged() 93 verify(mockDataSetObserver, times(1)).onChanged(); in testNotifyDataSetChanged() 99 DataSetObserver mockDataSetObserver = mock(DataSetObserver.class); in testNotifyDataSetInvalidated() local 100 adapter.registerDataSetObserver(mockDataSetObserver); in testNotifyDataSetInvalidated() 102 verifyZeroInteractions(mockDataSetObserver); in testNotifyDataSetInvalidated() 104 verify(mockDataSetObserver, times(1)).onInvalidated(); in testNotifyDataSetInvalidated() 124 DataSetObserver mockDataSetObserver = mock(DataSetObserver.class); in testDataSetObserver() local 125 adapter.registerDataSetObserver(mockDataSetObserver); in testDataSetObserver() [all …]
|
D | BaseAdapterTest.java | 55 DataSetObserver mockDataSetObserver = mock(DataSetObserver.class); in testDataSetObserver() local 57 verifyZeroInteractions(mockDataSetObserver); in testDataSetObserver() 59 verifyZeroInteractions(mockDataSetObserver); in testDataSetObserver() 61 baseAdapter.registerDataSetObserver(mockDataSetObserver); in testDataSetObserver() 63 verify(mockDataSetObserver, times(1)).onChanged(); in testDataSetObserver() 65 reset(mockDataSetObserver); in testDataSetObserver() 66 verifyZeroInteractions(mockDataSetObserver); in testDataSetObserver() 67 baseAdapter.unregisterDataSetObserver(mockDataSetObserver); in testDataSetObserver() 69 verifyZeroInteractions(mockDataSetObserver); in testDataSetObserver() 75 DataSetObserver mockDataSetObserver = mock(DataSetObserver.class); in testNotifyDataSetInvalidated() local [all …]
|
D | ArrayAdapterTest.java | 110 final DataSetObserver mockDataSetObserver = mock(DataSetObserver.class); in testDataChangeEvent() local 111 mArrayAdapter.registerDataSetObserver(mockDataSetObserver); in testDataChangeEvent() 115 verifyZeroInteractions(mockDataSetObserver); in testDataChangeEvent() 118 verify(mockDataSetObserver, times(1)).onChanged(); in testDataChangeEvent() 121 verify(mockDataSetObserver, times(2)).onChanged(); in testDataChangeEvent() 126 verify(mockDataSetObserver, times(3)).onChanged(); in testDataChangeEvent() 130 verify(mockDataSetObserver, times(4)).onChanged(); in testDataChangeEvent() 132 reset(mockDataSetObserver); in testDataChangeEvent() 139 verifyZeroInteractions(mockDataSetObserver); in testDataChangeEvent() 143 verify(mockDataSetObserver, times(1)).onChanged(); in testDataChangeEvent() [all …]
|
D | CursorTreeAdapterTest.java | 226 DataSetObserver mockDataSetObserver = mock(DataSetObserver.class); in testNotifyDataSetChangedBoolean() local 227 adapter.registerDataSetObserver(mockDataSetObserver); in testNotifyDataSetChangedBoolean() 230 verifyZeroInteractions(mockDataSetObserver); in testNotifyDataSetChangedBoolean() 232 verify(mockDataSetObserver, times(1)).onChanged(); in testNotifyDataSetChangedBoolean() 238 reset(mockDataSetObserver); in testNotifyDataSetChangedBoolean() 239 verifyZeroInteractions(mockDataSetObserver); in testNotifyDataSetChangedBoolean() 242 verify(mockDataSetObserver, times(1)).onChanged(); in testNotifyDataSetChangedBoolean() 250 reset(mockDataSetObserver); in testNotifyDataSetChangedBoolean() 251 verifyZeroInteractions(mockDataSetObserver); in testNotifyDataSetChangedBoolean() 254 verify(mockDataSetObserver, times(1)).onChanged(); in testNotifyDataSetChangedBoolean() [all …]
|
D | HeaderViewListAdapterTest.java | 346 DataSetObserver mockDataSetObserver = mock(DataSetObserver.class); in testRegisterDataSetObserver() local 347 headerViewListAdapter.registerDataSetObserver(mockDataSetObserver); in testRegisterDataSetObserver() 348 assertSame(mockDataSetObserver, mFullAdapter.getDataSetObserver()); in testRegisterDataSetObserver() 355 DataSetObserver mockDataSetObserver = mock(DataSetObserver.class); in testUnregisterDataSetObserver() local 356 headerViewListAdapter.registerDataSetObserver(mockDataSetObserver); in testUnregisterDataSetObserver() 359 assertSame(mockDataSetObserver, mFullAdapter.getDataSetObserver()); in testUnregisterDataSetObserver() 360 headerViewListAdapter.unregisterDataSetObserver(mockDataSetObserver); in testUnregisterDataSetObserver()
|