Commit d93bc5e4 authored by Yuichiro Hanada's avatar Yuichiro Hanada Committed by Commit Bot

Fix ArcInputMethodManagerServiceTest.DisableFallbackVirtualKeyboard in single process mash.

Bug: 910240
Test: unit_tests --gtest_filter=*ArcInput* --enable-features=SingleProcessMash
Change-Id: I1e836b6743026c901f1f328d96213d2a3eeb3c24
Reviewed-on: https://chromium-review.googlesource.com/c/1358292Reviewed-by: default avatarTetsui Ohkubo <tetsui@chromium.org>
Commit-Queue: Yuichiro Hanada <yhanada@chromium.org>
Cr-Commit-Position: refs/heads/master@{#613026}
parent b24b87a7
......@@ -927,19 +927,22 @@ TEST_F(ArcInputMethodManagerServiceTest, DisableFallbackVirtualKeyboard) {
client->SetEnableFlag(keyboard::mojom::KeyboardEnableFlag::kTouchEnabled);
client->FlushForTesting();
base::RunLoop().RunUntilIdle(); // Allow observers to fire and process.
ASSERT_TRUE(client->is_keyboard_enabled());
ASSERT_FALSE(client->IsEnableFlagSet(
keyboard::mojom::KeyboardEnableFlag::kAndroidDisabled));
// It's disabled when the ARC IME is activated.
imm()->state()->SetActiveInputMethod(arc_ime_id);
service()->InputMethodChanged(imm(), profile(), false);
client->FlushForTesting();
EXPECT_FALSE(client->is_keyboard_enabled());
EXPECT_TRUE(client->IsEnableFlagSet(
keyboard::mojom::KeyboardEnableFlag::kAndroidDisabled));
// It's re-enabled when the ARC IME is deactivated.
imm()->state()->SetActiveInputMethod(component_extension_ime_id);
service()->InputMethodChanged(imm(), profile(), false);
client->FlushForTesting();
EXPECT_TRUE(client->is_keyboard_enabled());
EXPECT_FALSE(client->IsEnableFlagSet(
keyboard::mojom::KeyboardEnableFlag::kAndroidDisabled));
}
TEST_F(ArcInputMethodManagerServiceTest, ShowVirtualKeyboard) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment