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/ibus/ibus_engine_factory_service.h" | 5 #include "chromeos/dbus/ibus/ibus_engine_factory_service.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "chromeos/dbus/ibus/ibus_constants.h" | 10 #include "chromeos/dbus/ibus/ibus_constants.h" |
11 #include "dbus/message.h" | 11 #include "dbus/message.h" |
12 #include "dbus/mock_bus.h" | 12 #include "dbus/mock_bus.h" |
13 #include "dbus/mock_exported_object.h" | 13 #include "dbus/mock_exported_object.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 using ::testing::Invoke; | 17 using ::testing::Invoke; |
18 using ::testing::Return; | 18 using ::testing::Return; |
19 using ::testing::StrEq; | 19 using ::testing::StrEq; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // Unset the handler so expect not calling handler. | 223 // Unset the handler so expect not calling handler. |
224 service_->UnsetCreateEngineHandler(kSampleEngine); | 224 service_->UnsetCreateEngineHandler(kSampleEngine); |
225 method_exported_map_[ibus::engine_factory::kCreateEngineMethod].Run( | 225 method_exported_map_[ibus::engine_factory::kCreateEngineMethod].Run( |
226 &method_call, | 226 &method_call, |
227 base::Bind(&MockCreateEngineResponseSender::CheckCreateEngineResponse, | 227 base::Bind(&MockCreateEngineResponseSender::CheckCreateEngineResponse, |
228 base::Unretained(&response_sender))); | 228 base::Unretained(&response_sender))); |
229 message_loop_.RunUntilIdle(); | 229 message_loop_.RunUntilIdle(); |
230 } | 230 } |
231 | 231 |
232 } // namespace chromeos | 232 } // namespace chromeos |
OLD | NEW |