summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/dialer/list/PhoneFavoritesTileAdapterTest.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/src/com/android/dialer/list/PhoneFavoritesTileAdapterTest.java b/tests/src/com/android/dialer/list/PhoneFavoritesTileAdapterTest.java
new file mode 100644
index 000000000..40d171c8c
--- /dev/null
+++ b/tests/src/com/android/dialer/list/PhoneFavoritesTileAdapterTest.java
@@ -0,0 +1,46 @@
+package com.android.dialer.list;
+
+import android.test.AndroidTestCase;
+
+public class PhoneFavoritesTileAdapterTest extends AndroidTestCase {
+ private PhoneFavoritesTileAdapter mAdapter;
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ mAdapter = new PhoneFavoritesTileAdapter(getContext(), null, 3, 1);
+ }
+
+ /**
+ * TODO Krelease: Add tests
+ *
+ * Test cases (various combinations of):
+ * No pinned contacts
+ * One pinned contact
+ * Multiple pinned contacts with differing pinned positions
+ * Multiple pinned contacts with conflicting pinned positions
+ * Pinned contacts with pinned positions at the start, middle, end, and outside the list
+ */
+ public void testArrangeContactsByPinnedPosition() {
+
+ }
+
+ /**
+ * TODO Krelease: Add tests
+ *
+ * This method assumes that contacts have already been reordered by
+ * arrangeContactsByPinnedPosition, so we can test it with a less expansive set of test data.
+ *
+ * Test cases:
+ * Pin a single contact at the start, middle and end of a completely unpinned list
+ * Pin a single contact at the start, middle and end of a list with various numbers of
+ * pinned contacts
+ * Pin a single contact at the start, middle and end of a list where all contacts are pinned
+ * such that contacts are forced to the left as necessary.
+ */
+ public void testGetReflowedPinnedPositions() {
+
+ }
+
+
+}