Home
last modified time | relevance | path

Searched refs:FlagsParameterization (Results 1 – 8 of 8) sorted by relevance

/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/
DFlagsParameterizationTest.java35 FlagsParameterization params1 = new FlagsParameterization(Map.of("a", true, "b", false)); in toStringIsOrderIndependent()
36 FlagsParameterization params2 = new FlagsParameterization(Map.of("b", false, "a", true)); in toStringIsOrderIndependent()
43 FlagsParameterization params1 = new FlagsParameterization(Map.of("a", true, "b", false)); in toStringIsDifferent()
44 FlagsParameterization params2 = new FlagsParameterization(Map.of("a", true, "b", true)); in toStringIsDifferent()
51 FlagsParameterization params = new FlagsParameterization(Map.of()); in toStringIsNotEmpty()
59 FlagsParameterization params = new FlagsParameterization(original); in overridesCannotBeChanged()
67 FlagsParameterization params = new FlagsParameterization(original); in overridesIsACopy()
74 List<FlagsParameterization> actual = FlagsParameterization.allCombinationsOf(); in allCombinationsWith0Flags()
75 List<FlagsParameterization> expected = List.of(new FlagsParameterization(Map.of())); in allCombinationsWith0Flags()
81 List<FlagsParameterization> actual = FlagsParameterization.allCombinationsOf("a"); in allCombinationsWith1Flags()
[all …]
DSetFlagsRuleTestCommon.java72 protected abstract Helper makeParameterizedHelper(FlagsParameterization params); in makeParameterizedHelper()
410 FlagsParameterization params = in paramEnabledFlagsGetEnabled()
411 new FlagsParameterization(Map.of(Flags.FLAG_FLAG_NAME3, true)); in paramEnabledFlagsGetEnabled()
423 FlagsParameterization params = in paramDisabledFlagsGetDisabled()
424 new FlagsParameterization(Map.of(Flags.FLAG_FLAG_NAME3, false)); in paramDisabledFlagsGetDisabled()
436 FlagsParameterization params = in paramSetFlagsGetSet()
437 new FlagsParameterization( in paramSetFlagsGetSet()
451 FlagsParameterization params = in settingParameterizedFlagFails()
452 new FlagsParameterization(Map.of(Flags.FLAG_FLAG_NAME3, true)); in settingParameterizedFlagFails()
465 FlagsParameterization params = in settingNonParameterizedFlagDirectlyWorks()
[all …]
DSetFlagsRuleClassRuleTest.java43 protected Helper makeParameterizedHelper(FlagsParameterization params) { in makeParameterizedHelper()
47 private Helper makeClassRuleHelper(FlagsParameterization params, boolean watchFlags) { in makeClassRuleHelper()
112 FlagsParameterization params = in parameterizedFlagsMustBeWatched()
113 new FlagsParameterization(Map.of(Flags.FLAG_FLAG_NAME3, true)); in parameterizedFlagsMustBeWatched()
123 FlagsParameterization params = in parameterizedFlagsCanBeMarkedAsWatchedWithUsesFlags()
124 new FlagsParameterization(Map.of(Flags.FLAG_FLAG_NAME3, true)); in parameterizedFlagsCanBeMarkedAsWatchedWithUsesFlags()
261 FlagsParameterization params = in parameterizedFlagsCannotBeReadBeforeTest()
262 new FlagsParameterization(Map.of(Flags.FLAG_FLAG_NAME3, true)); in parameterizedFlagsCannotBeReadBeforeTest()
274 FlagsParameterization params = in nonParameterizedFlagsCanBeReadBeforeTest()
275 new FlagsParameterization(Map.of(Flags.FLAG_FLAG_NAME3, true)); in nonParameterizedFlagsCanBeReadBeforeTest()
DSetFlagsRuleAnnotationsTest.java35 protected Helper makeParameterizedHelper(FlagsParameterization params) { in makeParameterizedHelper()
/platform_testing/libraries/flag-helpers/junit/src_base/android/platform/test/flag/junit/
DFlagsParameterization.java30 public final class FlagsParameterization { class
34 public FlagsParameterization(Map<String, Boolean> overrides) { in FlagsParameterization() method in FlagsParameterization
71 if (!(other instanceof FlagsParameterization)) return false; in equals()
72 return mOverrides.equals(((FlagsParameterization) other).mOverrides); in equals()
86 public static List<FlagsParameterization> allCombinationsOf(@Nonnull String... flagNames) { in allCombinationsOf()
101 List<FlagsParameterization> result = new ArrayList<>(); in allCombinationsOf()
103 result.add(new FlagsParameterization(valuesMap)); in allCombinationsOf()
124 public static List<FlagsParameterization> progressionOf(@Nonnull String... flagNames) { in progressionOf()
125 final List<FlagsParameterization> result = new ArrayList<>(); in progressionOf()
130 result.add(new FlagsParameterization(currentMap)); in progressionOf()
[all …]
DSetFlagsRule.java78 private FlagsParameterization mFlagsParameterization;
106 public SetFlagsRule(@Nullable FlagsParameterization flagsParameterization) { in SetFlagsRule()
112 @Nullable FlagsParameterization flagsParameterization) { in SetFlagsRule()
118 @Nullable FlagsParameterization flagsParameterization, in SetFlagsRule()
132 public void setFlagsParameterization(@Nonnull FlagsParameterization flagsParameterization) { in setFlagsParameterization()
252 FlagsParameterization parameterization) {
684 @Nullable FlagsParameterization flagsParameterization) {
DAnnotationsRetriever.java271 public void assumeAllSetFlagsMatchParameterization(FlagsParameterization params) { in assumeAllSetFlagsMatchParameterization()
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/example/
DExampleFlagsParameterizedTest.java28 import android.platform.test.flag.junit.FlagsParameterization;
55 public static List<FlagsParameterization> getFlags() { in getFlags()
56 return FlagsParameterization.allCombinationsOf( in getFlags()
63 public ExampleFlagsParameterizedTest(FlagsParameterization flags) { in ExampleFlagsParameterizedTest()