| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MOCK_PERMISSION_BROKER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "chromeos/dbus/permission_broker_client.h" | 10 #include "chromeos/dbus/permission_broker_client.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 | 12 |
| 13 namespace dbus { | |
| 14 class FileDescriptor; | |
| 15 } // namespace dbus | |
| 16 | |
| 17 namespace chromeos { | 13 namespace chromeos { |
| 18 | 14 |
| 19 class MockPermissionBrokerClient : public PermissionBrokerClient { | 15 class MockPermissionBrokerClient : public PermissionBrokerClient { |
| 20 public: | 16 public: |
| 21 MockPermissionBrokerClient(); | 17 MockPermissionBrokerClient(); |
| 22 ~MockPermissionBrokerClient() override; | 18 ~MockPermissionBrokerClient() override; |
| 23 | 19 |
| 24 MOCK_METHOD1(Init, void(dbus::Bus* bus)); | 20 MOCK_METHOD1(Init, void(dbus::Bus* bus)); |
| 25 MOCK_METHOD2(CheckPathAccess, | 21 MOCK_METHOD2(CheckPathAccess, |
| 26 void(const std::string& path, const ResultCallback& callback)); | 22 void(const std::string& path, const ResultCallback& callback)); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 44 const ResultCallback& callback)); | 40 const ResultCallback& callback)); |
| 45 MOCK_METHOD3(ReleaseUdpPort, | 41 MOCK_METHOD3(ReleaseUdpPort, |
| 46 void(uint16_t port, | 42 void(uint16_t port, |
| 47 const std::string& interface, | 43 const std::string& interface, |
| 48 const ResultCallback& callback)); | 44 const ResultCallback& callback)); |
| 49 }; | 45 }; |
| 50 | 46 |
| 51 } // namespace chromeos | 47 } // namespace chromeos |
| 52 | 48 |
| 53 #endif // CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_ | 49 #endif // CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_ |
| OLD | NEW |