shill: tighten up constness of PropertyStore
BUG=chromium-os:20543
TEST=unittest
Change-Id: Ifa86f82a883b3c3ec61ce10f8d82564b9a036b04
Reviewed-on: http://gerrit.chromium.org/gerrit/7901
Tested-by: mukesh agrawal <quiche@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
diff --git a/wifi_unittest.cc b/wifi_unittest.cc
index adbb2e2..292d385 100644
--- a/wifi_unittest.cc
+++ b/wifi_unittest.cc
@@ -60,14 +60,14 @@
};
TEST_F(WiFiPropertyTest, Contains) {
- EXPECT_TRUE(device_->store()->Contains(flimflam::kNameProperty));
- EXPECT_FALSE(device_->store()->Contains(""));
+ EXPECT_TRUE(device_->store().Contains(flimflam::kNameProperty));
+ EXPECT_FALSE(device_->store().Contains(""));
}
TEST_F(WiFiPropertyTest, Dispatch) {
{
::DBus::Error error;
- EXPECT_TRUE(DBusAdaptor::DispatchOnType(device_->store(),
+ EXPECT_TRUE(DBusAdaptor::DispatchOnType(device_->mutable_store(),
flimflam::kBgscanMethodProperty,
PropertyStoreTest::kStringV,
&error));
@@ -75,14 +75,14 @@
{
::DBus::Error error;
EXPECT_TRUE(DBusAdaptor::DispatchOnType(
- device_->store(),
+ device_->mutable_store(),
flimflam::kBgscanSignalThresholdProperty,
PropertyStoreTest::kInt32V,
&error));
}
{
::DBus::Error error;
- EXPECT_TRUE(DBusAdaptor::DispatchOnType(device_->store(),
+ EXPECT_TRUE(DBusAdaptor::DispatchOnType(device_->mutable_store(),
flimflam::kScanIntervalProperty,
PropertyStoreTest::kUint16V,
&error));
@@ -90,7 +90,7 @@
// Ensure that an attempt to write a R/O property returns InvalidArgs error.
{
::DBus::Error error;
- EXPECT_FALSE(DBusAdaptor::DispatchOnType(device_->store(),
+ EXPECT_FALSE(DBusAdaptor::DispatchOnType(device_->mutable_store(),
flimflam::kScanningProperty,
PropertyStoreTest::kBoolV,
&error));