Home
last modified time | relevance | path

Searched refs:mockHost (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DGalleryGridItemViewTest.java39 @Mock GalleryGridItemView.HostInterface mockHost; field in GalleryGridItemViewTest
50 Mockito.verify(mockHost).onItemClicked(view, data, false /* longClick */); in verifyClickedItem()
74 Mockito.when(mockHost.isMultiSelectEnabled()).thenReturn(false); in testBind()
75 Mockito.when(mockHost.isItemSelected(Matchers.<GalleryGridItemData>any())) in testBind()
81 view.bind(cursor, mockHost); in testBind()
87 Mockito.when(mockHost.isMultiSelectEnabled()).thenReturn(true); in testBindMultiSelectUnSelected()
88 Mockito.when(mockHost.isItemSelected(Matchers.<GalleryGridItemData>any())) in testBindMultiSelectUnSelected()
94 view.bind(cursor, mockHost); in testBindMultiSelectUnSelected()
100 Mockito.when(mockHost.isMultiSelectEnabled()).thenReturn(true); in testBindMultiSelectSelected()
101 Mockito.when(mockHost.isItemSelected(Matchers.<GalleryGridItemData>any())) in testBindMultiSelectSelected()
[all …]
DAudioRecordViewTest.java35 @Mock AudioRecordView.HostInterface mockHost; field in AudioRecordViewTest
47 Mockito.verify(mockHost).onAudioRecorded(Matchers.any(MessagePartData.class)); in verifyAudioSubmitted()
53 view.setHostInterface(mockHost); in initView()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/
DContactListItemViewTest.java38 @Mock ContactListItemView.HostInterface mockHost; field in ContactListItemViewTest
50 Mockito.verify(mockHost).onContactListItemClicked(data, view); in verifyAddedContactForData()
82 view.bind(cursor, mockHost, false, null); in testBindFirstLevel()
93 view.bind(cursor, mockHost, false, null); in testBindSecondLevel()
104 view.bind(cursor, mockHost, false, null); in testClickAddedContact()
114 view.bind(cursor, mockHost, false, null); in testBindTwice()
117 view.bind(cursor, mockHost, false, null); in testBindTwice()
DContactPickerFragmentTest.java60 @Mock protected ContactPickerFragmentHost mockHost; field in ContactPickerFragmentTest
93 fragment.setHost(mockHost); in initFragment()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversationlist/
DConversationListItemViewTest.java45 @Mock private ConversationListItemView.HostInterface mockHost; field in ConversationListItemViewTest
64 Mockito.verify(mockHost).onConversationClicked( in verifyLaunchedConversationForId()
137 view.bind(mCursor, mockHost); in testBindUnread()
147 view.bind(mCursor, mockHost); in testBindRead()
155 view.bind(mCursor, mockHost); in testClickLaunchesConversation()
165 view.bind(mCursor, mockHost); in testBindTwice()
168 view.bind(mCursor, mockHost); in testBindTwice()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
DConversationFragmentTest.java59 @Mock protected ConversationFragmentHost mockHost; field in ConversationFragmentTest
120 fragment.setHost(mockHost); in loadWith()
160 Mockito.verify(mockHost, Mockito.never()).onStartComposeMessage(); in testClickComposeMessageView()
162 Mockito.verify(mockHost).onStartComposeMessage(); in testClickComposeMessageView()
DConversationMessageViewTest.java37 @Mock ConversationMessageViewHost mockHost; field in ConversationMessageViewTest
48 view.setHost(mockHost); in getView()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/
DAttachmentChooserFragmentTest.java58 @Mock protected AttachmentChooserFragmentHost mockHost; field in AttachmentChooserFragmentTest
120 fragment.setHost(mockHost); in loadWith()
168 Mockito.verify(mockHost).onConfirmSelection(); in testUnselect()