Home | History | Annotate | Download | only in list
      1 package com.android.dialer.list;
      2 
      3 import android.test.AndroidTestCase;
      4 
      5 public class PhoneFavoritesTileAdapterTest extends AndroidTestCase {
      6     private PhoneFavoritesTileAdapter mAdapter;
      7 
      8     @Override
      9     protected void setUp() throws Exception {
     10         super.setUp();
     11         mAdapter = new PhoneFavoritesTileAdapter(getContext(), null, null, 3, 1);
     12     }
     13 
     14     /**
     15      * TODO: Add tests
     16      *
     17      * Test cases (various combinations of):
     18      * No pinned contacts
     19      * One pinned contact
     20      * Multiple pinned contacts with differing pinned positions
     21      * Multiple pinned contacts with conflicting pinned positions
     22      * Pinned contacts with pinned positions at the start, middle, end, and outside the list
     23      */
     24     public void testArrangeContactsByPinnedPosition() {
     25 
     26     }
     27 
     28     /**
     29      * TODO: Add tests
     30      *
     31      * This method assumes that contacts have already been reordered by
     32      * arrangeContactsByPinnedPosition, so we can test it with a less expansive set of test data.
     33      *
     34      * Test cases:
     35      * Pin a single contact at the start, middle and end of a completely unpinned list
     36      * Pin a single contact at the start, middle and end of a list with various numbers of
     37      * pinned contacts
     38      * Pin a single contact at the start, middle and end of a list where all contacts are pinned
     39      * such that contacts are forced to the left as necessary.
     40      */
     41     public void testGetReflowedPinnedPositions() {
     42 
     43     }
     44 
     45 
     46 }
     47