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

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

Issue 613373004: Adopt ui::GestureConfiguration on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 <vector> 5 #include <vector>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "content/browser/renderer_host/input/touch_emulator.h" 11 #include "content/browser/renderer_host/input/touch_emulator.h"
12 #include "content/browser/renderer_host/input/touch_emulator_client.h" 12 #include "content/browser/renderer_host/input/touch_emulator_client.h"
13 #include "content/common/input/web_input_event_traits.h" 13 #include "content/common/input/web_input_event_traits.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "ui/events/gesture_detection/gesture_config_helper.h" 15 #include "ui/events/gesture_detection/gesture_configuration.h"
16 16
17 #if defined(USE_AURA) 17 #if defined(USE_AURA)
18 #include "ui/aura/env.h" 18 #include "ui/aura/env.h"
19 #include "ui/aura/test/test_screen.h" 19 #include "ui/aura/test/test_screen.h"
20 #endif 20 #endif
21 21
22 using blink::WebGestureEvent; 22 using blink::WebGestureEvent;
23 using blink::WebInputEvent; 23 using blink::WebInputEvent;
24 using blink::WebKeyboardEvent; 24 using blink::WebKeyboardEvent;
25 using blink::WebMouseEvent; 25 using blink::WebMouseEvent;
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 MouseDown(100, 200); 516 MouseDown(100, 200);
517 EXPECT_EQ("TouchStart GestureTapDown", ExpectedEvents()); 517 EXPECT_EQ("TouchStart GestureTapDown", ExpectedEvents());
518 MouseUp(200, 200); 518 MouseUp(200, 200);
519 EXPECT_EQ( 519 EXPECT_EQ(
520 "TouchMove GestureTapCancel GestureScrollBegin GestureScrollUpdate" 520 "TouchMove GestureTapCancel GestureScrollBegin GestureScrollUpdate"
521 " TouchEnd GestureScrollEnd", 521 " TouchEnd GestureScrollEnd",
522 ExpectedEvents()); 522 ExpectedEvents());
523 } 523 }
524 524
525 } // namespace content 525 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698