shill: Add Portal Detection object

Add a utility object that will perform a repeated test of an
HTTP URL and return the result to a callback.

BUG=chromium-os:23318
TEST=New unit tests

Change-Id: I0449dbe51fb1dcef2ecd3bb88de1bcaf2950f749
Reviewed-on: https://gerrit.chromium.org/gerrit/15472
Commit-Ready: Paul Stewart <pstew@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
diff --git a/mock_http_request.cc b/mock_http_request.cc
new file mode 100644
index 0000000..75dd5d6
--- /dev/null
+++ b/mock_http_request.cc
@@ -0,0 +1,18 @@
+// Copyright (c) 2012 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_http_request.h"
+
+#include "shill/connection.h"
+
+namespace shill {
+
+MockHTTPRequest::MockHTTPRequest(ConnectionRefPtr connection)
+    : HTTPRequest(connection,
+                  reinterpret_cast<EventDispatcher *>(NULL),
+                  reinterpret_cast<Sockets *>(NULL)) {}
+
+MockHTTPRequest::~MockHTTPRequest() {}
+
+}  // namespace shill