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_IBUS_MOCK_IBUS_ENGINE_FACTORY_SERVICE_H_ | 5 #ifndef CHROMEOS_DBUS_IBUS_MOCK_IBUS_ENGINE_FACTORY_SERVICE_H_ |
6 #define CHROMEOS_DBUS_IBUS_MOCK_IBUS_ENGINE_FACTORY_SERVICE_H_ | 6 #define CHROMEOS_DBUS_IBUS_MOCK_IBUS_ENGINE_FACTORY_SERVICE_H_ |
7 | 7 |
| 8 #include <string> |
8 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
9 #include "chromeos/dbus/ibus/ibus_engine_factory_service.h" | 10 #include "chromeos/dbus/ibus/ibus_engine_factory_service.h" |
10 | 11 |
11 namespace chromeos { | 12 namespace chromeos { |
12 class MockIBusEngineFactoryService : public IBusEngineFactoryService { | 13 class MockIBusEngineFactoryService : public IBusEngineFactoryService { |
13 public: | 14 public: |
14 MockIBusEngineFactoryService(); | 15 MockIBusEngineFactoryService(); |
15 virtual ~MockIBusEngineFactoryService(); | 16 virtual ~MockIBusEngineFactoryService(); |
16 | 17 |
17 virtual void SetCreateEngineHandler( | 18 virtual void SetCreateEngineHandler( |
| 19 const std::string& engine_id, |
18 const CreateEngineHandler& create_engine_handler) OVERRIDE; | 20 const CreateEngineHandler& create_engine_handler) OVERRIDE; |
19 virtual void UnsetCreateEngineHandler() OVERRIDE; | 21 virtual void UnsetCreateEngineHandler( |
| 22 const std::string& engine_id) OVERRIDE; |
20 | 23 |
21 DISALLOW_COPY_AND_ASSIGN(MockIBusEngineFactoryService); | 24 DISALLOW_COPY_AND_ASSIGN(MockIBusEngineFactoryService); |
22 }; | 25 }; |
23 | 26 |
24 } // namespace chromeos | 27 } // namespace chromeos |
25 | 28 |
26 #endif // CHROMEOS_DBUS_IBUS_MOCK_IBUS_ENGINE_FACTORY_SERVICE_H_ | 29 #endif // CHROMEOS_DBUS_IBUS_MOCK_IBUS_ENGINE_FACTORY_SERVICE_H_ |
OLD | NEW |