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

Side by Side Diff: content/browser/renderer_host/input/web_input_event_util_unittest.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 years, 3 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 // Needed on Windows to get |M_PI| from <cmath>.
6 #ifdef _WIN32
7 #define _USE_MATH_DEFINES
8 #endif
9
10 #include <stddef.h> 5 #include <stddef.h>
11 6
12 #include <cmath> 7 #include <cmath>
13 8
14 #include "content/common/input/synthetic_web_input_event_builders.h" 9 #include "content/common/input/synthetic_web_input_event_builders.h"
15 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
16 #include "ui/events/blink/blink_event_util.h" 11 #include "ui/events/blink/blink_event_util.h"
17 #include "ui/events/blink/web_input_event_traits.h" 12 #include "ui/events/blink/web_input_event_traits.h"
18 #include "ui/events/event_constants.h" 13 #include "ui/events/event_constants.h"
19 #include "ui/events/gesture_detection/gesture_event_data.h" 14 #include "ui/events/gesture_detection/gesture_event_data.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 EXPECT_EQ(gfx::ToFlooredInt(raw_pos.x()), web_event.global_x); 115 EXPECT_EQ(gfx::ToFlooredInt(raw_pos.x()), web_event.global_x);
121 EXPECT_EQ(gfx::ToFlooredInt(raw_pos.y()), web_event.global_y); 116 EXPECT_EQ(gfx::ToFlooredInt(raw_pos.y()), web_event.global_y);
122 EXPECT_EQ(blink::kWebGestureDeviceTouchscreen, web_event.source_device); 117 EXPECT_EQ(blink::kWebGestureDeviceTouchscreen, web_event.source_device);
123 EXPECT_EQ(delta.x(), web_event.data.scroll_update.delta_x); 118 EXPECT_EQ(delta.x(), web_event.data.scroll_update.delta_x);
124 EXPECT_EQ(delta.y(), web_event.data.scroll_update.delta_y); 119 EXPECT_EQ(delta.y(), web_event.data.scroll_update.delta_y);
125 EXPECT_TRUE( 120 EXPECT_TRUE(
126 web_event.data.scroll_update.previous_update_in_sequence_prevented); 121 web_event.data.scroll_update.previous_update_in_sequence_prevented);
127 } 122 }
128 123
129 } // namespace content 124 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698