OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:EnumWithTraitsImpl
(Results
1 - 4
of
4
) sorted by null
/external/libchrome/mojo/public/cpp/bindings/tests/
struct_with_traits_impl_traits.cc
26
EnumTraits<test::EnumWithTraits, test::
EnumWithTraitsImpl
>::ToMojom(
27
test::
EnumWithTraitsImpl
input) {
29
case test::
EnumWithTraitsImpl
::CUSTOM_VALUE_0:
31
case test::
EnumWithTraitsImpl
::CUSTOM_VALUE_1:
39
bool EnumTraits<test::EnumWithTraits, test::
EnumWithTraitsImpl
>::FromMojom(
41
test::
EnumWithTraitsImpl
* output) {
44
*output = test::
EnumWithTraitsImpl
::CUSTOM_VALUE_0;
47
*output = test::
EnumWithTraitsImpl
::CUSTOM_VALUE_1;
58
test::
EnumWithTraitsImpl
f_enum;
struct_with_traits_impl.h
33
enum class
EnumWithTraitsImpl
{ CUSTOM_VALUE_0 = 10, CUSTOM_VALUE_1 = 11 };
44
void set_enum(
EnumWithTraitsImpl
value) { enum_ = value; }
45
EnumWithTraitsImpl
get_enum() const { return enum_; }
89
EnumWithTraitsImpl
enum_ =
EnumWithTraitsImpl
::CUSTOM_VALUE_0;
struct_with_traits_impl_traits.h
30
struct EnumTraits<test::EnumWithTraits, test::
EnumWithTraitsImpl
> {
31
static test::EnumWithTraits ToMojom(test::
EnumWithTraitsImpl
input);
33
test::
EnumWithTraitsImpl
* output);
45
static test::
EnumWithTraitsImpl
f_enum(
struct_traits_unittest.cc
169
void EchoEnumWithTraits(
EnumWithTraitsImpl
e,
313
input.set_enum(
EnumWithTraitsImpl
::CUSTOM_VALUE_1);
428
void ExpectEnumWithTraits(
EnumWithTraitsImpl
expected_value,
430
EnumWithTraitsImpl
value) {
440
EnumWithTraitsImpl
::CUSTOM_VALUE_1,
441
base::Bind(&ExpectEnumWithTraits,
EnumWithTraitsImpl
::CUSTOM_VALUE_1,
448
input.set_enum(
EnumWithTraitsImpl
::CUSTOM_VALUE_1);
555
EXPECT_EQ(
EnumWithTraitsImpl
::CUSTOM_VALUE_1, container->f_field);
Completed in 462 milliseconds