[shill] Wire shill to dbus

Refactor necessary classes into their own headers and such as well.

BUG=chromium-os:15578
TEST=unit tests, shill --foreground on device

Change-Id: Ib9c5a0e9dab779ecc44c1d0144035f5a09e1086e
Reviewed-on: http://gerrit.chromium.org/gerrit/1307
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
diff --git a/mock_control.cc b/mock_control.cc
new file mode 100644
index 0000000..cd580f8
--- /dev/null
+++ b/mock_control.cc
@@ -0,0 +1,22 @@
+// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "shill/mock_adaptors.h"
+#include "shill/mock_control.h"
+
+namespace shill {
+
+ManagerAdaptorInterface *MockControl::CreateManagerAdaptor(Manager *manager) {
+  return new ManagerMockAdaptor();
+}
+
+ServiceAdaptorInterface *MockControl::CreateServiceAdaptor(Service *service) {
+  return new ServiceMockAdaptor();
+}
+
+DeviceAdaptorInterface *MockControl::CreateDeviceAdaptor(Device *device) {
+  return new DeviceMockAdaptor();
+}
+
+}  // namespace shill