Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: chromeos/ime/mock_component_extension_ime_manager_delegate.h

Issue 727143002: Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROMEOS_IME_MOCK_COMPONENT_EXTENSION_IME_MANAGER_DELEGATE_H_
6 #define CHROMEOS_IME_MOCK_COMPONENT_EXTENSION_IME_MANAGER_DELEGATE_H_
7
8 #include "chromeos/chromeos_export.h"
9 #include "chromeos/ime/component_extension_ime_manager.h"
10
11 namespace chromeos {
12 namespace input_method {
13
14 class CHROMEOS_EXPORT MockComponentExtIMEManagerDelegate
15 : public ComponentExtensionIMEManagerDelegate {
16 public:
17 MockComponentExtIMEManagerDelegate();
18 virtual ~MockComponentExtIMEManagerDelegate();
19
20 virtual std::vector<ComponentExtensionIME> ListIME() override;
21 virtual void Load(Profile*,
22 const std::string& extension_id,
23 const std::string& manifest,
24 const base::FilePath& path) override;
25 virtual void Unload(Profile*,
26 const std::string& extension_id,
27 const base::FilePath& path) override;
28
29 int load_call_count() const { return load_call_count_; }
30 int unload_call_count() const { return unload_call_count_; }
31 const std::string& last_loaded_extension_id() const {
32 return last_loaded_extension_id_;
33 }
34 const std::string& last_unloaded_extension_id() const {
35 return last_unloaded_extension_id_;
36 }
37 const base::FilePath& last_loaded_file_path() const {
38 return last_loaded_file_path_;
39 }
40 const base::FilePath& last_unloaded_file_path() const {
41 return last_unloaded_file_path_;
42 }
43 void set_ime_list(const std::vector<ComponentExtensionIME>& ime_list) {
44 ime_list_ = ime_list;
45 }
46
47 private:
48 int load_call_count_;
49 int unload_call_count_;
50 std::string last_loaded_extension_id_;
51 std::string last_unloaded_extension_id_;
52 base::FilePath last_loaded_file_path_;
53 base::FilePath last_unloaded_file_path_;
54
55 std::vector<ComponentExtensionIME> ime_list_;
56
57 DISALLOW_COPY_AND_ASSIGN(MockComponentExtIMEManagerDelegate);
58 };
59
60 } // namespace input_method
61 } // namespace chromeos
62
63 #endif // CHROMEOS_IME_MOCK_COMPONENT_EXTENSION_IME_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chromeos/ime/input_method_whitelist_unittest.cc ('k') | chromeos/ime/mock_component_extension_ime_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698