[shill] Back property storage in Service objects with Entry objects
Much of Shill Service state is persisted to disk, by creating an Entry
in a Profile. We should store this info just once, so that we don't
have to worry about keeping multiple data stores in sync. This is a
first step in that direction.
BUG=chromium-os:17436
TEST=unit tests
Change-Id: If94db2a38a7d79c56e2c746b2f069cfd7ab4bf65
Reviewed-on: http://gerrit.chromium.org/gerrit/3876
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
diff --git a/dbus_adaptor_unittest.cc b/dbus_adaptor_unittest.cc
index 3921c98..5a83817 100644
--- a/dbus_adaptor_unittest.cc
+++ b/dbus_adaptor_unittest.cc
@@ -12,9 +12,12 @@
#include <gtest/gtest.h>
#include <gmock/gmock.h>
+#include "shill/entry.h"
#include "shill/manager.h"
#include "shill/mock_control.h"
#include "shill/mock_device.h"
+#include "shill/mock_glib.h"
+#include "shill/mock_profile.h"
#include "shill/mock_property_store.h"
#include "shill/mock_service.h"
#include "shill/property_store_unittest.h"
@@ -56,6 +59,8 @@
0)),
service_(new MockService(&control_interface_,
&dispatcher_,
+ new MockProfile(&control_interface_, &glib_),
+ new Entry("mock"),
"mock")) {
ex_stringmap_[ex_string_] = ex_string_;
stringmap_v_ = DBusAdaptor::StringmapToVariant(ex_stringmap_);