shill: Create an asynchronous resolver object

Resolve DNS requests using the c-ares library but
using the shill event loop to handle events.

BUG=chromium-os:21664
TEST=New unit test

Change-Id: I99776b6cc74977d31198c67357c42a75f4047942
Reviewed-on: https://gerrit.chromium.org/gerrit/10328
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
diff --git a/mock_time.h b/mock_time.h
new file mode 100644
index 0000000..7199822
--- /dev/null
+++ b/mock_time.h
@@ -0,0 +1,28 @@
+// 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.
+
+#ifndef SHILL_MOCK_TIME_H_
+#define SHILL_MOCK_TIME_H_
+
+#include <base/basictypes.h>
+#include <gmock/gmock.h>
+
+#include "shill/shill_time.h"
+
+namespace shill {
+
+class MockTime : public Time {
+ public:
+  MockTime();
+  virtual ~MockTime();
+
+  MOCK_METHOD2(GetTimeOfDay, int(struct timeval *tv, struct timezone *tz));
+
+ private:
+  DISALLOW_COPY_AND_ASSIGN(MockTime);
+};
+
+}  // namespace shill
+
+#endif  // SHILL_MOCK_TIME_H_