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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/dbus/dbus_method_call_status.h" 5 #include "chromeos/dbus/fake_permission_broker_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/callback.h"
8 8
9 namespace chromeos { 9 namespace chromeos {
10 namespace {
11 10
12 void EmptyVoidDBusMethodCallbackBody(DBusMethodCallStatus result) { 11 FakePermissionBrokerClient::FakePermissionBrokerClient() {}
12
13 FakePermissionBrokerClient::~FakePermissionBrokerClient() {}
14
15 void FakePermissionBrokerClient::Init(dbus::Bus* bus) {}
16
17 void FakePermissionBrokerClient::RequestPathAccess(
18 const std::string& path,
19 int interface_id,
20 const ResultCallback& callback) {
21 callback.Run(false);
13 } 22 }
14 23
15 } // namespace 24 void FakePermissionBrokerClient::RequestUsbAccess(
16 25 const uint16_t vendor_id,
17 26 const uint16_t product_id,
18 VoidDBusMethodCallback EmptyVoidDBusMethodCallback() { 27 int interface_id,
19 return base::Bind(&EmptyVoidDBusMethodCallbackBody); 28 const ResultCallback& callback) {
29 callback.Run(false);
20 } 30 }
21 31
22 } // namespace chromeos 32 } // namespace chromeos
OLDNEW
« 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