Searched refs:EnumWithTraitsImpl (Results 1 – 5 of 5) sorted by relevance
/external/libmojo/mojo/public/cpp/bindings/tests/ |
D | struct_with_traits_impl_traits.cc | 54 EnumTraits<test::EnumWithTraits, test::EnumWithTraitsImpl>::ToMojom( in ToMojom() 55 test::EnumWithTraitsImpl input) { in ToMojom() 57 case test::EnumWithTraitsImpl::CUSTOM_VALUE_0: in ToMojom() 59 case test::EnumWithTraitsImpl::CUSTOM_VALUE_1: in ToMojom() 67 bool EnumTraits<test::EnumWithTraits, test::EnumWithTraitsImpl>::FromMojom( in FromMojom() 69 test::EnumWithTraitsImpl* output) { in FromMojom() 72 *output = test::EnumWithTraitsImpl::CUSTOM_VALUE_0; in FromMojom() 75 *output = test::EnumWithTraitsImpl::CUSTOM_VALUE_1; in FromMojom() 86 test::EnumWithTraitsImpl f_enum; in Read()
|
D | struct_with_traits_impl.h | 32 enum class EnumWithTraitsImpl { CUSTOM_VALUE_0 = 10, CUSTOM_VALUE_1 = 11 }; enum 43 void set_enum(EnumWithTraitsImpl value) { enum_ = value; } in set_enum() 44 EnumWithTraitsImpl get_enum() const { return enum_; } in get_enum() 83 EnumWithTraitsImpl enum_ = EnumWithTraitsImpl::CUSTOM_VALUE_0;
|
D | struct_with_traits_impl_traits.h | 35 struct EnumTraits<test::EnumWithTraits, test::EnumWithTraitsImpl> { 36 static test::EnumWithTraits ToMojom(test::EnumWithTraitsImpl input); 38 test::EnumWithTraitsImpl* output); 49 static test::EnumWithTraitsImpl f_enum(
|
D | struct_traits_unittest.cc | 143 void EchoEnumWithTraits(EnumWithTraitsImpl e, in EchoEnumWithTraits() 246 input.set_enum(EnumWithTraitsImpl::CUSTOM_VALUE_1); in TEST_F() 320 void ExpectEnumWithTraits(EnumWithTraitsImpl expected_value, in ExpectEnumWithTraits() 322 EnumWithTraitsImpl value) { in ExpectEnumWithTraits() 332 EnumWithTraitsImpl::CUSTOM_VALUE_1, in TEST_F() 333 base::Bind(&ExpectEnumWithTraits, EnumWithTraitsImpl::CUSTOM_VALUE_1, in TEST_F() 340 input.set_enum(EnumWithTraitsImpl::CUSTOM_VALUE_1); in TEST_F()
|
D | struct_with_traits.typemap | 19 "mojo.test.EnumWithTraits=mojo::test::EnumWithTraitsImpl",
|