/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/core/test/com/google/inject/multibindings/ |
D | ProvidesIntoTest.java | 116 @TestEnumKey(TestEnum.A) in testAnnotation() 122 @TestEnumKey(TestEnum.B) in testAnnotation() 180 Map<TestEnum, String> noAnnotationMap = in testAnnotation() 181 injector.getInstance(new Key<Map<TestEnum, String>>() {}); in testAnnotation() 182 assertEquals(ImmutableMap.of(TestEnum.A, "na", TestEnum.B, "na2"), noAnnotationMap); in testAnnotation() 198 enum TestEnum { enum in ProvidesIntoTest 206 TestEnum value(); in value() 342 @TestEnumKey(TestEnum.A) in testProvidesIntoSetWithMapKey() 365 @TestEnumKey(TestEnum.A) in testProvidesIntoOptionalWithMapKey() 406 TestEnum value(); in value() [all …]
|
/external/protobuf/ruby/tests/ |
D | generated_code.proto | 15 TestEnum optional_enum = 10; 27 repeated TestEnum repeated_enum = 30; 40 TestEnum oneof_enum = 50; 51 map<string, TestEnum> map_string_enum = 68; 62 enum TestEnum { enum
|
D | basic.rb | 107 TestEnum = pool.lookup("TestEnum").enummodule constant 393 l = Google::Protobuf::RepeatedField.new(:enum, TestEnum) 591 m = Google::Protobuf::Map.new(:string, :enum, TestEnum, 1118 assert optional_enum.subtype == TestEnum.descriptor
|
D | repeated_field_test.rb | 637 TestEnum = pool.lookup("TestEnum").enummodule constant in RepeatedFieldTest
|
/external/protobuf/src/google/protobuf/compiler/ruby/ |
D | ruby_generated_code.proto | 15 TestEnum optional_enum = 10; 27 repeated TestEnum repeated_enum = 30; 40 TestEnum oneof_enum = 50; 51 map<string, TestEnum> map_string_enum = 68; 62 enum TestEnum { enum
|
D | ruby_generated_code.rb | 71 TestEnum = Google::Protobuf::DescriptorPool.generated_pool.lookup("A.B.C.TestEnum").enummodule constant
|
/external/libchrome/base/metrics/ |
D | histogram_macros_unittest.cc | 28 enum TestEnum : char { in TEST() enum 39 enum class TestEnum { in TEST() enum 45 UMA_HISTOGRAM_ENUMERATION("Test.ScopedEnumeration", TestEnum::FIRST_VALUE); in TEST()
|
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | data_view_unittest.cc | 148 obj->f_enum_array = {TestEnum::VALUE_1, TestEnum::VALUE_0}; in TEST_F() 153 ArrayDataView<TestEnum> array_data_view; in TEST_F() 158 EXPECT_EQ(TestEnum::VALUE_1, array_data_view[0]); in TEST_F() 159 EXPECT_EQ(TestEnum::VALUE_0, array_data_view[1]); in TEST_F() 160 EXPECT_EQ(TestEnum::VALUE_0, *(array_data_view.data() + 1)); in TEST_F() 162 TestEnum output; in TEST_F() 164 EXPECT_EQ(TestEnum::VALUE_1, output); in TEST_F()
|
/external/protobuf/java/core/src/test/proto/com/google/protobuf/ |
D | test_bad_identifiers.proto | 77 enum TestEnum { enum 86 optional TestEnum field2 = 2 [deprecated=true]; 124 enum TestEnum { enum 131 repeated TestEnum enum_field = 2; 137 optional TestEnum enum_field_count = 12; 143 repeated TestEnum EnumField = 22; // NO_PROTO3
|
/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/swiftshader/third_party/llvm-7.0/llvm/test/DebugInfo/PDB/Inputs/ |
D | symbolformat.cpp | 8 enum TestEnum { enum 76 TestEnum Enum = Value; in main()
|
/external/libchrome/mojo/public/interfaces/bindings/tests/ |
D | test_data_view.mojom | 7 enum TestEnum { 35 array<TestEnum> f_enum_array;
|
/external/python/cpython3/Lib/test/test_json/ |
D | test_enum.py | 34 class TestEnum: class 119 class TestPyEnum(TestEnum, PyTest): pass 120 class TestCEnum(TestEnum, CTest): pass
|
/external/protobuf/src/google/protobuf/ |
D | unittest_custom_options.proto | 399 enum TestEnum { enum 402 required TestEnum value = 1; 407 enum TestEnum { enum 411 required TestEnum value = 1;
|
D | unittest_no_generic_services.proto | 44 enum TestEnum { enum
|
/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 | 62 enum TestEnum { FOO = 0; } enum 64 message Data2 { repeated TestEnum data = 1; }
|
/external/llvm/test/DebugInfo/PDB/DIA/ |
D | pdbdump-symbol-format.test | 25 ; TYPES_FORMAT-DAG: enum TestEnum
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/DebugInfo/PDB/DIA/ |
D | pdbdump-symbol-format.test | 28 ; TYPES_FORMAT-DAG: enum TestEnum
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | ServiceTest.java | 232 assertEquals(1, UnittestNoGenericServices.TestEnum.FOO.getNumber()); in testNoGenericServices()
|
/external/protobuf/src/google/protobuf/util/ |
D | type_resolver_util_test.cc | 326 TEST_F(DescriptorPoolTypeResolverTest, TestEnum) { in TEST_F() argument
|