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

Side by Side Diff: ui/base/ime/input_method_chromeos_unittest.cc

Issue 1136503003: Consolidate ui/events/keycodes/dom[34]/ into .../dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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 unified diff | Download patch
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/events/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/base/ime/input_method_chromeos.h" 5 #include "ui/base/ime/input_method_chromeos.h"
6 6
7 #include <X11/Xlib.h> 7 #include <X11/Xlib.h>
8 #undef Bool 8 #undef Bool
9 #undef FocusIn 9 #undef FocusIn
10 #undef FocusOut 10 #undef FocusOut
11 #undef None 11 #undef None
12 12
13 #include <cstring> 13 #include <cstring>
14 14
15 #include "base/i18n/char_iterator.h" 15 #include "base/i18n/char_iterator.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "ui/base/ime/chromeos/composition_text.h" 19 #include "ui/base/ime/chromeos/composition_text.h"
20 #include "ui/base/ime/chromeos/ime_bridge.h" 20 #include "ui/base/ime/chromeos/ime_bridge.h"
21 #include "ui/base/ime/chromeos/mock_ime_candidate_window_handler.h" 21 #include "ui/base/ime/chromeos/mock_ime_candidate_window_handler.h"
22 #include "ui/base/ime/chromeos/mock_ime_engine_handler.h" 22 #include "ui/base/ime/chromeos/mock_ime_engine_handler.h"
23 #include "ui/base/ime/dummy_text_input_client.h" 23 #include "ui/base/ime/dummy_text_input_client.h"
24 #include "ui/base/ime/input_method_delegate.h" 24 #include "ui/base/ime/input_method_delegate.h"
25 #include "ui/base/ime/text_input_client.h" 25 #include "ui/base/ime/text_input_client.h"
26 #include "ui/base/ime/text_input_focus_manager.h" 26 #include "ui/base/ime/text_input_focus_manager.h"
27 #include "ui/base/ui_base_switches_util.h" 27 #include "ui/base/ui_base_switches_util.h"
28 #include "ui/events/event.h" 28 #include "ui/events/event.h"
29 #include "ui/events/event_utils.h" 29 #include "ui/events/event_utils.h"
30 #include "ui/events/keycodes/dom3/dom_code.h" 30 #include "ui/events/keycodes/dom/dom_code.h"
31 #include "ui/events/keycodes/dom4/keycode_converter.h" 31 #include "ui/events/keycodes/dom/keycode_converter.h"
32 #include "ui/events/test/events_test_utils_x11.h" 32 #include "ui/events/test/events_test_utils_x11.h"
33 #include "ui/gfx/geometry/rect.h" 33 #include "ui/gfx/geometry/rect.h"
34 34
35 using base::UTF8ToUTF16; 35 using base::UTF8ToUTF16;
36 using base::UTF16ToUTF8; 36 using base::UTF16ToUTF8;
37 37
38 namespace ui { 38 namespace ui {
39 namespace { 39 namespace {
40 40
41 const base::string16 kSampleText = base::UTF8ToUTF16( 41 const base::string16 kSampleText = base::UTF8ToUTF16(
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 EXPECT_EQ(ui::VKEY_C, stored_event->key_code()); 1008 EXPECT_EQ(ui::VKEY_C, stored_event->key_code());
1009 EXPECT_EQ(kFlags, stored_event->flags()); 1009 EXPECT_EQ(kFlags, stored_event->flags());
1010 EXPECT_FALSE(ime_->process_key_event_post_ime_args().handled); 1010 EXPECT_FALSE(ime_->process_key_event_post_ime_args().handled);
1011 1011
1012 EXPECT_EQ(L'C', inserted_char_); 1012 EXPECT_EQ(L'C', inserted_char_);
1013 } 1013 }
1014 1014
1015 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593). 1015 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593).
1016 1016
1017 } // namespace ui 1017 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/events/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698