[shill] device, service objects need to register unique paths

BUG=chromium-os:15752
TEST=unit tests

Change-Id: I54a5b1fb3e156fb62ffff0bc49a411135c01a1d0
Reviewed-on: http://gerrit.chromium.org/gerrit/1897
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
diff --git a/mock_service.cc b/mock_service.cc
new file mode 100644
index 0000000..651fe2b
--- /dev/null
+++ b/mock_service.cc
@@ -0,0 +1,30 @@
+// 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_service.h"
+
+#include <string>
+
+#include <base/memory/ref_counted.h>
+#include <base/stringprintf.h>
+#include <gmock/gmock.h>
+
+namespace shill {
+
+class ControlInterface;
+class EventDispatcher;
+
+using ::testing::Return;
+using std::string;
+
+MockService::MockService(ControlInterface *control_interface,
+                         EventDispatcher *dispatcher,
+                         Device *device,
+                         const std::string& name)
+    : Service(control_interface, dispatcher, device, string("mock-" + name)) {
+}
+
+MockService::~MockService() {}
+
+}  // namespace shill