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

Side by Side Diff: chrome/browser/chromeos/input_method/mock_input_method_manager.h

Issue 14200032: Decouple l10n_util from InputMethodUtil. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: /MockInputMethodDelegate/FakeInputMethodDelegate/ Created 7 years, 8 months 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 | Annotate | Revision Log
OLDNEW
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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_
7 7
8 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 8 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
9 #include "chrome/browser/chromeos/input_method/input_method_util.h" 9 #include "chrome/browser/chromeos/input_method/input_method_util.h"
10 #include "chromeos/ime/fake_input_method_delegate.h"
10 #include "chromeos/ime/input_method_whitelist.h" 11 #include "chromeos/ime/input_method_whitelist.h"
11 #include "chromeos/ime/mock_input_method_delegate.h"
12 #include "chromeos/ime/mock_xkeyboard.h" 12 #include "chromeos/ime/mock_xkeyboard.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 namespace input_method { 15 namespace input_method {
16 16
17 // The mock implementation of InputMethodManager for testing. 17 // The mock implementation of InputMethodManager for testing.
18 class MockInputMethodManager : public InputMethodManager { 18 class MockInputMethodManager : public InputMethodManager {
19 public: 19 public:
20 MockInputMethodManager(); 20 MockInputMethodManager();
21 virtual ~MockInputMethodManager(); 21 virtual ~MockInputMethodManager();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // TODO(yusukes): Add more variables for counting the numbers of the API calls 75 // TODO(yusukes): Add more variables for counting the numbers of the API calls
76 int add_observer_count_; 76 int add_observer_count_;
77 int remove_observer_count_; 77 int remove_observer_count_;
78 78
79 private: 79 private:
80 // The value GetCurrentInputMethod().id() will return. 80 // The value GetCurrentInputMethod().id() will return.
81 std::string current_input_method_id_; 81 std::string current_input_method_id_;
82 82
83 InputMethodWhitelist whitelist_; 83 InputMethodWhitelist whitelist_;
84 MockInputMethodDelegate delegate_; // used by util_ 84 FakeInputMethodDelegate delegate_; // used by util_
85 InputMethodUtil util_; 85 InputMethodUtil util_;
86 MockXKeyboard xkeyboard_; 86 MockXKeyboard xkeyboard_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); 88 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager);
89 }; 89 };
90 90
91 } // namespace input_method 91 } // namespace input_method
92 } // namespace chromeos 92 } // namespace chromeos
93 93
94 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ 94 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698