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 #include "chromeos/dbus/flimflam_client_unittest_base.h" | 5 #include "chromeos/dbus/flimflam_client_unittest_base.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/values.h" |
8 #include "dbus/message.h" | 9 #include "dbus/message.h" |
9 #include "dbus/object_path.h" | 10 #include "dbus/object_path.h" |
10 #include "dbus/values_util.h" | 11 #include "dbus/values_util.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/cros_system_api/dbus/service_constants.h" | 14 #include "third_party/cros_system_api/dbus/service_constants.h" |
14 | 15 |
15 using ::testing::_; | 16 using ::testing::_; |
16 using ::testing::Invoke; | 17 using ::testing::Invoke; |
17 using ::testing::Return; | 18 using ::testing::Return; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 const dbus::ObjectProxy::ResponseCallback& response_callback) { | 174 const dbus::ObjectProxy::ResponseCallback& response_callback) { |
174 EXPECT_EQ(interface_name_, method_call->GetInterface()); | 175 EXPECT_EQ(interface_name_, method_call->GetInterface()); |
175 EXPECT_EQ(expected_method_name_, method_call->GetMember()); | 176 EXPECT_EQ(expected_method_name_, method_call->GetMember()); |
176 dbus::MessageReader reader(method_call); | 177 dbus::MessageReader reader(method_call); |
177 argument_checker_.Run(&reader); | 178 argument_checker_.Run(&reader); |
178 message_loop_.PostTask(FROM_HERE, | 179 message_loop_.PostTask(FROM_HERE, |
179 base::Bind(response_callback, response_)); | 180 base::Bind(response_callback, response_)); |
180 } | 181 } |
181 | 182 |
182 } // namespace chromeos | 183 } // namespace chromeos |
OLD | NEW |