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 #ifndef CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chromeos/dbus/permission_broker_client.h" | 10 #include "chromeos/dbus/permission_broker_client.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 class FakePermissionBrokerClient : public PermissionBrokerClient { | 14 class FakePermissionBrokerClient : public PermissionBrokerClient { |
15 public: | 15 public: |
16 FakePermissionBrokerClient(); | 16 FakePermissionBrokerClient(); |
17 virtual ~FakePermissionBrokerClient(); | 17 virtual ~FakePermissionBrokerClient(); |
18 | 18 |
19 virtual void Init(dbus::Bus* bus) OVERRIDE; | 19 virtual void Init(dbus::Bus* bus) override; |
20 virtual void RequestPathAccess(const std::string& path, | 20 virtual void RequestPathAccess(const std::string& path, |
21 int interface_id, | 21 int interface_id, |
22 const ResultCallback& callback) OVERRIDE; | 22 const ResultCallback& callback) override; |
23 virtual void RequestUsbAccess(const uint16_t vendor_id, | 23 virtual void RequestUsbAccess(const uint16_t vendor_id, |
24 const uint16_t product_id, | 24 const uint16_t product_id, |
25 int interface_id, | 25 int interface_id, |
26 const ResultCallback& callback) OVERRIDE; | 26 const ResultCallback& callback) override; |
27 private: | 27 private: |
28 DISALLOW_COPY_AND_ASSIGN(FakePermissionBrokerClient); | 28 DISALLOW_COPY_AND_ASSIGN(FakePermissionBrokerClient); |
29 }; | 29 }; |
30 | 30 |
31 } // namespace chromeos | 31 } // namespace chromeos |
32 | 32 |
33 #endif // CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_ | 33 #endif // CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_ |
OLD | NEW |