Home | History | Annotate | Download | only in ibus

Lines Matching refs:property

28 // Sets testing data to |property| with |prefix|.
32 void SetProperty(const std::string& prefix, IBusProperty* property) {
33 property->set_key(prefix + kSampleKey);
34 property->set_type(kSampleType);
35 property->set_label(prefix + kSampleLabel);
36 property->set_tooltip(prefix + kSampleTooltip);
37 property->set_visible(kSampleVisible);
38 property->set_checked(kSampleChecked);
39 property->mutable_sub_properties()->clear();
42 // Checks testing data in |property| with |prefix|.
44 bool CheckProperty(const std::string& prefix, const IBusProperty& property) {
45 if ((prefix + kSampleKey) != property.key()) {
48 << "Actual: " << property.key();
51 if (kSampleType != property.type()) {
54 << "Actual: " << property.type();
57 if ((prefix + kSampleLabel) != property.label()) {
60 << "Actual: " << property.label();
63 if ((prefix + kSampleTooltip) != property.tooltip()) {
66 << "Actual: " << property.tooltip();
69 if (kSampleVisible != property.visible()) {
72 << "Actual: " << property.visible();
75 if (kSampleChecked != property.checked()) {
78 << "Actual: " << property.checked();
90 IBusProperty property;
91 SetProperty("Root_", &property);
96 property.mutable_sub_properties()->push_back(sub_property);
102 AppendIBusProperty(property, &writer);