shill: acquire ip addresses for wifi (via dhcp), and signal when
the service is ready

BUG=chromium-os:20191
TEST=unittest, network_WiFiManager/000_SSID_Length_Limit

note: with this CL, 000_SSID_Length_Limit connects to the
open network, but fails on the hidden network. hidden network
support requires shill to implement Manager.GetService.

Change-Id: I71d1634fb3fc48de36fd2bf828969bfe0b3a46f6
Reviewed-on: http://gerrit.chromium.org/gerrit/7466
Tested-by: mukesh agrawal <quiche@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
diff --git a/service_unittest.cc b/service_unittest.cc
index f90f162..7d7d4fb 100644
--- a/service_unittest.cc
+++ b/service_unittest.cc
@@ -233,6 +233,10 @@
   EXPECT_EQ(Service::kFailureUnknown, service_->failure());
 
   ServiceConstRefPtr service_ref(service_);
+
+  // TODO(quiche): make this EXPECT_CALL work (crosbug.com/20154)
+  // EXPECT_CALL(*dynamic_cast<ServiceMockAdaptor *>(service_->adaptor_.get()),
+  //     EmitStringChanged(flimflam::kStateProperty, _));
   EXPECT_CALL(mock_manager_, UpdateService(service_ref));
   service_->SetState(Service::kStateConnected);
   // A second state change shouldn't cause another update