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

Side by Side Diff: ui/events/ozone/evdev/tablet_event_converter_evdev_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 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/events/ozone/evdev/tablet_event_converter_evdev.h" 5 #include "ui/events/ozone/evdev/tablet_event_converter_evdev.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <linux/input.h> 9 #include <linux/input.h>
10 #include <unistd.h> 10 #include <unistd.h>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 namespace ui { 109 namespace ui {
110 110
111 class MockTabletEventConverterEvdev : public TabletEventConverterEvdev { 111 class MockTabletEventConverterEvdev : public TabletEventConverterEvdev {
112 public: 112 public:
113 MockTabletEventConverterEvdev(ScopedInputDevice fd, 113 MockTabletEventConverterEvdev(ScopedInputDevice fd,
114 base::FilePath path, 114 base::FilePath path,
115 CursorDelegateEvdev* cursor, 115 CursorDelegateEvdev* cursor,
116 const EventDeviceInfo& devinfo, 116 const EventDeviceInfo& devinfo,
117 DeviceEventDispatcherEvdev* dispatcher); 117 DeviceEventDispatcherEvdev* dispatcher);
118 ~MockTabletEventConverterEvdev() override {}; 118 ~MockTabletEventConverterEvdev() override {}
119 119
120 void ConfigureReadMock(struct input_event* queue, 120 void ConfigureReadMock(struct input_event* queue,
121 long read_this_many, 121 long read_this_many,
122 long queue_index); 122 long queue_index);
123 123
124 // Actually dispatch the event reader code. 124 // Actually dispatch the event reader code.
125 void ReadNow() { 125 void ReadNow() {
126 OnFileCanReadWithoutBlocking(read_pipe_); 126 OnFileCanReadWithoutBlocking(read_pipe_);
127 base::RunLoop().RunUntilIdle(); 127 base::RunLoop().RunUntilIdle();
128 } 128 }
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 586
587 event = dispatched_event(1); 587 event = dispatched_event(1);
588 EXPECT_EQ(ui::ET_MOUSE_PRESSED, event->type()); 588 EXPECT_EQ(ui::ET_MOUSE_PRESSED, event->type());
589 EXPECT_EQ(true, event->IsRightMouseButton()); 589 EXPECT_EQ(true, event->IsRightMouseButton());
590 590
591 event = dispatched_event(2); 591 event = dispatched_event(2);
592 EXPECT_EQ(ui::ET_MOUSE_RELEASED, event->type()); 592 EXPECT_EQ(ui::ET_MOUSE_RELEASED, event->type());
593 EXPECT_EQ(true, event->IsRightMouseButton()); 593 EXPECT_EQ(true, event->IsRightMouseButton());
594 594
595 } 595 }
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_auralinux_unittest.cc ('k') | ui/keyboard/keyboard_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698