Add mock classes for Bus, ObjectProxy, and ExportedObject.

Also add mock_unittest.cc that demonstrates how to mock synchronos and
asynchronos D-Bus method calls.

BUG=90036
TEST=dbus_unittests

Review URL: http://codereview.chromium.org/7714030

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98188 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/dbus/mock_exported_object.cc b/dbus/mock_exported_object.cc
new file mode 100644
index 0000000..0fd4f2e
--- /dev/null
+++ b/dbus/mock_exported_object.cc
@@ -0,0 +1,18 @@
+// Copyright (c) 2011 The Chromium 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 "dbus/mock_exported_object.h"
+
+namespace dbus {
+
+MockExportedObject::MockExportedObject(Bus* bus,
+                                       const std::string& service_name,
+                                       const std::string& object_path)
+    : ExportedObject(bus, service_name, object_path) {
+}
+
+MockExportedObject::~MockExportedObject() {
+}
+
+}  // namespace dbus