Home
last modified time | relevance | path

Searched refs:AnEnum (Results 1 – 25 of 31) sorted by relevance

12

/external/guava/guava-testlib/src/com/google/common/collect/testing/
DTestEnumMapGenerator.java34 implements TestMapGenerator<AnEnum, String> {
37 public SampleElements<Entry<AnEnum, String>> samples() { in samples()
38 return new SampleElements<Entry<AnEnum, String>>( in samples()
39 Helpers.mapEntry(AnEnum.A, "January"), in samples()
40 Helpers.mapEntry(AnEnum.B, "February"), in samples()
41 Helpers.mapEntry(AnEnum.C, "March"), in samples()
42 Helpers.mapEntry(AnEnum.D, "April"), in samples()
43 Helpers.mapEntry(AnEnum.E, "May") in samples()
48 public final Map<AnEnum, String> create(Object... entries) { in create()
50 Entry<AnEnum, String>[] array = new Entry[entries.length]; in create()
[all …]
DTestEnumSetGenerator.java32 public abstract class TestEnumSetGenerator implements TestSetGenerator<AnEnum> {
34 public SampleElements<AnEnum> samples() { in samples()
39 public Set<AnEnum> create(Object... elements) { in create()
40 AnEnum[] array = new AnEnum[elements.length]; in create()
43 array[i++] = (AnEnum) e; in create()
48 protected abstract Set<AnEnum> create(AnEnum[] elements); in create()
51 public AnEnum[] createArray(int length) { in createArray()
52 return new AnEnum[length]; in createArray()
59 public List<AnEnum> order(List<AnEnum> insertionOrder) { in order()
DSampleElements.java78 public static class Enums extends SampleElements<AnEnum> {
81 super(AnEnum.B, AnEnum.A, AnEnum.C, AnEnum.D, AnEnum.E); in Enums()
DTestsForMapsInJavaUtil.java230 @Override protected Map<AnEnum, String> create(
231 Entry<AnEnum, String>[] entries) {
233 new EnumMap<AnEnum, String>(AnEnum.class), entries);
DAnEnum.java27 public enum AnEnum { enum
DTestsForSetsInJavaUtil.java185 @Override public Set<AnEnum> create(AnEnum[] elements) {
187 ? EnumSet.noneOf(AnEnum.class)
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DTestEnumMultisetGenerator.java21 import com.google.common.collect.testing.AnEnum;
36 implements TestMultisetGenerator<AnEnum> {
38 public SampleElements<AnEnum> samples() { in samples()
43 public Multiset<AnEnum> create(Object... elements) { in create()
44 AnEnum[] array = new AnEnum[elements.length]; in create()
47 array[i++] = (AnEnum) e; in create()
52 protected abstract Multiset<AnEnum> create(AnEnum[] elements); in create()
55 public AnEnum[] createArray(int length) { in createArray()
56 return new AnEnum[length]; in createArray()
63 public List<AnEnum> order(List<AnEnum> insertionOrder) { in order()
DMapGenerators.java25 import com.google.common.collect.testing.AnEnum;
144 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { in create() argument
145 Map<AnEnum, String> map = Maps.newHashMap(); in create()
146 for (Entry<AnEnum, String> entry : entries) { in create()
156 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { in create() argument
157 EnumMap<AnEnum, String> map = new EnumMap<AnEnum, String>(AnEnum.class); in create()
158 for (Entry<AnEnum, String> entry : entries) { in create()
165 public Iterable<Entry<AnEnum, String>> order(List<Entry<AnEnum, String>> insertionOrder) { in order() argument
166 return new Ordering<Entry<AnEnum, String>>() { in order()
169 public int compare(Entry<AnEnum, String> left, Entry<AnEnum, String> right) { in order()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DImmutableEnumMapTest.java22 import com.google.common.collect.testing.AnEnum;
40 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { in create() argument
41 Map<AnEnum, String> map = Maps.newHashMap(); in create()
42 for (Entry<AnEnum, String> entry : entries) { in create()
50 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap(ImmutableMap.<AnEnum, String>of()); in testEmptyImmutableEnumMap()
55 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap( in testImmutableEnumMapOrdering()
56 ImmutableMap.of(AnEnum.C, "c", AnEnum.A, "a", AnEnum.E, "e")); in testImmutableEnumMapOrdering()
59 Helpers.mapEntry(AnEnum.A, "a"), in testImmutableEnumMapOrdering()
60 Helpers.mapEntry(AnEnum.C, "c"), in testImmutableEnumMapOrdering()
61 Helpers.mapEntry(AnEnum.E, "e")).inOrder(); in testImmutableEnumMapOrdering()
DEnumMultisetTest.java22 import com.google.common.collect.testing.AnEnum;
41 @Override protected Multiset<AnEnum> create(AnEnum[] elements) { in enumMultisetGenerator()
43 ? EnumMultiset.create(AnEnum.class) in enumMultisetGenerator()
DImmutableMapTest.java22 import com.google.common.collect.testing.AnEnum;
493 EnumMap<AnEnum, String> map = new EnumMap<AnEnum, String>(AnEnum.class); in testCopyOfEnumMap()
494 map.put(AnEnum.B, "foo"); in testCopyOfEnumMap()
495 map.put(AnEnum.C, "bar"); in testCopyOfEnumMap()
/external/guava/guava-tests/test/com/google/common/collect/
DImmutableEnumMapTest.java23 import com.google.common.collect.testing.AnEnum;
46 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { in create() argument
47 Map<AnEnum, String> map = Maps.newHashMap(); in create()
48 for (Entry<AnEnum, String> entry : entries) { in create()
69 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap(ImmutableMap.<AnEnum, String>of()); in testEmptyImmutableEnumMap()
74 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap( in testImmutableEnumMapOrdering()
75 ImmutableMap.of(AnEnum.C, "c", AnEnum.A, "a", AnEnum.E, "e")); in testImmutableEnumMapOrdering()
78 Helpers.mapEntry(AnEnum.A, "a"), in testImmutableEnumMapOrdering()
79 Helpers.mapEntry(AnEnum.C, "c"), in testImmutableEnumMapOrdering()
80 Helpers.mapEntry(AnEnum.E, "e")).inOrder(); in testImmutableEnumMapOrdering()
DEnumMultisetTest.java23 import com.google.common.collect.testing.AnEnum;
67 @Override protected Multiset<AnEnum> create(AnEnum[] elements) { in enumMultisetGenerator()
69 ? EnumMultiset.create(AnEnum.class) in enumMultisetGenerator()
DImmutableMapTest.java25 import com.google.common.collect.testing.AnEnum;
645 EnumMap<AnEnum, String> map = new EnumMap<AnEnum, String>(AnEnum.class); in testCopyOfEnumMap()
646 map.put(AnEnum.B, "foo"); in testCopyOfEnumMap()
647 map.put(AnEnum.C, "bar"); in testCopyOfEnumMap()
/external/python/apitools/apitools/base/py/
Dutil_test.py34 class AnEnum(messages.Enum): class in MessageWithRemappings
45 MessageWithRemappings.AnEnum, 'value_one', 'ONE')
180 'enum_field': MessageWithRemappings.AnEnum.value_one,
189 params['enum_field'] = MessageWithRemappings.AnEnum.value_two
Dbase_api_test.py55 class AnEnum(messages.Enum): class in MessageWithRemappings
66 MessageWithRemappings.AnEnum, 'value_one', 'ONE/TWO')
278 str_field='foo', enum_field=MessageWithRemappings.AnEnum.value_one)
292 enum_field=MessageWithRemappings.AnEnum.value_one)
/external/guava/guava-tests/test/com/google/common/base/
DEnumsTest.java165 private enum AnEnum { enum in EnumsTest
172 Field foo = Enums.getField(AnEnum.FOO); in testGetField()
176 Field bar = Enums.getField(AnEnum.BAR); in testGetField()
/external/libchrome/mojo/public/interfaces/bindings/tests/
Dtest_unions.mojom9 enum AnEnum {
31 AnEnum f_enum;
/external/robolectric-shadows/sandbox/src/test/java/org/robolectric/testing/
DAnEnum.java6 public enum AnEnum { enum
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
Dunittest_extension_nano.proto11 enum AnEnum { enum
Dunittest_extension_repeated_nano.proto26 repeated AnEnum repeated_enum = 23;
Dunittest_extension_singular_nano.proto26 optional AnEnum some_enum = 23;
Dunittest_extension_packed_nano.proto26 repeated AnEnum packed_enum = 23 [ packed = true ];
/external/libchrome/mojo/public/cpp/bindings/tests/
Dunion_unittest.cc139 pod->set_f_enum(AnEnum::SECOND); in TEST()
140 EXPECT_EQ(AnEnum::SECOND, pod->get_f_enum()); in TEST()
198 pod = PodUnion::NewFEnum(AnEnum::SECOND); in TEST()
199 EXPECT_EQ(AnEnum::SECOND, pod->get_f_enum()); in TEST()
203 pod = PodUnion::NewFEnum(AnEnum::FIRST); in TEST()
204 EXPECT_EQ(AnEnum::FIRST, pod->get_f_enum()); in TEST()
252 PodUnionPtr pod1(PodUnion::NewFEnum(AnEnum::SECOND)); in TEST()
262 EXPECT_EQ(AnEnum::SECOND, pod2->get_f_enum()); in TEST()
351 PodUnionPtr pod(PodUnion::NewFEnum(static_cast<AnEnum>(0xFFFF))); in TEST()
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DEnumsTest.java111 private enum AnEnum { enum in EnumsTest

12