[shill] Enable the getting of properties, and wire to dbus.
PropertyStore exposes getters for iterators pointing to the beginning
and end of its property maps, and a static utility method in DBusAdaptor
uses these to iterate through all the properties in the PropertyStore and build
up a map of property name -> DBus::Variant-wrapped value.
BUG=chromium-os:16343
TEST=unit tests
Change-Id: I85ebbaee167ab2feed0fcf8fe654274de352aca0
Reviewed-on: http://gerrit.chromium.org/gerrit/3359
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
diff --git a/mock_property_store.h b/mock_property_store.h
index 8042292..0956545 100644
--- a/mock_property_store.h
+++ b/mock_property_store.h
@@ -28,12 +28,11 @@
MOCK_METHOD3(SetStringProperty, bool(const std::string&,
const std::string&,
Error*));
- MOCK_METHOD3(SetStringmapProperty,
- bool(const std::string&,
- const std::map<std::string, std::string>&,
- Error*));
+ MOCK_METHOD3(SetStringmapProperty, bool(const std::string&,
+ const Stringmap&,
+ Error*));
MOCK_METHOD3(SetStringsProperty, bool(const std::string&,
- const std::vector<std::string>&,
+ const Strings&,
Error*));
MOCK_METHOD3(SetUint8Property, bool(const std::string&, uint8, Error*));
MOCK_METHOD3(SetUint16Property, bool(const std::string&, uint16, Error*));