Add test for new DashboardFragment and PreferenceController

Also added a FakeFeatureFactory to make it easier to mock different
FeatureProviders.

Bug: 31781480
Test: make RunSettingsRoboTests
Change-Id: Ie45db601e0bec951d7ef983ec2e3ca747ec1c3af
This commit is contained in:
Fan Zhang
2016-10-04 17:48:32 -07:00
parent 0cff709a0d
commit e6c60c24a8
8 changed files with 444 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ public abstract class FeatureFactory {
private static final String LOG_TAG = "FeatureFactory";
private static final boolean DEBUG = false;
private static FeatureFactory sFactory;
protected static FeatureFactory sFactory;
/**
* Returns a factory for creating feature controllers. Creates the factory if it does not