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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc

Issue 306483003: Prepare for Unified Gesture Recognizer landing in Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address jdduke's comments. Created 6 years, 7 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
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ui/aura/gestures/gesture_recognizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc
index dd46f88f8f943c36b4875b672f52e223d20c04cf..dd39d4e3045239223b2ea24366599471f146c34f 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc
@@ -85,6 +85,14 @@ class OmniboxViewViewsTest : public InProcessBrowserTest {
ui::EventDispatchDetails details = dispatcher->OnEventFromSource(&press);
ASSERT_FALSE(details.dispatcher_destroyed);
+ if (press_location != release_location) {
+ ui::TouchEvent move(ui::ET_TOUCH_MOVED,
+ release_location,
+ 5,
+ base::TimeDelta::FromMilliseconds(10));
Peter Kasting 2014/05/29 18:05:44 Nit: Since the code just above combines args onto
tdresser 2014/05/30 14:05:37 Done.
+ details = dispatcher->OnEventFromSource(&move);
+ }
+
ui::TouchEvent release(ui::ET_TOUCH_RELEASED, release_location,
5, base::TimeDelta::FromMilliseconds(50));
details = dispatcher->OnEventFromSource(&release);
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ui/aura/gestures/gesture_recognizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698