/external/guava/guava-tests/test/com/google/common/base/ |
D | EnumsTest.java | 44 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/ |
D | EnumsTest.java | 35 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/ |
D | ProvidesIntoTest.java | 96 @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/ |
D | test_bad_identifiers.proto | 74 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;
|
D | ServiceTest.java | 230 assertEquals(1, UnittestNoGenericServices.TestEnum.FOO.getNumber()); in testNoGenericServices()
|
/external/clang/test/Sema/ |
D | format-strings-enum.c | 15 typedef enum { Constant = 0 } TestEnum; typedef 19 void test(TestEnum input) { in test()
|
D | format-strings-enum-fixed-type.cpp | 13 typedef enum : short { Constant = 0 } TestEnum; typedef 18 void test(TestEnum input) { in test()
|
/external/llvm/test/DebugInfo/PDB/Inputs/ |
D | symbolformat.cpp | 8 enum TestEnum { enum 68 TestEnum Enum = Value; in main()
|
/external/clang/test/Misc/ |
D | ast-dump-attr.cpp | 40 int TestEnum __attribute__((visibility("default"))); variable
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_test_bad_identifiers.proto | 61 enum TestEnum { FOO = 1; } enum 63 message Data2 { repeated TestEnum data = 1; }
|
D | cpp_unittest.cc | 2034 no_generic_services_test::TestEnum e = no_generic_services_test::FOO; in TEST_F()
|
/external/llvm/test/DebugInfo/PDB/DIA/ |
D | pdbdump-symbol-format.test | 21 ; TYPES_FORMAT-DAG: enum TestEnum
|
/external/protobuf/src/google/protobuf/ |
D | unittest_no_generic_services.proto | 43 enum TestEnum { enum
|