Home
last modified time | relevance | path

Searched refs:SomeEnum (Results 1 – 9 of 9) sorted by relevance

/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DSetsTest.java89 private enum SomeEnum { A, B, C, D } enum in SetsTest
92 Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B); in testImmutableEnumSet()
94 assertThat(units).has().exactly(SomeEnum.B, SomeEnum.D).inOrder(); in testImmutableEnumSet()
96 units.remove(SomeEnum.B); in testImmutableEnumSet()
100 units.add(SomeEnum.C); in testImmutableEnumSet()
106 ImmutableSet<SomeEnum> none in testImmutableEnumSet_fromIterable()
107 = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of()); in testImmutableEnumSet_fromIterable()
110 ImmutableSet<SomeEnum> one in testImmutableEnumSet_fromIterable()
111 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.B)); in testImmutableEnumSet_fromIterable()
112 assertThat(one).has().item(SomeEnum.B); in testImmutableEnumSet_fromIterable()
[all …]
DMapsTest.java219 public enum SomeEnum { SOME_INSTANCE } enum in MapsTest
222 EnumMap<SomeEnum, Integer> map = Maps.newEnumMap(SomeEnum.class); in testEnumMap()
224 map.put(SomeEnum.SOME_INSTANCE, 0); in testEnumMap()
225 assertEquals(Collections.singletonMap(SomeEnum.SOME_INSTANCE, 0), map); in testEnumMap()
230 Maps.<SomeEnum, Long>newEnumMap((Class<MapsTest.SomeEnum>) null); in testEnumMapNullClass()
237 EnumMap<SomeEnum, Integer> original = Maps.newEnumMap(SomeEnum.class); in testEnumMapWithInitialEnumMap()
238 original.put(SomeEnum.SOME_INSTANCE, 0); in testEnumMapWithInitialEnumMap()
239 EnumMap<SomeEnum, Integer> copy = Maps.newEnumMap(original); in testEnumMapWithInitialEnumMap()
244 EnumMap<SomeEnum, Integer> original = Maps.newEnumMap(SomeEnum.class); in testEnumMapWithInitialEmptyEnumMap()
245 EnumMap<SomeEnum, Integer> copy = Maps.newEnumMap(original); in testEnumMapWithInitialEmptyEnumMap()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DSetsTest.java299 private enum SomeEnum { A, B, C, D }
302 Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B);
304 assertThat(units).has().exactly(SomeEnum.B, SomeEnum.D).inOrder();
306 units.remove(SomeEnum.B);
310 units.add(SomeEnum.C);
317 Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B);
319 assertThat(units).has().exactly(SomeEnum.B, SomeEnum.D).inOrder();
321 Set<SomeEnum> copy = SerializableTester.reserializeAndAssert(units);
326 ImmutableSet<SomeEnum> none
327 = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of());
[all …]
DMapsTest.java280 public enum SomeEnum { SOME_INSTANCE } enum in MapsTest
283 EnumMap<SomeEnum, Integer> map = Maps.newEnumMap(SomeEnum.class); in testEnumMap()
285 map.put(SomeEnum.SOME_INSTANCE, 0); in testEnumMap()
286 assertEquals(Collections.singletonMap(SomeEnum.SOME_INSTANCE, 0), map); in testEnumMap()
291 Maps.<SomeEnum, Long>newEnumMap((Class<MapsTest.SomeEnum>) null); in testEnumMapNullClass()
298 EnumMap<SomeEnum, Integer> original = Maps.newEnumMap(SomeEnum.class); in testEnumMapWithInitialEnumMap()
299 original.put(SomeEnum.SOME_INSTANCE, 0); in testEnumMapWithInitialEnumMap()
300 EnumMap<SomeEnum, Integer> copy = Maps.newEnumMap(original); in testEnumMapWithInitialEnumMap()
305 EnumMap<SomeEnum, Integer> original = Maps.newEnumMap(SomeEnum.class); in testEnumMapWithInitialEmptyEnumMap()
306 EnumMap<SomeEnum, Integer> copy = Maps.newEnumMap(original); in testEnumMapWithInitialEmptyEnumMap()
[all …]
/external/python/apitools/apitools/base/py/
Dencoding_test.py120 class SomeEnum(messages.Enum): class in MessageWithRemappings
124 enum_field = messages.EnumField(SomeEnum, 1)
125 double_encoding = messages.EnumField(SomeEnum, 2)
127 repeated_enum = messages.EnumField(SomeEnum, 4, repeated=True)
142 encoding.AddCustomJsonEnumMapping(MessageWithRemappings.SomeEnum,
338 enum_field=MessageWithRemappings.SomeEnum.enum_value)
347 MessageWithRemappings.SomeEnum.enum_value,
348 MessageWithRemappings.SomeEnum.second_value,
372 double_encoding=MessageWithRemappings.SomeEnum.enum_value)
380 encoding.AddCustomJsonEnumMapping(MessageWithRemappings.SomeEnum,
[all …]
/external/robolectric-shadows/processor/src/test/resources/org/robolectric/annotation/processing/shadows/
DDocumentedObjectShadow.java19 public enum SomeEnum { enum in DocumentedObjectShadow
/external/clang/test/CodeGenObjCXX/
Ddesignated-initializers.mm38 enum SomeEnum : unsigned char {
/external/clang/test/OpenMP/
Dtarget_map_codegen.cpp219 SomeEnum = 0x09 in implicit_maps_nested_integer_and_enum() enumerator
242 i += SomeEnum; in implicit_maps_nested_integer_and_enum()
/external/python/cpython3/Lib/test/
Dtest_enum.py1762 class SomeEnum(Enum): class
1797 class CoolColor(StrMixin, SomeEnum, Enum):
1816 class CoolestColor(StrMixin, SomeEnum, AnotherEnum):
1826 class ConfusedColor(StrMixin, AnotherEnum, SomeEnum):
1836 class ReformedColor(StrMixin, IntEnum, SomeEnum, AnotherEnum):