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

Side by Side Diff: content/browser/renderer_host/input/touch_emulator_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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "content/browser/renderer_host/input/touch_emulator.h" 12 #include "content/browser/renderer_host/input/touch_emulator.h"
13 #include "content/browser/renderer_host/input/touch_emulator_client.h" 13 #include "content/browser/renderer_host/input/touch_emulator_client.h"
14 #include "content/common/input/web_input_event_traits.h" 14 #include "content/public/common/input/web_input_event_traits.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 using blink::WebGestureEvent; 17 using blink::WebGestureEvent;
18 using blink::WebInputEvent; 18 using blink::WebInputEvent;
19 using blink::WebKeyboardEvent; 19 using blink::WebKeyboardEvent;
20 using blink::WebMouseEvent; 20 using blink::WebMouseEvent;
21 using blink::WebMouseWheelEvent; 21 using blink::WebMouseWheelEvent;
22 using blink::WebTouchEvent; 22 using blink::WebTouchEvent;
23 using blink::WebTouchPoint; 23 using blink::WebTouchPoint;
24 24
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 emulator()->Disable(); 555 emulator()->Disable();
556 EXPECT_EQ("TouchStart TouchCancel", ExpectedEvents()); 556 EXPECT_EQ("TouchStart TouchCancel", ExpectedEvents());
557 emulator()->CancelTouch(); 557 emulator()->CancelTouch();
558 } 558 }
559 559
560 TEST_F(TouchEmulatorTest, ConstructorWithHighDeviceScaleDoesNotCrash) { 560 TEST_F(TouchEmulatorTest, ConstructorWithHighDeviceScaleDoesNotCrash) {
561 TouchEmulator(this, 4.0f); 561 TouchEmulator(this, 4.0f);
562 } 562 }
563 563
564 } // namespace content 564 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/touch_emulator.cc ('k') | content/browser/renderer_host/input/touch_event_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698