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

Unified Diff: third_party/WebKit/Source/web/LinkHighlightImplTest.cpp

Issue 2569273002: Add constructors to WebInputEvents and setters so we can work at cleaning up these public structs. (Closed)
Patch Set: Rebase Created 3 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/LinkHighlightImplTest.cpp
diff --git a/third_party/WebKit/Source/web/LinkHighlightImplTest.cpp b/third_party/WebKit/Source/web/LinkHighlightImplTest.cpp
index 1c4411d702c41ca1d682d3fa092d0f1ffd0f5c4e..bb30b8ef9710219cfa495cd3fa2f8113af9d1423 100644
--- a/third_party/WebKit/Source/web/LinkHighlightImplTest.cpp
+++ b/third_party/WebKit/Source/web/LinkHighlightImplTest.cpp
@@ -78,8 +78,9 @@ TEST(LinkHighlightImplTest, verifyWebViewImplIntegration) {
webViewImpl->resize(WebSize(pageWidth, pageHeight));
webViewImpl->updateAllLifecyclePhases();
- WebGestureEvent touchEvent;
- touchEvent.type = WebInputEvent::GestureShowPress;
+ WebGestureEvent touchEvent(WebInputEvent::GestureShowPress,
+ WebInputEvent::NoModifiers,
+ WebInputEvent::TimeStampForTesting);
touchEvent.sourceDevice = WebGestureDeviceTouchscreen;
// The coordinates below are linked to absolute positions in the referenced
@@ -155,8 +156,9 @@ TEST(LinkHighlightImplTest, resetDuringNodeRemoval) {
webViewImpl->resize(WebSize(pageWidth, pageHeight));
webViewImpl->updateAllLifecyclePhases();
- WebGestureEvent touchEvent;
- touchEvent.type = WebInputEvent::GestureShowPress;
+ WebGestureEvent touchEvent(WebInputEvent::GestureShowPress,
+ WebInputEvent::NoModifiers,
+ WebInputEvent::TimeStampForTesting);
touchEvent.sourceDevice = WebGestureDeviceTouchscreen;
touchEvent.x = 20;
touchEvent.y = 20;
@@ -202,8 +204,9 @@ TEST(LinkHighlightImplTest, resetLayerTreeView) {
webViewImpl->resize(WebSize(pageWidth, pageHeight));
webViewImpl->updateAllLifecyclePhases();
- WebGestureEvent touchEvent;
- touchEvent.type = WebInputEvent::GestureShowPress;
+ WebGestureEvent touchEvent(WebInputEvent::GestureShowPress,
+ WebInputEvent::NoModifiers,
+ WebInputEvent::TimeStampForTesting);
touchEvent.sourceDevice = WebGestureDeviceTouchscreen;
touchEvent.x = 20;
touchEvent.y = 20;

Powered by Google App Engine
This is Rietveld 408576698