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

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

Issue 2926553004: Remove trailing semicolon at the end of a method definition (Closed)
Patch Set: rebase Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_auralinux.h" 5 #include "ui/base/ime/input_method_auralinux.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 return std::unique_ptr<ui::LinuxInputMethodContext>( 147 return std::unique_ptr<ui::LinuxInputMethodContext>(
148 new LinuxInputMethodContextForTesting(delegate)); 148 new LinuxInputMethodContextForTesting(delegate));
149 }; 149 };
150 150
151 private: 151 private:
152 DISALLOW_COPY_AND_ASSIGN(LinuxInputMethodContextFactoryForTesting); 152 DISALLOW_COPY_AND_ASSIGN(LinuxInputMethodContextFactoryForTesting);
153 }; 153 };
154 154
155 class InputMethodDelegateForTesting : public internal::InputMethodDelegate { 155 class InputMethodDelegateForTesting : public internal::InputMethodDelegate {
156 public: 156 public:
157 InputMethodDelegateForTesting(){}; 157 InputMethodDelegateForTesting() {}
158 ~InputMethodDelegateForTesting() override{}; 158 ~InputMethodDelegateForTesting() override {}
159 159
160 ui::EventDispatchDetails DispatchKeyEventPostIME( 160 ui::EventDispatchDetails DispatchKeyEventPostIME(
161 ui::KeyEvent* key_event) override { 161 ui::KeyEvent* key_event) override {
162 std::string action; 162 std::string action;
163 switch (key_event->type()) { 163 switch (key_event->type()) {
164 case ET_KEY_PRESSED: 164 case ET_KEY_PRESSED:
165 action = "keydown:"; 165 action = "keydown:";
166 break; 166 break;
167 case ET_KEY_RELEASED: 167 case ET_KEY_RELEASED:
168 action = "keyup:"; 168 action = "keyup:";
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 input_method_auralinux_->DispatchKeyEvent(&key); 755 input_method_auralinux_->DispatchKeyEvent(&key);
756 756
757 test_result_->ExpectAction("textinput:c"); 757 test_result_->ExpectAction("textinput:c");
758 test_result_->ExpectAction("keydown:65"); 758 test_result_->ExpectAction("keydown:65");
759 test_result_->ExpectAction("keypress:65"); 759 test_result_->ExpectAction("keypress:65");
760 test_result_->Verify(); 760 test_result_->Verify();
761 } 761 }
762 762
763 } // namespace 763 } // namespace
764 } // namespace ui 764 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_auralinux.h ('k') | ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698