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 "chrome/browser/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 "dbus/message.h" | 8 #include "dbus/message.h" |
9 #include "dbus/object_path.h" | 9 #include "dbus/object_path.h" |
10 #include "dbus/values_util.h" | 10 #include "dbus/values_util.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/cros_system_api/dbus/service_constants.h" | 13 #include "third_party/cros_system_api/dbus/service_constants.h" |
14 | 14 |
15 using ::testing::_; | 15 using ::testing::_; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 dbus::ObjectProxy::ResponseCallback response_callback) { | 164 dbus::ObjectProxy::ResponseCallback response_callback) { |
165 EXPECT_EQ(interface_name_, method_call->GetInterface()); | 165 EXPECT_EQ(interface_name_, method_call->GetInterface()); |
166 EXPECT_EQ(expected_method_name_, method_call->GetMember()); | 166 EXPECT_EQ(expected_method_name_, method_call->GetMember()); |
167 dbus::MessageReader reader(method_call); | 167 dbus::MessageReader reader(method_call); |
168 argument_checker_.Run(&reader); | 168 argument_checker_.Run(&reader); |
169 message_loop_.PostTask(FROM_HERE, | 169 message_loop_.PostTask(FROM_HERE, |
170 base::Bind(response_callback, response_)); | 170 base::Bind(response_callback, response_)); |
171 } | 171 } |
172 | 172 |
173 } // namespace chromeos | 173 } // namespace chromeos |
OLD | NEW |