Add methods setFlag and resetAll in FeatureFlags in test mode. For the injection usecase, user will use the interface FeatureFlags in the code to control the flags. Add tests for test mode. Bug: 280833463 Test: Atest AconfigJavaHostTest --host Change-Id: Ib59ba35a9011a6400af42fc9c283d37193577997
14 lines
262 B
Plaintext
14 lines
262 B
Plaintext
package {package_name};
|
|
|
|
public interface FeatureFlags \{
|
|
{{ for item in class_elements}}
|
|
boolean {item.method_name}();
|
|
{{ endfor }}
|
|
|
|
{{ -if is_test_mode }}
|
|
public void setFlag(String flagName, boolean value);
|
|
|
|
public void resetAll();
|
|
{{ -endif }}
|
|
}
|