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

Unified Diff: ui/base/ime/mock_ime_input_context_handler.cc

Issue 1780523006: Add tests for input.ime.* APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/ime/mock_ime_input_context_handler.cc
diff --git a/ui/base/ime/chromeos/mock_ime_input_context_handler.cc b/ui/base/ime/mock_ime_input_context_handler.cc
similarity index 83%
rename from ui/base/ime/chromeos/mock_ime_input_context_handler.cc
rename to ui/base/ime/mock_ime_input_context_handler.cc
index e4decfde3550b98d93fc15e42ba34f0ba0e154f7..1d1e8c7649a58b5bcadb54e20a4c95621c74fdb1 100644
--- a/ui/base/ime/chromeos/mock_ime_input_context_handler.cc
+++ b/ui/base/ime/mock_ime_input_context_handler.cc
@@ -2,20 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/base/ime/chromeos/mock_ime_input_context_handler.h"
+#include "ui/base/ime/mock_ime_input_context_handler.h"
#include "ui/base/ime/composition_text.h"
-namespace chromeos {
+namespace ui {
MockIMEInputContextHandler::MockIMEInputContextHandler()
: commit_text_call_count_(0),
update_preedit_text_call_count_(0),
- delete_surrounding_text_call_count_(0) {
-}
+ delete_surrounding_text_call_count_(0) {}
-MockIMEInputContextHandler::~MockIMEInputContextHandler() {
-}
+MockIMEInputContextHandler::~MockIMEInputContextHandler() {}
void MockIMEInputContextHandler::CommitText(const std::string& text) {
++commit_text_call_count_;
@@ -23,7 +21,7 @@ void MockIMEInputContextHandler::CommitText(const std::string& text) {
}
void MockIMEInputContextHandler::UpdateCompositionText(
- const ui::CompositionText& text,
+ const CompositionText& text,
uint32_t cursor_pos,
bool visible) {
++update_preedit_text_call_count_;
@@ -46,4 +44,4 @@ void MockIMEInputContextHandler::Reset() {
last_commit_text_.clear();
}
-} // namespace chromeos
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698