Home
last modified time | relevance | path

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

/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
DConversationMessageDataTest.java36 final FakeCursor testCursor = TestDataFactory.getConversationMessageCursor(); in testBindFirstMessage() local
38 testCursor.moveToFirst(); in testBindFirstMessage()
39 data.bind(testCursor); in testBindFirstMessage()
41 assertEquals(testCursor.getAt(ConversationMessageViewColumns.STATUS, 0).equals( in testBindFirstMessage()
43 assertEquals(testCursor.getAt(ConversationMessageViewColumns.SENDER_PROFILE_PHOTO_URI, in testBindFirstMessage()
45 assertEquals(testCursor.getAt(ConversationMessageViewColumns.SENDER_FULL_NAME, 0), in testBindFirstMessage()
50 final FakeCursor testCursor = TestDataFactory.getConversationMessageCursor(); in testBindTwice() local
52 testCursor.moveToPosition(1); in testBindTwice()
53 data.bind(testCursor); in testBindTwice()
54 assertEquals(TestDataFactory.getMessageText(testCursor, 1), data.getText()); in testBindTwice()
[all …]
DConversationParticipantsDataTest.java29 final FakeCursor testCursor = TestDataFactory.getConversationParticipantsCursor(); in testBindParticipants() local
31 data.bind(testCursor); in testBindParticipants()
33 assertEquals(data.getParticipantListExcludingSelf().size(), testCursor.getCount()); in testBindParticipants()
36 assertEquals(participant2.getFirstName(), testCursor.getAt( in testBindParticipants()
38 assertEquals(participant2.getSendDestination(), testCursor.getAt( in testBindParticipants()