Lines Matching refs:SimpleMessage
20 struct SimpleMessage { struct
31 SimpleMessage() : foo(0), baz(false), bstruct(false), simple_enum(FOO) {} in SimpleMessage() argument
61 base::JSONValueConverter<SimpleMessage>* converter) { in RegisterJSONConverter()
62 converter->RegisterIntField("foo", &SimpleMessage::foo); in RegisterJSONConverter()
63 converter->RegisterStringField("bar", &SimpleMessage::bar); in RegisterJSONConverter()
64 converter->RegisterBoolField("baz", &SimpleMessage::baz); in RegisterJSONConverter()
66 "simple_enum", &SimpleMessage::simple_enum, &ParseSimpleEnum); in RegisterJSONConverter()
67 converter->RegisterRepeatedInt("ints", &SimpleMessage::ints); in RegisterJSONConverter()
69 &SimpleMessage::bstruct, in RegisterJSONConverter()
73 &SimpleMessage::string_values, in RegisterJSONConverter()
81 SimpleMessage child;
82 std::vector<std::unique_ptr<SimpleMessage>> children;
109 SimpleMessage message; in TEST()
110 base::JSONValueConverter<SimpleMessage> converter; in TEST()
116 EXPECT_EQ(SimpleMessage::FOO, message.simple_enum); in TEST()
165 const SimpleMessage* first_child = message.children[0].get(); in TEST()
174 const SimpleMessage* second_child = message.children[1].get(); in TEST()
193 SimpleMessage message; in TEST()
194 base::JSONValueConverter<SimpleMessage> converter; in TEST()
209 SimpleMessage message; in TEST()
210 base::JSONValueConverter<SimpleMessage> converter; in TEST()
232 SimpleMessage message; in TEST()
233 base::JSONValueConverter<SimpleMessage> converter; in TEST()
249 SimpleMessage message; in TEST()
250 base::JSONValueConverter<SimpleMessage> converter; in TEST()