shill: Start a mockable GLib interface.

Use the interface to test DHCPConfig::Start.

BUG=chromium-os:16319,chromium-os:16013
TEST=unit test, tested on device

Change-Id: Ice6c65b0cc2ac2dd738cb6aacb426703cce48a3f
Reviewed-on: http://gerrit.chromium.org/gerrit/2356
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
diff --git a/glib.cc b/glib.cc
new file mode 100644
index 0000000..dc33470
--- /dev/null
+++ b/glib.cc
@@ -0,0 +1,27 @@
+// 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/glib.h"
+
+namespace shill {
+
+gboolean GLib::SpawnAsync(const gchar *working_directory,
+                          gchar **argv,
+                          gchar **envp,
+                          GSpawnFlags flags,
+                          GSpawnChildSetupFunc child_setup,
+                          gpointer user_data,
+                          GPid *child_pid,
+                          GError **error) {
+  return g_spawn_async(working_directory,
+                       argv,
+                       envp,
+                       flags,
+                       child_setup,
+                       user_data,
+                       child_pid,
+                       error);
+}
+
+}  // namespace shill