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

Side by Side Diff: ash/system/ime_menu/ime_menu_tray_unittest.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « ash/system/ime_menu/ime_menu_tray.cc ('k') | ash/system/keyboard_brightness_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ash/system/ime_menu/ime_menu_tray.h" 5 #include "ash/system/ime_menu/ime_menu_tray.h"
6 6
7 #include "ash/common/accelerators/accelerator_controller.h" 7 #include "ash/accelerators/accelerator_controller.h"
8 #include "ash/common/accessibility_delegate.h" 8 #include "ash/accessibility_delegate.h"
9 #include "ash/common/test/test_system_tray_delegate.h"
10 #include "ash/common/wm_shell.h"
11 #include "ash/system/ime_menu/ime_list_view.h" 9 #include "ash/system/ime_menu/ime_list_view.h"
12 #include "ash/system/status_area_widget.h" 10 #include "ash/system/status_area_widget.h"
13 #include "ash/system/tray/ime_info.h" 11 #include "ash/system/tray/ime_info.h"
14 #include "ash/system/tray/system_tray_notifier.h" 12 #include "ash/system/tray/system_tray_notifier.h"
15 #include "ash/test/ash_test_base.h" 13 #include "ash/test/ash_test_base.h"
16 #include "ash/test/status_area_widget_test_helper.h" 14 #include "ash/test/status_area_widget_test_helper.h"
15 #include "ash/test/test_system_tray_delegate.h"
16 #include "ash/wm_shell.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "ui/accessibility/ax_node_data.h" 18 #include "ui/accessibility/ax_node_data.h"
19 #include "ui/base/ime/chromeos/input_method_manager.h" 19 #include "ui/base/ime/chromeos/input_method_manager.h"
20 #include "ui/base/ime/chromeos/mock_input_method_manager.h" 20 #include "ui/base/ime/chromeos/mock_input_method_manager.h"
21 #include "ui/base/ime/ime_bridge.h" 21 #include "ui/base/ime/ime_bridge.h"
22 #include "ui/base/ime/text_input_flags.h" 22 #include "ui/base/ime/text_input_flags.h"
23 #include "ui/events/event.h" 23 #include "ui/events/event.h"
24 #include "ui/views/controls/label.h" 24 #include "ui/views/controls/label.h"
25 25
26 using base::UTF8ToUTF16; 26 using base::UTF8ToUTF16;
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 input_method_manager = chromeos::input_method::InputMethodManager::Get(); 304 input_method_manager = chromeos::input_method::InputMethodManager::Get();
305 EXPECT_TRUE(input_method_manager && 305 EXPECT_TRUE(input_method_manager &&
306 input_method_manager->IsEmojiHandwritingVoiceOnImeMenuEnabled()); 306 input_method_manager->IsEmojiHandwritingVoiceOnImeMenuEnabled());
307 EXPECT_TRUE(GetTray()->ShouldShowEmojiHandwritingVoiceButtons()); 307 EXPECT_TRUE(GetTray()->ShouldShowEmojiHandwritingVoiceButtons());
308 308
309 FocusInInputContext(ui::TEXT_INPUT_TYPE_PASSWORD); 309 FocusInInputContext(ui::TEXT_INPUT_TYPE_PASSWORD);
310 EXPECT_FALSE(GetTray()->ShouldShowEmojiHandwritingVoiceButtons()); 310 EXPECT_FALSE(GetTray()->ShouldShowEmojiHandwritingVoiceButtons());
311 } 311 }
312 312
313 } // namespace ash 313 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/ime_menu/ime_menu_tray.cc ('k') | ash/system/keyboard_brightness_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698