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

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

Issue 2072213003: The PROCESSKEY event triggered by IME should not carry the real DomKey/DomCode to avoid wrongly pro… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed test. Created 4 years, 6 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/ime/input_method_chromeos.cc ('k') | no next file » | 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 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 DomCode::BRACKET_LEFT, 962 DomCode::BRACKET_LEFT,
963 0, 963 0,
964 DomKey::DeadKeyFromCombiningCharacter('^'), 964 DomKey::DeadKeyFromCombiningCharacter('^'),
965 EventTimeForNow()); 965 EventTimeForNow());
966 ime_->ProcessKeyEventPostIME(&eventA, true); 966 ime_->ProcessKeyEventPostIME(&eventA, true);
967 967
968 const ui::KeyEvent& key_event = dispatched_key_event_; 968 const ui::KeyEvent& key_event = dispatched_key_event_;
969 969
970 EXPECT_EQ(ET_KEY_PRESSED, key_event.type()); 970 EXPECT_EQ(ET_KEY_PRESSED, key_event.type());
971 EXPECT_EQ(VKEY_PROCESSKEY, key_event.key_code()); 971 EXPECT_EQ(VKEY_PROCESSKEY, key_event.key_code());
972 EXPECT_EQ(eventA.code(), key_event.code());
973 EXPECT_EQ(eventA.flags(), key_event.flags()); 972 EXPECT_EQ(eventA.flags(), key_event.flags());
974 EXPECT_EQ(eventA.GetDomKey(), key_event.GetDomKey());
975 EXPECT_EQ(eventA.time_stamp(), key_event.time_stamp()); 973 EXPECT_EQ(eventA.time_stamp(), key_event.time_stamp());
976 } 974 }
977 975
978 } // namespace ui 976 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698