Search in sources :

Example 1 with ContextualCardFeatureProviderImpl

use of com.android.settings.homepage.contextualcards.ContextualCardFeatureProviderImpl in project android_packages_apps_Settings by omnirom.

the class SliceContextualCardControllerTest method setUp.

@Before
public void setUp() {
    MockitoAnnotations.initMocks(this);
    mContext = RuntimeEnvironment.application;
    mProvider = Robolectric.setupContentProvider(CardContentProvider.class);
    ShadowContentResolver.registerProviderInternal(CardContentProvider.CARD_AUTHORITY, mProvider);
    mResolver = mContext.getContentResolver();
    mController = spy(new SliceContextualCardController(mContext));
    mFeatureFactory = FakeFeatureFactory.setupForTest();
    final ContextualCardFeatureProvider cardFeatureProvider = new ContextualCardFeatureProviderImpl(mContext);
    mFeatureFactory.mContextualCardFeatureProvider = cardFeatureProvider;
}
Also used : CardContentProvider(com.android.settings.homepage.contextualcards.CardContentProvider) ContextualCardFeatureProvider(com.android.settings.homepage.contextualcards.ContextualCardFeatureProvider) ContextualCardFeatureProviderImpl(com.android.settings.homepage.contextualcards.ContextualCardFeatureProviderImpl) Before(org.junit.Before)

Aggregations

CardContentProvider (com.android.settings.homepage.contextualcards.CardContentProvider)1 ContextualCardFeatureProvider (com.android.settings.homepage.contextualcards.ContextualCardFeatureProvider)1 ContextualCardFeatureProviderImpl (com.android.settings.homepage.contextualcards.ContextualCardFeatureProviderImpl)1 Before (org.junit.Before)1