Home
last modified time | relevance | path

Searched refs:TestEnum (Results 1 – 13 of 13) sorted by relevance

/external/guava/guava-tests/test/com/google/common/base/
DEnumsTest.java44 private enum TestEnum { enum in EnumsTest
53 assertEquals(Optional.of(TestEnum.CHEETO), Enums.getIfPresent(TestEnum.class, "CHEETO")); in testGetIfPresent()
54 assertEquals(Optional.of(TestEnum.HONDA), Enums.getIfPresent(TestEnum.class, "HONDA")); in testGetIfPresent()
55 assertEquals(Optional.of(TestEnum.POODLE), Enums.getIfPresent(TestEnum.class, "POODLE")); in testGetIfPresent()
57 assertTrue(Enums.getIfPresent(TestEnum.class, "CHEETO").isPresent()); in testGetIfPresent()
58 assertTrue(Enums.getIfPresent(TestEnum.class, "HONDA").isPresent()); in testGetIfPresent()
59 assertTrue(Enums.getIfPresent(TestEnum.class, "POODLE").isPresent()); in testGetIfPresent()
61 assertEquals(TestEnum.CHEETO, Enums.getIfPresent(TestEnum.class, "CHEETO").get()); in testGetIfPresent()
62 assertEquals(TestEnum.HONDA, Enums.getIfPresent(TestEnum.class, "HONDA").get()); in testGetIfPresent()
63 assertEquals(TestEnum.POODLE, Enums.getIfPresent(TestEnum.class, "POODLE").get()); in testGetIfPresent()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DEnumsTest.java35 private enum TestEnum { enum in EnumsTest
44 assertEquals(Optional.of(TestEnum.CHEETO), Enums.getIfPresent(TestEnum.class, "CHEETO")); in testGetIfPresent()
45 assertEquals(Optional.of(TestEnum.HONDA), Enums.getIfPresent(TestEnum.class, "HONDA")); in testGetIfPresent()
46 assertEquals(Optional.of(TestEnum.POODLE), Enums.getIfPresent(TestEnum.class, "POODLE")); in testGetIfPresent()
48 assertTrue(Enums.getIfPresent(TestEnum.class, "CHEETO").isPresent()); in testGetIfPresent()
49 assertTrue(Enums.getIfPresent(TestEnum.class, "HONDA").isPresent()); in testGetIfPresent()
50 assertTrue(Enums.getIfPresent(TestEnum.class, "POODLE").isPresent()); in testGetIfPresent()
52 assertEquals(TestEnum.CHEETO, Enums.getIfPresent(TestEnum.class, "CHEETO").get()); in testGetIfPresent()
53 assertEquals(TestEnum.HONDA, Enums.getIfPresent(TestEnum.class, "HONDA").get()); in testGetIfPresent()
54 assertEquals(TestEnum.POODLE, Enums.getIfPresent(TestEnum.class, "POODLE").get()); in testGetIfPresent()
[all …]
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
DProvidesIntoTest.java96 @TestEnumKey(TestEnum.A) in testAnnotation()
100 @TestEnumKey(TestEnum.B) in testAnnotation()
144 Map<TestEnum, String> noAnnotationMap = in testAnnotation()
145 injector.getInstance(new Key<Map<TestEnum, String>>() {}); in testAnnotation()
146 assertEquals(ImmutableMap.of(TestEnum.A, "na", TestEnum.B, "na2"), noAnnotationMap); in testAnnotation()
165 enum TestEnum { enum in ProvidesIntoTest
172 TestEnum value(); in value()
275 @ProvidesIntoSet @TestEnumKey(TestEnum.A) String provideFoo() { return "foo"; } in testProvidesIntoSetWithMapKey()
292 @TestEnumKey(TestEnum.A) in testProvidesIntoOptionalWithMapKey()
325 TestEnum value(); in value()
[all …]
/external/protobuf/java/src/test/java/com/google/protobuf/
Dtest_bad_identifiers.proto74 enum TestEnum { enum
82 optional TestEnum field2 = 2 [deprecated=true];
120 enum TestEnum { enum
126 repeated TestEnum enum_field = 2;
132 optional TestEnum enum_field_count = 12;
138 repeated TestEnum EnumField = 22;
DServiceTest.java230 assertEquals(1, UnittestNoGenericServices.TestEnum.FOO.getNumber()); in testNoGenericServices()
/external/clang/test/Sema/
Dformat-strings-enum.c15 typedef enum { Constant = 0 } TestEnum; typedef
19 void test(TestEnum input) { in test()
Dformat-strings-enum-fixed-type.cpp13 typedef enum : short { Constant = 0 } TestEnum; typedef
18 void test(TestEnum input) { in test()
/external/llvm/test/DebugInfo/PDB/Inputs/
Dsymbolformat.cpp8 enum TestEnum { enum
68 TestEnum Enum = Value; in main()
/external/clang/test/Misc/
Dast-dump-attr.cpp40 int TestEnum __attribute__((visibility("default"))); variable
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_test_bad_identifiers.proto61 enum TestEnum { FOO = 1; } enum
63 message Data2 { repeated TestEnum data = 1; }
Dcpp_unittest.cc2034 no_generic_services_test::TestEnum e = no_generic_services_test::FOO; in TEST_F()
/external/llvm/test/DebugInfo/PDB/DIA/
Dpdbdump-symbol-format.test21 ; TYPES_FORMAT-DAG: enum TestEnum
/external/protobuf/src/google/protobuf/
Dunittest_no_generic_services.proto43 enum TestEnum { enum