Index: components/arc/ime/arc_ime_service_unittest.cc |
diff --git a/components/arc/ime/arc_ime_service_unittest.cc b/components/arc/ime/arc_ime_service_unittest.cc |
index 7b38a873dd91655925cc216a198377f26222a4de..0cbd888452e2f15e15afd2926a1da8e83d7475da 100644 |
--- a/components/arc/ime/arc_ime_service_unittest.cc |
+++ b/components/arc/ime/arc_ime_service_unittest.cc |
@@ -142,19 +142,12 @@ TEST_F(ArcImeServiceTest, ShowImeIfNeeded) { |
instance_->OnTextInputTypeChanged(ui::TEXT_INPUT_TYPE_NONE); |
ASSERT_EQ(0, fake_input_method_->count_show_ime_if_needed()); |
+ // Text input type change does not imply the show ime request. |
instance_->OnTextInputTypeChanged(ui::TEXT_INPUT_TYPE_TEXT); |
- EXPECT_EQ(1, fake_input_method_->count_show_ime_if_needed()); |
+ EXPECT_EQ(0, fake_input_method_->count_show_ime_if_needed()); |
- // The type is not changing, hence no call. |
- instance_->OnTextInputTypeChanged(ui::TEXT_INPUT_TYPE_TEXT); |
+ instance_->ShowImeIfNeeded(); |
EXPECT_EQ(1, fake_input_method_->count_show_ime_if_needed()); |
- |
- instance_->OnTextInputTypeChanged(ui::TEXT_INPUT_TYPE_SEARCH); |
- EXPECT_EQ(2, fake_input_method_->count_show_ime_if_needed()); |
- |
- // Change to NONE should not trigger the showing event. |
- instance_->OnTextInputTypeChanged(ui::TEXT_INPUT_TYPE_NONE); |
- EXPECT_EQ(2, fake_input_method_->count_show_ime_if_needed()); |
} |
TEST_F(ArcImeServiceTest, CancelComposition) { |