Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: chromeos/dbus/fake_permission_broker_client.cc

Issue 91373004: Move DBusClient stub implementations into separate files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/fake_permission_broker_client.h ('k') | chromeos/dbus/fake_sms_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_permission_broker_client.cc
diff --git a/chromeos/dbus/dbus_method_call_status.cc b/chromeos/dbus/fake_permission_broker_client.cc
similarity index 26%
copy from chromeos/dbus/dbus_method_call_status.cc
copy to chromeos/dbus/fake_permission_broker_client.cc
index 2cd0d861b1b87f978f5f45d4e2f8f953f644114e..2570fa3022cb982e4cce82cc2d6b6a9914d426b3 100644
--- a/chromeos/dbus/dbus_method_call_status.cc
+++ b/chromeos/dbus/fake_permission_broker_client.cc
@@ -2,21 +2,31 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chromeos/dbus/dbus_method_call_status.h"
+#include "chromeos/dbus/fake_permission_broker_client.h"
-#include "base/bind.h"
+#include "base/callback.h"
namespace chromeos {
-namespace {
-void EmptyVoidDBusMethodCallbackBody(DBusMethodCallStatus result) {
-}
+FakePermissionBrokerClient::FakePermissionBrokerClient() {}
+
+FakePermissionBrokerClient::~FakePermissionBrokerClient() {}
-} // namespace
+void FakePermissionBrokerClient::Init(dbus::Bus* bus) {}
+void FakePermissionBrokerClient::RequestPathAccess(
+ const std::string& path,
+ int interface_id,
+ const ResultCallback& callback) {
+ callback.Run(false);
+}
-VoidDBusMethodCallback EmptyVoidDBusMethodCallback() {
- return base::Bind(&EmptyVoidDBusMethodCallbackBody);
+void FakePermissionBrokerClient::RequestUsbAccess(
+ const uint16_t vendor_id,
+ const uint16_t product_id,
+ int interface_id,
+ const ResultCallback& callback) {
+ callback.Run(false);
}
} // namespace chromeos
« no previous file with comments | « chromeos/dbus/fake_permission_broker_client.h ('k') | chromeos/dbus/fake_sms_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698