import com.android.settings.applications.ApplicationFeatureProvider;
import com.android.settings.core.instrumentation.MetricsFeatureProvider;
import com.android.settings.dashboard.DashboardFeatureProvider;
+import com.android.settings.enterprise.EnterprisePrivacyFeatureProvider;
import com.android.settings.fuelgauge.PowerUsageFeatureProvider;
import com.android.settings.localepicker.LocaleFeatureProvider;
import com.android.settings.overlay.FeatureFactory;
import com.android.settings.overlay.SupportFeatureProvider;
+import com.android.settings.search2.SearchFeatureProvider;
+import com.android.settings.overlay.SurveyFeatureProvider;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.mock;
public final DashboardFeatureProvider dashboardFeatureProvider;
public final LocaleFeatureProvider localeFeatureProvider;
public final ApplicationFeatureProvider applicationFeatureProvider;
+ public final EnterprisePrivacyFeatureProvider enterprisePrivacyFeatureProvider;
+ public final SearchFeatureProvider searchFeatureProvider;
+ public final SurveyFeatureProvider surveyFeatureProvider;
/**
* Call this in {@code @Before} method of the test class to use fake factory.
dashboardFeatureProvider = mock(DashboardFeatureProvider.class);
localeFeatureProvider = mock(LocaleFeatureProvider.class);
applicationFeatureProvider = mock(ApplicationFeatureProvider.class);
+ enterprisePrivacyFeatureProvider = mock(EnterprisePrivacyFeatureProvider.class);
+ searchFeatureProvider = mock(SearchFeatureProvider.class);
+ surveyFeatureProvider = mock(SurveyFeatureProvider.class);
}
@Override
public LocaleFeatureProvider getLocaleFeatureProvider() {
return localeFeatureProvider;
}
+
+ @Override
+ public EnterprisePrivacyFeatureProvider getEnterprisePrivacyFeatureProvider(Context context) {
+ return enterprisePrivacyFeatureProvider;
+ }
+
+ @Override
+ public SearchFeatureProvider getSearchFeatureProvider(Context context) {
+ return searchFeatureProvider;
+ }
+
+ @Override
+ public SurveyFeatureProvider getSurveyFeatureProvider(Context context) {
+ return surveyFeatureProvider;
+ }
}