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

Side by Side Diff: third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 "core/events/PointerEventFactory.h" 5 #include "core/events/PointerEventFactory.h"
6 6
7 #include <gtest/gtest.h>
8 #include <climits>
7 #include "core/frame/FrameView.h" 9 #include "core/frame/FrameView.h"
8 #include "core/page/Page.h" 10 #include "core/page/Page.h"
9 #include "public/platform/WebPointerProperties.h" 11 #include "public/platform/WebPointerProperties.h"
10 #include <climits>
11 #include <gtest/gtest.h>
12 12
13 namespace blink { 13 namespace blink {
14 14
15 namespace { 15 namespace {
16 16
17 const char* pointerTypeNameForWebPointPointerType( 17 const char* pointerTypeNameForWebPointPointerType(
18 WebPointerProperties::PointerType type) { 18 WebPointerProperties::PointerType type) {
19 switch (type) { 19 switch (type) {
20 case WebPointerProperties::PointerType::Unknown: 20 case WebPointerProperties::PointerType::Unknown:
21 return ""; 21 return "";
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 445
446 TEST_F(PointerEventFactoryTest, CoalescedEvents) { 446 TEST_F(PointerEventFactoryTest, CoalescedEvents) {
447 createAndCheckMouseEvent(WebPointerProperties::PointerType::Mouse, 0, 447 createAndCheckMouseEvent(WebPointerProperties::PointerType::Mouse, 0,
448 m_expectedMouseId, true, WebInputEvent::NoModifiers, 448 m_expectedMouseId, true, WebInputEvent::NoModifiers,
449 4); 449 4);
450 createAndCheckTouchEvent(WebPointerProperties::PointerType::Touch, 0, 450 createAndCheckTouchEvent(WebPointerProperties::PointerType::Touch, 0,
451 m_mappedIdStart, true, WebTouchPoint::StateMoved, 3); 451 m_mappedIdStart, true, WebTouchPoint::StateMoved, 3);
452 } 452 }
453 453
454 } // namespace blink 454 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/MutationEvent.h ('k') | third_party/WebKit/Source/core/events/ScopedEventQueue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698