| 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" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 MOCK_METHOD1(Init, void(dbus::Bus* bus)); | 24 MOCK_METHOD1(Init, void(dbus::Bus* bus)); |
| 25 MOCK_METHOD2(CheckPathAccess, | 25 MOCK_METHOD2(CheckPathAccess, |
| 26 void(const std::string& path, const ResultCallback& callback)); | 26 void(const std::string& path, const ResultCallback& callback)); |
| 27 MOCK_METHOD3(OpenPath, | 27 MOCK_METHOD3(OpenPath, |
| 28 void(const std::string& path, | 28 void(const std::string& path, |
| 29 const OpenPathCallback& callback, | 29 const OpenPathCallback& callback, |
| 30 const ErrorCallback& error_callback)); | 30 const ErrorCallback& error_callback)); |
| 31 MOCK_METHOD4(RequestTcpPortAccess, | 31 MOCK_METHOD4(RequestTcpPortAccess, |
| 32 void(uint16_t port, | 32 void(uint16_t port, |
| 33 const std::string& interface, | 33 const std::string& interface, |
| 34 const dbus::FileDescriptor& lifeline_fd, | 34 int lifeline_fd, |
| 35 const ResultCallback& callback)); | 35 const ResultCallback& callback)); |
| 36 MOCK_METHOD4(RequestUdpPortAccess, | 36 MOCK_METHOD4(RequestUdpPortAccess, |
| 37 void(uint16_t port, | 37 void(uint16_t port, |
| 38 const std::string& interface, | 38 const std::string& interface, |
| 39 const dbus::FileDescriptor& lifeline_fd, | 39 int lifeline_fd, |
| 40 const ResultCallback& callback)); | 40 const ResultCallback& callback)); |
| 41 MOCK_METHOD3(ReleaseTcpPort, | 41 MOCK_METHOD3(ReleaseTcpPort, |
| 42 void(uint16_t port, | 42 void(uint16_t port, |
| 43 const std::string& interface, | 43 const std::string& interface, |
| 44 const ResultCallback& callback)); | 44 const ResultCallback& callback)); |
| 45 MOCK_METHOD3(ReleaseUdpPort, | 45 MOCK_METHOD3(ReleaseUdpPort, |
| 46 void(uint16_t port, | 46 void(uint16_t port, |
| 47 const std::string& interface, | 47 const std::string& interface, |
| 48 const ResultCallback& callback)); | 48 const ResultCallback& callback)); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace chromeos | 51 } // namespace chromeos |
| 52 | 52 |
| 53 #endif // CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_ | 53 #endif // CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_ |
| OLD | NEW |