| Index: dbus/property.h
|
| diff --git a/dbus/property.h b/dbus/property.h
|
| index a3fb5ca76e0c5de85f1ad865615c6c1590a92975..a43ee4c1f2bca205aaf28d63bdca8b45c17db081 100644
|
| --- a/dbus/property.h
|
| +++ b/dbus/property.h
|
| @@ -164,6 +164,11 @@ class PropertyBase {
|
| // Implementation provided by specialization.
|
| virtual void AppendSetValueToWriter(MessageWriter* writer) = 0;
|
|
|
| + // Method used by test and stub implementations of dbus::PropertySet::Set
|
| + // to replace the property value with the set value without using a
|
| + // dbus::MessageReader.
|
| + virtual void ReplaceValueWithSetValue() = 0;
|
| +
|
| protected:
|
| // Retrieves the associated property set.
|
| PropertySet* property_set() { return property_set_; }
|
| @@ -377,6 +382,15 @@ class Property : public PropertyBase {
|
| // Implementation provided by specialization.
|
| virtual void AppendSetValueToWriter(MessageWriter* writer);
|
|
|
| + // Method used by test and stub implementations of dbus::PropertySet::Set
|
| + // to replace the property value with the set value without using a
|
| + // dbus::MessageReader.
|
| + virtual void ReplaceValueWithSetValue() { value_ = set_value_; }
|
| +
|
| + // Method used by test and stub implementations to directly set the
|
| + // value of a property.
|
| + void ReplaceValue(const T& value) { value_ = value; }
|
| +
|
| private:
|
| // Current cached value of the property.
|
| T value_;
|
|
|