Revert of Revert of Fix text clipping in CompositorFrameTime Display (patchset #1...
[chromium-blink-merge.git] / chromeos / dbus / fake_permission_broker_client.cc
blobc4b265c16daa4bb6ee4bd9ce7baa6161e5e4fb6b
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"
11 namespace chromeos {
13 FakePermissionBrokerClient::FakePermissionBrokerClient() {}
15 FakePermissionBrokerClient::~FakePermissionBrokerClient() {}
17 void FakePermissionBrokerClient::Init(dbus::Bus* bus) {}
19 void FakePermissionBrokerClient::RequestPathAccess(
20 const std::string& path,
21 int interface_id,
22 const ResultCallback& callback) {
23 callback.Run(false);
26 void FakePermissionBrokerClient::RequestTcpPortAccess(
27 uint16 port,
28 const std::string& interface,
29 const dbus::FileDescriptor& lifeline_fd,
30 const ResultCallback& callback) {
31 DCHECK(lifeline_fd.is_valid());
32 callback.Run(true);
35 void FakePermissionBrokerClient::RequestUdpPortAccess(
36 uint16 port,
37 const std::string& interface,
38 const dbus::FileDescriptor& lifeline_fd,
39 const ResultCallback& callback) {
40 DCHECK(lifeline_fd.is_valid());
41 callback.Run(true);
44 void FakePermissionBrokerClient::ReleaseTcpPort(
45 uint16 port,
46 const std::string& interface,
47 const ResultCallback& callback) {
48 callback.Run(true);
51 void FakePermissionBrokerClient::ReleaseUdpPort(
52 uint16 port,
53 const std::string& interface,
54 const ResultCallback& callback) {
55 callback.Run(true);
58 } // namespace chromeos