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_SHILL_CLIENT_UNITTEST_BASE_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_CLIENT_UNITTEST_BASE_H_ |
6 #define CHROMEOS_DBUS_SHILL_CLIENT_UNITTEST_BASE_H_ | 6 #define CHROMEOS_DBUS_SHILL_CLIENT_UNITTEST_BASE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "chromeos/dbus/dbus_method_call_status.h" | 13 #include "chromeos/dbus/dbus_method_call_status.h" |
14 #include "chromeos/dbus/shill_client_helper.h" | 14 #include "chromeos/dbus/shill_client_helper.h" |
15 #include "chromeos/dbus/shill_property_changed_observer.h" | 15 #include "chromeos/dbus/shill_property_changed_observer.h" |
16 #include "dbus/mock_bus.h" | 16 #include "dbus/mock_bus.h" |
17 #include "dbus/mock_object_proxy.h" | 17 #include "dbus/mock_object_proxy.h" |
18 #include "dbus/object_proxy.h" | 18 #include "dbus/object_proxy.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 using ::testing::MatcherInterface; | 21 using ::testing::MatcherInterface; |
22 using ::testing::MatchResultListener; | 22 using ::testing::MatchResultListener; |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 std::string expected_method_name_; | 229 std::string expected_method_name_; |
230 // The response which the mock object proxy returns. | 230 // The response which the mock object proxy returns. |
231 dbus::Response* response_; | 231 dbus::Response* response_; |
232 // A callback to intercept and check the method call arguments. | 232 // A callback to intercept and check the method call arguments. |
233 ArgumentCheckCallback argument_checker_; | 233 ArgumentCheckCallback argument_checker_; |
234 }; | 234 }; |
235 | 235 |
236 } // namespace chromeos | 236 } // namespace chromeos |
237 | 237 |
238 #endif // CHROMEOS_DBUS_SHILL_CLIENT_UNITTEST_BASE_H_ | 238 #endif // CHROMEOS_DBUS_SHILL_CLIENT_UNITTEST_BASE_H_ |
OLD | NEW |