Merge "Refactor FeatureFactory"

This commit is contained in:
Chaohui Wang
2023-06-29 09:01:17 +00:00
committed by Android (Google) Code Review
10 changed files with 451 additions and 716 deletions

View File

@@ -95,8 +95,9 @@ public class FakeFeatureFactory extends FeatureFactory {
* Call this in {@code @Before} method of the test class to use fake factory.
*/
public static FakeFeatureFactory setupForTest() {
sFactory = new FakeFeatureFactory();
return (FakeFeatureFactory) sFactory;
FakeFeatureFactory factory = new FakeFeatureFactory();
setFactory(getAppContext(), factory);
return factory;
}
/**