[shill] Add support for setting properties.

This CL adds a framework for supporting RPC-exposed properties in Shill.
It also plumbs the code for setting properties on Service objects to prove
the approach.  Device and Manager settings will follow.

BUG=chromium-os:16343
TEST=build shill, run unit tests.

Change-Id: I55869453d6039e688f1a49be9dfb1ba1315efe0a
Reviewed-on: http://gerrit.chromium.org/gerrit/3004
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
diff --git a/mock_property_store.h b/mock_property_store.h
new file mode 100644
index 0000000..4971984
--- /dev/null
+++ b/mock_property_store.h
@@ -0,0 +1,48 @@
+// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SHILL_MOCK_PROPERTY_STORE_
+#define SHILL_MOCK_PROPERTY_STORE_
+
+#include "shill/property_store_interface.h"
+
+#include <map>
+#include <string>
+#include <vector>
+
+#include <base/basictypes.h>
+
+namespace shill {
+
+class Error;
+
+class MockPropertyStore : public PropertyStoreInterface {
+ public:
+  MockPropertyStore() {}
+  virtual ~MockPropertyStore() {}
+  MOCK_METHOD1(Contains, bool(const std::string&));
+  MOCK_METHOD3(SetBoolProperty, bool(const std::string&, bool, Error*));
+  MOCK_METHOD3(SetInt16Property, bool(const std::string&, int16, Error*));
+  MOCK_METHOD3(SetInt32Property, bool(const std::string&, int32, Error*));
+  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(SetStringsProperty, bool(const std::string&,
+                                        const std::vector<std::string>&,
+                                        Error*));
+  MOCK_METHOD3(SetUint8Property, bool(const std::string&, uint8, Error*));
+  MOCK_METHOD3(SetUint16Property, bool(const std::string&, uint16, Error*));
+  MOCK_METHOD3(SetUint32Property, bool(const std::string&, uint32, Error*));
+
+ private:
+  DISALLOW_COPY_AND_ASSIGN(MockPropertyStore);
+};
+
+}  // namespace shill
+
+#endif  // SHILL_MOCK_PROPERTY_STORE_