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

Side by Side Diff: ui/base/ime/input_method_base_unittest.cc

Issue 1234193002: Simplify InputMethodWin initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed test failures on Android. Created 5 years, 5 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
OLDNEW
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 #include "ui/base/ime/input_method_base.h" 5 #include "ui/base/ime/input_method_base.h"
6 6
7 #include "base/gtest_prod_util.h" 7 #include "base/gtest_prod_util.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 bool OnUntranslatedIMEMessage( 141 bool OnUntranslatedIMEMessage(
142 const base::NativeEvent& event, 142 const base::NativeEvent& event,
143 InputMethod::NativeEventResult* result) override { 143 InputMethod::NativeEventResult* result) override {
144 return false; 144 return false;
145 } 145 }
146 bool DispatchKeyEvent(const ui::KeyEvent&) override { return false; } 146 bool DispatchKeyEvent(const ui::KeyEvent&) override { return false; }
147 void OnCaretBoundsChanged(const TextInputClient* client) override {} 147 void OnCaretBoundsChanged(const TextInputClient* client) override {}
148 void CancelComposition(const TextInputClient* client) override {} 148 void CancelComposition(const TextInputClient* client) override {}
149 void OnInputLocaleChanged() override {} 149 void OnInputLocaleChanged() override {}
150 std::string GetInputLocale() override { return ""; } 150 std::string GetInputLocale() override { return ""; }
151 bool IsActive() override { return false; }
152 bool IsCandidatePopupOpen() const override { return false; } 151 bool IsCandidatePopupOpen() const override { return false; }
153 // Overriden from InputMethodBase. 152 // Overriden from InputMethodBase.
154 void OnWillChangeFocusedClient(TextInputClient* focused_before, 153 void OnWillChangeFocusedClient(TextInputClient* focused_before,
155 TextInputClient* focused) override { 154 TextInputClient* focused) override {
156 verifier_->OnWillChangeFocusedClient(focused_before, focused); 155 verifier_->OnWillChangeFocusedClient(focused_before, focused);
157 } 156 }
158 157
159 void OnDidChangeFocusedClient(TextInputClient* focused_before, 158 void OnDidChangeFocusedClient(TextInputClient* focused_before,
160 TextInputClient* focused) override { 159 TextInputClient* focused) override {
161 verifier_->OnDidChangeFocusedClient(focused_before, focused); 160 verifier_->OnDidChangeFocusedClient(focused_before, focused);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 input_method.OnFocus(); 294 input_method.OnFocus();
296 verifier.ExpectClientChange(&text_input_client, NULL); 295 verifier.ExpectClientChange(&text_input_client, NULL);
297 input_method.DetachTextInputClient(&text_input_client); 296 input_method.DetachTextInputClient(&text_input_client);
298 EXPECT_EQ(NULL, input_method.GetTextInputClient()); 297 EXPECT_EQ(NULL, input_method.GetTextInputClient());
299 verifier.Verify(); 298 verifier.Verify();
300 } 299 }
301 } 300 }
302 301
303 } // namespace 302 } // namespace
304 } // namespace ui 303 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698