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

Side by Side Diff: remoting/host/touch_injector_win_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
« no previous file with comments | « net/tools/quic/quic_simple_server_stream_test.cc ('k') | remoting/test/protocol_perftest.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 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 "remoting/host/touch_injector_win.h" 5 #include "remoting/host/touch_injector_win.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 if (id_to_flag_map.find(id)->second != touch_info->pointerInfo.pointerFlags) 69 if (id_to_flag_map.find(id)->second != touch_info->pointerInfo.pointerFlags)
70 return false; 70 return false;
71 } 71 }
72 return true; 72 return true;
73 } 73 }
74 74
75 class TouchInjectorWinDelegateMock : public TouchInjectorWinDelegate { 75 class TouchInjectorWinDelegateMock : public TouchInjectorWinDelegate {
76 public: 76 public:
77 TouchInjectorWinDelegateMock() 77 TouchInjectorWinDelegateMock()
78 : TouchInjectorWinDelegate(nullptr, nullptr, nullptr) {} 78 : TouchInjectorWinDelegate(nullptr, nullptr, nullptr) {}
79 ~TouchInjectorWinDelegateMock() override {}; 79 ~TouchInjectorWinDelegateMock() override {}
80 80
81 MOCK_METHOD2(InitializeTouchInjection, BOOL(UINT32 max_count, DWORD dw_mode)); 81 MOCK_METHOD2(InitializeTouchInjection, BOOL(UINT32 max_count, DWORD dw_mode));
82 MOCK_METHOD2(InjectTouchInput, 82 MOCK_METHOD2(InjectTouchInput,
83 DWORD(UINT32 count, const POINTER_TOUCH_INFO* contacts)); 83 DWORD(UINT32 count, const POINTER_TOUCH_INFO* contacts));
84 }; 84 };
85 85
86 } // namespace 86 } // namespace
87 87
88 // A test to make sure that the touch event is converted correctly to 88 // A test to make sure that the touch event is converted correctly to
89 // POINTER_TOUCH_INFO. 89 // POINTER_TOUCH_INFO.
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 TouchEvent cancel_rest; 513 TouchEvent cancel_rest;
514 cancel_rest.set_event_type(TouchEvent::TOUCH_POINT_CANCEL); 514 cancel_rest.set_event_type(TouchEvent::TOUCH_POINT_CANCEL);
515 point0 = cancel_rest.add_touch_points(); 515 point0 = cancel_rest.add_touch_points();
516 point0->set_id(0u); 516 point0->set_id(0u);
517 point2 = cancel_rest.add_touch_points(); 517 point2 = cancel_rest.add_touch_points();
518 point2->set_id(2u); 518 point2->set_id(2u);
519 injector.InjectTouchEvent(cancel_rest); 519 injector.InjectTouchEvent(cancel_rest);
520 } 520 }
521 521
522 } // namespace remoting 522 } // namespace remoting
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_server_stream_test.cc ('k') | remoting/test/protocol_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698