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

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: Copyright Created 6 years, 1 month 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"
16 15
17 #if defined(USE_AURA) 16 #if defined(USE_AURA)
18 #include "ui/aura/env.h" 17 #include "ui/aura/env.h"
19 #include "ui/aura/test/test_screen.h" 18 #include "ui/aura/test/test_screen.h"
20 #endif 19 #endif
21 20
22 using blink::WebGestureEvent; 21 using blink::WebGestureEvent;
23 using blink::WebInputEvent; 22 using blink::WebInputEvent;
24 using blink::WebKeyboardEvent; 23 using blink::WebKeyboardEvent;
25 using blink::WebMouseEvent; 24 using blink::WebMouseEvent;
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 MouseDown(100, 200); 513 MouseDown(100, 200);
515 EXPECT_EQ("TouchStart GestureTapDown", ExpectedEvents()); 514 EXPECT_EQ("TouchStart GestureTapDown", ExpectedEvents());
516 MouseUp(200, 200); 515 MouseUp(200, 200);
517 EXPECT_EQ( 516 EXPECT_EQ(
518 "TouchMove GestureTapCancel GestureScrollBegin GestureScrollUpdate" 517 "TouchMove GestureTapCancel GestureScrollBegin GestureScrollUpdate"
519 " TouchEnd GestureScrollEnd", 518 " TouchEnd GestureScrollEnd",
520 ExpectedEvents()); 519 ExpectedEvents());
521 } 520 }
522 521
523 } // namespace content 522 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698