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

Unified Diff: ash/system/ime_menu/ime_menu_tray_unittest.cc

Issue 2884873002: Post the task of disabling virtual keyboard (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « ash/system/ime_menu/ime_menu_tray.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/ime_menu/ime_menu_tray_unittest.cc
diff --git a/ash/system/ime_menu/ime_menu_tray_unittest.cc b/ash/system/ime_menu/ime_menu_tray_unittest.cc
index 4fefaa455b45f0724e0fdaa7ba16b0af94e2824f..10ea62d8572c3f07d4646f91cff47e1d5a02fb22 100644
--- a/ash/system/ime_menu/ime_menu_tray_unittest.cc
+++ b/ash/system/ime_menu/ime_menu_tray_unittest.cc
@@ -14,6 +14,7 @@
#include "ash/test/ash_test_base.h"
#include "ash/test/status_area_widget_test_helper.h"
#include "ash/test/test_system_tray_delegate.h"
+#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/base/ime/chromeos/input_method_manager.h"
@@ -297,7 +298,8 @@ TEST_F(ImeMenuTrayTest, ForceToShowEmojiKeyset) {
// Hides the keyboard.
GetTray()->OnKeyboardHidden();
- // The keyboard should still be disabled.
+ // The keyboard should still be disabled, which is a posted task.
+ base::RunLoop().RunUntilIdle();
EXPECT_FALSE(accessibility_delegate->IsVirtualKeyboardEnabled());
}
« no previous file with comments | « ash/system/ime_menu/ime_menu_tray.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698