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

Side by Side Diff: content/common/input/touch_event_stream_validator_unittest.cc

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 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 #include "content/common/input/touch_event_stream_validator.h" 5 #include "content/common/input/touch_event_stream_validator.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "content/common/input/synthetic_web_input_event_builders.h" 9 #include "content/common/input/synthetic_web_input_event_builders.h"
10 #include "content/common/input/web_touch_event_traits.h" 10 #include "content/public/common/input/web_touch_event_traits.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using blink::WebInputEvent; 13 using blink::WebInputEvent;
14 using blink::WebTouchEvent; 14 using blink::WebTouchEvent;
15 using blink::WebTouchPoint; 15 using blink::WebTouchPoint;
16 16
17 namespace content { 17 namespace content {
18 18
19 TEST(TouchEventStreamValidator, ValidTouchStream) { 19 TEST(TouchEventStreamValidator, ValidTouchStream) {
20 TouchEventStreamValidator validator; 20 TouchEventStreamValidator validator;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 EXPECT_TRUE(error_msg.empty()); 166 EXPECT_TRUE(error_msg.empty());
167 } else { 167 } else {
168 EXPECT_FALSE(validator.Validate(event, &error_msg)); 168 EXPECT_FALSE(validator.Validate(event, &error_msg));
169 EXPECT_FALSE(error_msg.empty()); 169 EXPECT_FALSE(error_msg.empty());
170 } 170 }
171 } 171 }
172 } 172 }
173 } 173 }
174 174
175 } // namespace content 175 } // namespace content
OLDNEW
« no previous file with comments | « content/common/input/touch_event_stream_validator.cc ('k') | content/common/input/web_input_event_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698