Home | History | Annotate | Download | only in dbus
      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.
      4 
      5 #include "chromeos/dbus/fake_permission_broker_client.h"
      6 
      7 #include "base/callback.h"
      8 
      9 namespace chromeos {
     10 
     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);
     22 }
     23 
     24 void FakePermissionBrokerClient::RequestUsbAccess(
     25     const uint16_t vendor_id,
     26     const uint16_t product_id,
     27     int interface_id,
     28     const ResultCallback& callback) {
     29   callback.Run(false);
     30 }
     31 
     32 }  // namespace chromeos
     33