OLD | NEW |
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/fake_permission_broker_client.h" | 5 #include "chromeos/dbus/fake_permission_broker_client.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 | 8 |
9 namespace chromeos { | 9 namespace chromeos { |
10 | 10 |
11 FakePermissionBrokerClient::FakePermissionBrokerClient() {} | 11 FakePermissionBrokerClient::FakePermissionBrokerClient() {} |
12 | 12 |
13 FakePermissionBrokerClient::~FakePermissionBrokerClient() {} | 13 FakePermissionBrokerClient::~FakePermissionBrokerClient() {} |
14 | 14 |
15 void FakePermissionBrokerClient::Init(dbus::Bus* bus) {} | 15 void FakePermissionBrokerClient::Init(dbus::Bus* bus) {} |
16 | 16 |
17 void FakePermissionBrokerClient::RequestPathAccess( | 17 void FakePermissionBrokerClient::RequestPathAccess( |
18 const std::string& path, | 18 const std::string& path, |
19 int interface_id, | 19 int interface_id, |
20 const ResultCallback& callback) { | 20 const ResultCallback& callback) { |
21 callback.Run(false); | 21 callback.Run(false); |
22 } | 22 } |
23 | 23 |
| 24 void FakePermissionBrokerClient::RequestTcpPortAccess( |
| 25 uint16 port, |
| 26 const std::string& interface, |
| 27 const dbus::FileDescriptor& lifeline_fd, |
| 28 const ResultCallback& callback) { |
| 29 callback.Run(false); |
| 30 } |
| 31 |
| 32 void FakePermissionBrokerClient::RequestUdpPortAccess( |
| 33 uint16 port, |
| 34 const std::string& interface, |
| 35 const dbus::FileDescriptor& lifeline_fd, |
| 36 const ResultCallback& callback) { |
| 37 callback.Run(false); |
| 38 } |
| 39 |
| 40 void FakePermissionBrokerClient::ReleaseTcpPort( |
| 41 uint16 port, |
| 42 const std::string& interface, |
| 43 const ResultCallback& callback) { |
| 44 callback.Run(false); |
| 45 } |
| 46 |
| 47 void FakePermissionBrokerClient::ReleaseUdpPort( |
| 48 uint16 port, |
| 49 const std::string& interface, |
| 50 const ResultCallback& callback) { |
| 51 callback.Run(false); |
| 52 } |
| 53 |
24 } // namespace chromeos | 54 } // namespace chromeos |
OLD | NEW |