shill: Add connection class

The connection class represents the snapshot of connectivity
state, including routing, address information and addressing.
It is able to apply itself as the "default" connection, by
setting routing table metrics and DNS resolver files.

BUG=chromium-os:19095
TEST=New unittest

Change-Id: I7021867ed8a8559db0e84f58a72692abaf105cad
Reviewed-on: http://gerrit.chromium.org/gerrit/5938
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
diff --git a/resolver_unittest.cc b/resolver_unittest.cc
index 1ef161d..41819f0 100644
--- a/resolver_unittest.cc
+++ b/resolver_unittest.cc
@@ -74,7 +74,7 @@
   properties.domain_search.push_back(kSearchDomain1);
   ipconfig->UpdateProperties(properties, true);
 
-  EXPECT_TRUE(resolver_->SetDNS(ipconfig));
+  EXPECT_TRUE(resolver_->SetDNSFromIPConfig(ipconfig));
   EXPECT_TRUE(file_util::PathExists(path_));
   EXPECT_EQ(kExpectedOutput, ReadFile());
 
@@ -90,7 +90,7 @@
   IPConfig::Properties properties;
   ipconfig->UpdateProperties(properties, true);
 
-  EXPECT_TRUE(resolver_->SetDNS(ipconfig));
+  EXPECT_TRUE(resolver_->SetDNSFromIPConfig(ipconfig));
   EXPECT_FALSE(file_util::PathExists(path_));
 }