OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 DBUS_MOCK_OBJECT_PROXY_H_ | 5 #ifndef DBUS_MOCK_OBJECT_PROXY_H_ |
6 #define DBUS_MOCK_OBJECT_PROXY_H_ | 6 #define DBUS_MOCK_OBJECT_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "dbus/message.h" | 10 #include "dbus/message.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 ResponseCallback callback)); | 49 ResponseCallback callback)); |
50 MOCK_METHOD4(CallMethodWithErrorCallback, void(MethodCall* method_call, | 50 MOCK_METHOD4(CallMethodWithErrorCallback, void(MethodCall* method_call, |
51 int timeout_ms, | 51 int timeout_ms, |
52 ResponseCallback callback, | 52 ResponseCallback callback, |
53 ErrorCallback error_callback)); | 53 ErrorCallback error_callback)); |
54 MOCK_METHOD4(ConnectToSignal, | 54 MOCK_METHOD4(ConnectToSignal, |
55 void(const std::string& interface_name, | 55 void(const std::string& interface_name, |
56 const std::string& signal_name, | 56 const std::string& signal_name, |
57 SignalCallback signal_callback, | 57 SignalCallback signal_callback, |
58 OnConnectedCallback on_connected_callback)); | 58 OnConnectedCallback on_connected_callback)); |
| 59 MOCK_METHOD1(SetNameOwnerChangedCallback, |
| 60 void(NameOwnerChangedCallback callback)); |
59 MOCK_METHOD1(WaitForServiceToBeAvailable, | 61 MOCK_METHOD1(WaitForServiceToBeAvailable, |
60 void(WaitForServiceToBeAvailableCallback callback)); | 62 void(WaitForServiceToBeAvailableCallback callback)); |
61 MOCK_METHOD0(Detach, void()); | 63 MOCK_METHOD0(Detach, void()); |
62 | 64 |
63 protected: | 65 protected: |
64 ~MockObjectProxy() override; | 66 ~MockObjectProxy() override; |
65 }; | 67 }; |
66 | 68 |
67 } // namespace dbus | 69 } // namespace dbus |
68 | 70 |
69 #endif // DBUS_MOCK_OBJECT_PROXY_H_ | 71 #endif // DBUS_MOCK_OBJECT_PROXY_H_ |
OLD | NEW |