shill: have CreateProfile and PushProfile stubs return syntactically
valid d-bus paths
BUG=None
TEST=WiFiManager
(tests still don't pass, but we get a little farther than before.)
Change-Id: I0fa4b80f0331c517c5100ca02a97b2fb2a5c3b30
Reviewed-on: http://gerrit.chromium.org/gerrit/6843
Tested-by: mukesh agrawal <quiche@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
diff --git a/manager_dbus_adaptor.cc b/manager_dbus_adaptor.cc
index e55e3a4..fa58416 100644
--- a/manager_dbus_adaptor.cc
+++ b/manager_dbus_adaptor.cc
@@ -79,16 +79,20 @@
::DBus::Path ManagerDBusAdaptor::CreateProfile(const string &name,
::DBus::Error &error) {
- return ::DBus::Path();
+ NOTIMPLEMENTED();
+ // TODO(quiche): implement this
+ return ::DBus::Path("/" + name);
}
void ManagerDBusAdaptor::RemoveProfile(const string &name,
::DBus::Error &error) {
}
-::DBus::Path ManagerDBusAdaptor::PushProfile(const std::string &,
+::DBus::Path ManagerDBusAdaptor::PushProfile(const std::string &name,
::DBus::Error &error) {
- return ::DBus::Path();
+ NOTIMPLEMENTED();
+ // TODO(quiche): implement this
+ return ::DBus::Path("/" + name);
}
void ManagerDBusAdaptor::PopProfile(const std::string &, ::DBus::Error &error) {