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
3 // found in the LICENSE file.
5 #include "chromeos/dbus/fake_permission_broker_client.h"
7 #include "base/callback.h"
8 #include "base/logging.h"
9 #include "dbus/file_descriptor.h"
13 FakePermissionBrokerClient::FakePermissionBrokerClient() {}
15 FakePermissionBrokerClient::~FakePermissionBrokerClient() {}
17 void FakePermissionBrokerClient::Init(dbus::Bus
* bus
) {}
19 void FakePermissionBrokerClient::RequestPathAccess(
20 const std::string
& path
,
22 const ResultCallback
& callback
) {
26 void FakePermissionBrokerClient::RequestTcpPortAccess(
28 const std::string
& interface
,
29 const dbus::FileDescriptor
& lifeline_fd
,
30 const ResultCallback
& callback
) {
31 DCHECK(lifeline_fd
.is_valid());
35 void FakePermissionBrokerClient::RequestUdpPortAccess(
37 const std::string
& interface
,
38 const dbus::FileDescriptor
& lifeline_fd
,
39 const ResultCallback
& callback
) {
40 DCHECK(lifeline_fd
.is_valid());
44 void FakePermissionBrokerClient::ReleaseTcpPort(
46 const std::string
& interface
,
47 const ResultCallback
& callback
) {
51 void FakePermissionBrokerClient::ReleaseUdpPort(
53 const std::string
& interface
,
54 const ResultCallback
& callback
) {
58 } // namespace chromeos