OLD | NEW |
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> |
| 8 #include <stdint.h> |
| 9 |
7 #include <map> | 10 #include <map> |
8 | 11 |
9 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
10 #include "remoting/proto/event.pb.h" | 13 #include "remoting/proto/event.pb.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
13 | 16 |
14 using ::testing::_; | 17 using ::testing::_; |
15 using ::testing::AtLeast; | 18 using ::testing::AtLeast; |
16 using ::testing::InSequence; | 19 using ::testing::InSequence; |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 TouchEvent cancel_rest; | 508 TouchEvent cancel_rest; |
506 cancel_rest.set_event_type(TouchEvent::TOUCH_POINT_CANCEL); | 509 cancel_rest.set_event_type(TouchEvent::TOUCH_POINT_CANCEL); |
507 point0 = cancel_rest.add_touch_points(); | 510 point0 = cancel_rest.add_touch_points(); |
508 point0->set_id(0u); | 511 point0->set_id(0u); |
509 point2 = cancel_rest.add_touch_points(); | 512 point2 = cancel_rest.add_touch_points(); |
510 point2->set_id(2u); | 513 point2->set_id(2u); |
511 injector.InjectTouchEvent(cancel_rest); | 514 injector.InjectTouchEvent(cancel_rest); |
512 } | 515 } |
513 | 516 |
514 } // namespace remoting | 517 } // namespace remoting |
OLD | NEW |