| 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/services/service_provider_test_helper.h" | 5 #include "chromeos/dbus/services/service_provider_test_helper.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/mock_bus.h" | 9 #include "dbus/mock_bus.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" | |
| 11 #include "testing/gtest/include/gtest/gtest.h" | |
| 12 #include "third_party/cros_system_api/dbus/service_constants.h" | 10 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 13 | 11 |
| 14 using ::testing::_; | 12 using ::testing::_; |
| 15 using ::testing::AllOf; | 13 using ::testing::AllOf; |
| 16 using ::testing::Invoke; | 14 using ::testing::Invoke; |
| 17 using ::testing::ResultOf; | 15 using ::testing::ResultOf; |
| 18 using ::testing::Return; | 16 using ::testing::Return; |
| 19 using ::testing::Unused; | 17 using ::testing::Unused; |
| 20 | 18 |
| 21 namespace chromeos { | 19 namespace chromeos { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 153 |
| 156 void ServiceProviderTestHelper::OnResponse( | 154 void ServiceProviderTestHelper::OnResponse( |
| 157 scoped_ptr<dbus::Response> response) { | 155 scoped_ptr<dbus::Response> response) { |
| 158 response_ = response.Pass(); | 156 response_ = response.Pass(); |
| 159 response_received_ = true; | 157 response_received_ = true; |
| 160 if (message_loop_.is_running()) | 158 if (message_loop_.is_running()) |
| 161 message_loop_.Quit(); | 159 message_loop_.Quit(); |
| 162 } | 160 } |
| 163 | 161 |
| 164 } // namespace chromeos | 162 } // namespace chromeos |
| OLD | NEW |