Home
last modified time | relevance | path

Searched refs:TestDataFactory (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DFrequentContactsCursorBuilderTest.java22 import com.android.messaging.datamodel.data.TestDataFactory;
58 assertNull(builder.setFrequents(TestDataFactory.getStrequentContactsCursor()).build()); in testIncompleteBuild()
61 assertNull(builder.setAllContacts(TestDataFactory.getAllContactListCursor()).build()); in testIncompleteBuild()
66 .setAllContacts(TestDataFactory.getAllContactListCursor()) in testBuildOnce()
67 .setFrequents(TestDataFactory.getStrequentContactsCursor()) in testBuildOnce()
70 verifyBuiltCursor(TestDataFactory.getFrequentContactListCursor(), cursor); in testBuildOnce()
76 .setAllContacts(TestDataFactory.getAllContactListCursor()) in testBuildTwice()
77 .setFrequents(TestDataFactory.getStrequentContactsCursor()) in testBuildTwice()
84 .setAllContacts(TestDataFactory.getAllContactListCursor()) in testBuildTwice()
85 .setFrequents(TestDataFactory.getStrequentContactsCursor()) in testBuildTwice()
[all …]
DFakeDataModel.java49 import com.android.messaging.datamodel.data.TestDataFactory;
241 TestDataFactory.createTestData(db); in onCreateTables()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
DConversationMessageViewTest.java27 import com.android.messaging.datamodel.data.TestDataFactory;
72 final FakeCursor cursor = TestDataFactory.getConversationMessageCursor(); in testBind()
76 verifyContent(view, TestDataFactory.getMessageText(cursor, 0), true, Dates in testBind()
83 final FakeCursor cursor = TestDataFactory.getConversationMessageCursor(); in testBindTwice()
89 verifyContent(view, TestDataFactory.getMessageText(cursor, 1), true, Dates in testBindTwice()
96 final FakeCursor cursor = TestDataFactory.getConversationMessageCursor(); in testBindLast()
101 verifyContent(view, TestDataFactory.getMessageText(cursor, lastPos), true, Dates in testBindLast()
DConversationFragmentTest.java32 import com.android.messaging.datamodel.data.TestDataFactory;
141 final Cursor cursor = TestDataFactory.getConversationMessageCursor(); in testLoadListView()
150 final Cursor cursor = TestDataFactory.getConversationMessageCursor(); in testClickComposeMessageView()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/
DContactListItemViewTest.java29 import com.android.messaging.datamodel.data.TestDataFactory;
79 final FakeCursor cursor = TestDataFactory.getAllContactListCursor(); in testBindFirstLevel()
80 final int row = TestDataFactory.CONTACT_LIST_CURSOR_FIRST_LEVEL_CONTACT_INDEX; in testBindFirstLevel()
90 final FakeCursor cursor = TestDataFactory.getAllContactListCursor(); in testBindSecondLevel()
91 final int row = TestDataFactory.CONTACT_LIST_CURSOR_SECOND_LEVEL_CONTACT_INDEX; in testBindSecondLevel()
101 final FakeCursor cursor = TestDataFactory.getAllContactListCursor(); in testClickAddedContact()
111 final FakeCursor cursor = TestDataFactory.getAllContactListCursor(); in testBindTwice()
DContactPickerFragmentTest.java35 import com.android.messaging.datamodel.data.TestDataFactory;
156 final Cursor cursor = TestDataFactory.getAllContactListCursor(); in testLoadAllContactsList()
168 final Cursor cursor = TestDataFactory.getFrequentContactListCursor(); in testLoadFrequentContactsList()
177 final Cursor cursor = TestDataFactory.getFrequentContactListCursor(); in testPickInitialContact()
197 final Cursor cursor = TestDataFactory.getFrequentContactListCursor(); in testLeaveChipsMode()
210 final Cursor cursor = TestDataFactory.getFrequentContactListCursor(); in testPickMoreContacts()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DGalleryGridItemViewTest.java28 import com.android.messaging.datamodel.data.TestDataFactory;
78 final FakeCursor cursor = TestDataFactory.getGalleryGridCursor(); in testBind()
91 final FakeCursor cursor = TestDataFactory.getGalleryGridCursor(); in testBindMultiSelectUnSelected()
104 final FakeCursor cursor = TestDataFactory.getGalleryGridCursor(); in testBindMultiSelectSelected()
117 final FakeCursor cursor = TestDataFactory.getGalleryGridCursor(); in testClick()
129 final FakeCursor cursor = TestDataFactory.getGalleryGridCursor(); in testBindTwice()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
DConversationMessageDataTest.java36 final FakeCursor testCursor = TestDataFactory.getConversationMessageCursor(); in testBindFirstMessage()
50 final FakeCursor testCursor = TestDataFactory.getConversationMessageCursor(); in testBindTwice()
54 assertEquals(TestDataFactory.getMessageText(testCursor, 1), data.getText()); in testBindTwice()
65 assertEquals(TestDataFactory.getMessageText(testCursor, 2), data.getText()); in testBindTwice()
77 final FakeCursor testCursor = TestDataFactory.getConversationMessageCursor(); in testMessageClustering()
DConversationParticipantsDataTest.java29 final FakeCursor testCursor = TestDataFactory.getConversationParticipantsCursor(); in testBindParticipants()
DTestDataFactory.java46 public class TestDataFactory { class
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DGetOrCreateConversationActionTest.java38 import com.android.messaging.datamodel.data.TestDataFactory;
68 assertEquals(TestDataFactory.SMS_MMS_THREAD_ID_CURSOR_VALUE, threadId); in testGetOrCreateConversation()
91 assertEquals(TestDataFactory.NUM_TEST_CONVERSATIONS+1, Integer.parseInt((String)result)); in testGetOrCreateConversation()
109 assertEquals(TestDataFactory.NUM_TEST_CONVERSATIONS+1, Integer.parseInt((String)result)); in testGetOrCreateConversation()
155 return TestDataFactory.getSmsMmsThreadIdCursor(); in setUp()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversationlist/
DConversationListFragmentTest.java31 import com.android.messaging.datamodel.data.TestDataFactory;
97 final Cursor cursor = TestDataFactory.getConversationListCursor(); in testLoadListView()
109 loadWith(TestDataFactory.getEmptyConversationListCursor()); in testEmptyView()
122 final Cursor cursor = TestDataFactory.getConversationListCursor(); in testStartNewConversation()
DConversationListItemViewTest.java31 import com.android.messaging.datamodel.data.TestDataFactory;
55 mCursor = TestDataFactory.getConversationListCursor(); in setUp()
139 final int messageIndex = TestDataFactory.CONVERSATION_LIST_CURSOR_UNREAD_MESSAGE_INDEX; in testBindUnread()
149 final int messageIndex = TestDataFactory.CONVERSATION_LIST_CURSOR_READ_MESSAGE_INDEX; in testBindRead()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/
DAttachmentChooserFragmentTest.java29 import com.android.messaging.datamodel.data.TestDataFactory;
142 final List<MessagePartData> attachments = TestDataFactory.getTestDraftAttachments(); in testUnselect()