OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_IME_MOCK_COMPONENT_EXTENSION_IME_MANAGER_DELEGATE_H_ | 5 #ifndef CHROMEOS_IME_MOCK_COMPONENT_EXTENSION_IME_MANAGER_DELEGATE_H_ |
6 #define CHROMEOS_IME_MOCK_COMPONENT_EXTENSION_IME_MANAGER_DELEGATE_H_ | 6 #define CHROMEOS_IME_MOCK_COMPONENT_EXTENSION_IME_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include "chromeos/chromeos_export.h" | 8 #include "chromeos/chromeos_export.h" |
9 #include "chromeos/ime/component_extension_ime_manager.h" | 9 #include "chromeos/ime/component_extension_ime_manager.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 namespace input_method { | 12 namespace input_method { |
13 | 13 |
14 class CHROMEOS_EXPORT MockComponentExtIMEManagerDelegate | 14 class CHROMEOS_EXPORT MockComponentExtIMEManagerDelegate |
15 : public ComponentExtensionIMEManagerDelegate { | 15 : public ComponentExtensionIMEManagerDelegate { |
16 public: | 16 public: |
17 MockComponentExtIMEManagerDelegate(); | 17 MockComponentExtIMEManagerDelegate(); |
18 virtual ~MockComponentExtIMEManagerDelegate(); | 18 virtual ~MockComponentExtIMEManagerDelegate(); |
19 | 19 |
20 virtual std::vector<ComponentExtensionIME> ListIME() OVERRIDE; | 20 virtual std::vector<ComponentExtensionIME> ListIME() OVERRIDE; |
21 virtual bool Load(const std::string& extension_id, | 21 virtual bool Load(Profile*, |
| 22 const std::string& extension_id, |
22 const std::string& manifest, | 23 const std::string& manifest, |
23 const base::FilePath& path) OVERRIDE; | 24 const base::FilePath& path) OVERRIDE; |
24 virtual void Unload(const std::string& extension_id, | 25 virtual void Unload(Profile*, |
| 26 const std::string& extension_id, |
25 const base::FilePath& path) OVERRIDE; | 27 const base::FilePath& path) OVERRIDE; |
26 | 28 |
27 int load_call_count() const { return load_call_count_; } | 29 int load_call_count() const { return load_call_count_; } |
28 int unload_call_count() const { return unload_call_count_; } | 30 int unload_call_count() const { return unload_call_count_; } |
29 const std::string& last_loaded_extension_id() const { | 31 const std::string& last_loaded_extension_id() const { |
30 return last_loaded_extension_id_; | 32 return last_loaded_extension_id_; |
31 } | 33 } |
32 const std::string& last_unloaded_extension_id() const { | 34 const std::string& last_unloaded_extension_id() const { |
33 return last_unloaded_extension_id_; | 35 return last_unloaded_extension_id_; |
34 } | 36 } |
(...skipping 17 matching lines...) Expand all Loading... |
52 | 54 |
53 std::vector<ComponentExtensionIME> ime_list_; | 55 std::vector<ComponentExtensionIME> ime_list_; |
54 | 56 |
55 DISALLOW_COPY_AND_ASSIGN(MockComponentExtIMEManagerDelegate); | 57 DISALLOW_COPY_AND_ASSIGN(MockComponentExtIMEManagerDelegate); |
56 }; | 58 }; |
57 | 59 |
58 } // namespace input_method | 60 } // namespace input_method |
59 } // namespace chromeos | 61 } // namespace chromeos |
60 | 62 |
61 #endif // CHROMEOS_IME_MOCK_COMPONENT_EXTENSION_IME_MANAGER_DELEGATE_H_ | 63 #endif // CHROMEOS_IME_MOCK_COMPONENT_EXTENSION_IME_MANAGER_DELEGATE_H_ |
OLD | NEW |