Move all contextual card related classes.
... from homepage to contextualcards. Test: rebuild Change-Id: Id7889566ce1e7257eb699d963ae996906fdb58ff
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.settings.homepage;
|
||||
package com.android.settings.homepage.contextualcards;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
@@ -31,15 +31,15 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class CardContentLoaderTest {
|
||||
public class ContextualCardLoaderTest {
|
||||
|
||||
private Context mContext;
|
||||
private CardContentLoader mCardContentLoader;
|
||||
private ContextualCardLoader mContextualCardLoader;
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
mContext = InstrumentationRegistry.getTargetContext();
|
||||
mCardContentLoader = new CardContentLoader(mContext);
|
||||
mContextualCardLoader = new ContextualCardLoader(mContext);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -53,7 +53,7 @@ public class CardContentLoaderTest {
|
||||
cards.add(getContextualCard(sliceUri2));
|
||||
cards.add(getContextualCard(sliceUri3));
|
||||
|
||||
final List<ContextualCard> result = mCardContentLoader.filter(cards);
|
||||
final List<ContextualCard> result = mContextualCardLoader.filterEligibleCards(cards);
|
||||
|
||||
assertThat(result).hasSize(1);
|
||||
}
|
Reference in New Issue
Block a user