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 CHROMEOS_DBUS_SERVICES_SERVICE_PROVIDER_TEST_HELPER_H_ | 5 #ifndef CHROMEOS_DBUS_SERVICES_SERVICE_PROVIDER_TEST_HELPER_H_ |
6 #define CHROMEOS_DBUS_SERVICES_SERVICE_PROVIDER_TEST_HELPER_H_ | 6 #define CHROMEOS_DBUS_SERVICES_SERVICE_PROVIDER_TEST_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 void MockSendSignal(dbus::Signal* signal); | 81 void MockSendSignal(dbus::Signal* signal); |
82 | 82 |
83 // Receives a response and makes it available to MockCallMethodAndBlock(). | 83 // Receives a response and makes it available to MockCallMethodAndBlock(). |
84 void OnResponse(scoped_ptr<dbus::Response> response); | 84 void OnResponse(scoped_ptr<dbus::Response> response); |
85 | 85 |
86 scoped_refptr<dbus::MockBus> mock_bus_; | 86 scoped_refptr<dbus::MockBus> mock_bus_; |
87 scoped_refptr<dbus::MockExportedObject> mock_exported_object_; | 87 scoped_refptr<dbus::MockExportedObject> mock_exported_object_; |
88 scoped_refptr<dbus::MockObjectProxy> mock_object_proxy_; | 88 scoped_refptr<dbus::MockObjectProxy> mock_object_proxy_; |
89 dbus::ExportedObject::MethodCallCallback method_callback_; | 89 dbus::ExportedObject::MethodCallCallback method_callback_; |
90 dbus::ObjectProxy::SignalCallback on_signal_callback_; | 90 dbus::ObjectProxy::SignalCallback on_signal_callback_; |
91 base::MessageLoop message_loop_; | 91 scoped_ptr<base::MessageLoop> message_loop_; |
92 bool response_received_; | 92 bool response_received_; |
93 scoped_ptr<dbus::Response> response_; | 93 scoped_ptr<dbus::Response> response_; |
94 }; | 94 }; |
95 | 95 |
96 } // namespace chromeos | 96 } // namespace chromeos |
97 | 97 |
98 #endif // CHROMEOS_DBUS_SERVICES_SERVICE_PROVIDER_TEST_HELPER_H_ | 98 #endif // CHROMEOS_DBUS_SERVICES_SERVICE_PROVIDER_TEST_HELPER_H_ |
OLD | NEW |