Home
last modified time | relevance | path

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

12

/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/core/test/com/google/inject/multibindings/
DProvidesIntoTest.java116 @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/
Dgenerated_code.proto15 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
Dbasic.rb107 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
Drepeated_field_test.rb637 TestEnum = pool.lookup("TestEnum").enummodule constant in RepeatedFieldTest
/external/protobuf/src/google/protobuf/compiler/ruby/
Druby_generated_code.proto15 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
Druby_generated_code.rb71 TestEnum = Google::Protobuf::DescriptorPool.generated_pool.lookup("A.B.C.TestEnum").enummodule constant
/external/libchrome/base/metrics/
Dhistogram_macros_unittest.cc28 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/
Ddata_view_unittest.cc148 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/
Dtest_bad_identifiers.proto77 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/
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/swiftshader/third_party/llvm-7.0/llvm/test/DebugInfo/PDB/Inputs/
Dsymbolformat.cpp8 enum TestEnum { enum
76 TestEnum Enum = Value; in main()
/external/libchrome/mojo/public/interfaces/bindings/tests/
Dtest_data_view.mojom7 enum TestEnum {
35 array<TestEnum> f_enum_array;
/external/python/cpython3/Lib/test/test_json/
Dtest_enum.py34 class TestEnum: class
119 class TestPyEnum(TestEnum, PyTest): pass
120 class TestCEnum(TestEnum, CTest): pass
/external/protobuf/src/google/protobuf/
Dunittest_custom_options.proto399 enum TestEnum { enum
402 required TestEnum value = 1;
407 enum TestEnum { enum
411 required TestEnum value = 1;
Dunittest_no_generic_services.proto44 enum TestEnum { enum
/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.proto62 enum TestEnum { FOO = 0; } enum
64 message Data2 { repeated TestEnum data = 1; }
/external/llvm/test/DebugInfo/PDB/DIA/
Dpdbdump-symbol-format.test25 ; TYPES_FORMAT-DAG: enum TestEnum
/external/swiftshader/third_party/llvm-7.0/llvm/test/DebugInfo/PDB/DIA/
Dpdbdump-symbol-format.test28 ; TYPES_FORMAT-DAG: enum TestEnum
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DServiceTest.java232 assertEquals(1, UnittestNoGenericServices.TestEnum.FOO.getNumber()); in testNoGenericServices()
/external/protobuf/src/google/protobuf/util/
Dtype_resolver_util_test.cc326 TEST_F(DescriptorPoolTypeResolverTest, TestEnum) { in TEST_F() argument

12