Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: chromeos/dbus/fake_shill_ipconfig_client.cc

Issue 267433005: Provide IPConfigs in networkingPrivate.GetProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Elim DHCP ONC types Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromeos/dbus/fake_shill_ipconfig_client.cc
diff --git a/chromeos/dbus/fake_shill_ipconfig_client.cc b/chromeos/dbus/fake_shill_ipconfig_client.cc
index 625d7b4d59d7aba152f7ec6341c778895f94e060..ccb2e5eee6f8223f34b88dd561da6c15cfb38b01 100644
--- a/chromeos/dbus/fake_shill_ipconfig_client.cc
+++ b/chromeos/dbus/fake_shill_ipconfig_client.cc
@@ -90,6 +90,21 @@ void FakeShillIPConfigClient::Remove(const dbus::ObjectPath& ipconfig_path,
FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS));
}
+ShillIPConfigClient::TestInterface*
+FakeShillIPConfigClient::GetTestInterface() {
+ return this;
+}
+
+// ShillIPConfigClient::TestInterface overrides
+
+void FakeShillIPConfigClient::AddIPConfig(
+ const std::string& ip_config_path,
+ const base::DictionaryValue& properties) {
+ ipconfigs_.SetWithoutPathExpansion(ip_config_path, properties.DeepCopy());
+}
+
+// Private methods
+
void FakeShillIPConfigClient::PassProperties(
const base::DictionaryValue* values,
const DictionaryValueCallback& callback) const {

Powered by Google App Engine
This is Rietveld 408576698