Home
last modified time | relevance | path

Searched refs:EnumWithTraitsImpl (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/mojo/public/cpp/bindings/tests/
Dstruct_with_traits_impl_traits.cc26 EnumTraits<test::EnumWithTraits, test::EnumWithTraitsImpl>::ToMojom( in ToMojom()
27 test::EnumWithTraitsImpl input) { in ToMojom()
29 case test::EnumWithTraitsImpl::CUSTOM_VALUE_0: in ToMojom()
31 case test::EnumWithTraitsImpl::CUSTOM_VALUE_1: in ToMojom()
39 bool EnumTraits<test::EnumWithTraits, test::EnumWithTraitsImpl>::FromMojom( in FromMojom()
41 test::EnumWithTraitsImpl* output) { in FromMojom()
44 *output = test::EnumWithTraitsImpl::CUSTOM_VALUE_0; in FromMojom()
47 *output = test::EnumWithTraitsImpl::CUSTOM_VALUE_1; in FromMojom()
58 test::EnumWithTraitsImpl f_enum; in Read()
Dstruct_with_traits_impl.h33 enum class EnumWithTraitsImpl { CUSTOM_VALUE_0 = 10, CUSTOM_VALUE_1 = 11 }; enum
44 void set_enum(EnumWithTraitsImpl value) { enum_ = value; } in set_enum()
45 EnumWithTraitsImpl get_enum() const { return enum_; } in get_enum()
89 EnumWithTraitsImpl enum_ = EnumWithTraitsImpl::CUSTOM_VALUE_0;
Dstruct_traits_unittest.cc169 void EchoEnumWithTraits(EnumWithTraitsImpl e, in EchoEnumWithTraits()
313 input.set_enum(EnumWithTraitsImpl::CUSTOM_VALUE_1); in TEST_F()
428 void ExpectEnumWithTraits(EnumWithTraitsImpl expected_value, in ExpectEnumWithTraits()
430 EnumWithTraitsImpl value) { in ExpectEnumWithTraits()
440 EnumWithTraitsImpl::CUSTOM_VALUE_1, in TEST_F()
441 base::Bind(&ExpectEnumWithTraits, EnumWithTraitsImpl::CUSTOM_VALUE_1, in TEST_F()
448 input.set_enum(EnumWithTraitsImpl::CUSTOM_VALUE_1); in TEST_F()
555 EXPECT_EQ(EnumWithTraitsImpl::CUSTOM_VALUE_1, container->f_field); in TEST_F()
Dstruct_with_traits_impl_traits.h30 struct EnumTraits<test::EnumWithTraits, test::EnumWithTraitsImpl> {
31 static test::EnumWithTraits ToMojom(test::EnumWithTraitsImpl input);
33 test::EnumWithTraitsImpl* output);
45 static test::EnumWithTraitsImpl f_enum(
Dstruct_with_traits.typemap19 "mojo.test.EnumWithTraits=mojo::test::EnumWithTraitsImpl",