OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/macros.h" |
5 #include "chrome/browser/search_engines/template_url_service_factory.h" | 6 #include "chrome/browser/search_engines/template_url_service_factory.h" |
6 #include "chrome/browser/ui/views/first_run_bubble.h" | 7 #include "chrome/browser/ui/views/first_run_bubble.h" |
7 #include "chrome/test/base/testing_browser_process.h" | 8 #include "chrome/test/base/testing_browser_process.h" |
8 #include "chrome/test/base/testing_profile.h" | 9 #include "chrome/test/base/testing_profile.h" |
9 #include "components/search_engines/template_url.h" | 10 #include "components/search_engines/template_url.h" |
10 #include "components/search_engines/template_url_service.h" | 11 #include "components/search_engines/template_url_service.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
13 #include "ui/aura/window_tree_host.h" | 14 #include "ui/aura/window_tree_host.h" |
14 #include "ui/events/event.h" | 15 #include "ui/events/event.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 ui::EF_LEFT_MOUSE_BUTTON, ui::EF_LEFT_MOUSE_BUTTON); | 150 ui::EF_LEFT_MOUSE_BUTTON, ui::EF_LEFT_MOUSE_BUTTON); |
150 CreateAndCloseBubbleOnEventTest(&mouse_down); | 151 CreateAndCloseBubbleOnEventTest(&mouse_down); |
151 } | 152 } |
152 | 153 |
153 TEST_F(FirstRunBubbleTest, CloseBubbleOnTouchDownEvent) { | 154 TEST_F(FirstRunBubbleTest, CloseBubbleOnTouchDownEvent) { |
154 ui::TouchEvent touch_down( | 155 ui::TouchEvent touch_down( |
155 ui::ET_TOUCH_PRESSED, gfx::Point(10, 10), 0, ui::EventTimeForNow()); | 156 ui::ET_TOUCH_PRESSED, gfx::Point(10, 10), 0, ui::EventTimeForNow()); |
156 CreateAndCloseBubbleOnEventTest(&touch_down); | 157 CreateAndCloseBubbleOnEventTest(&touch_down); |
157 } | 158 } |
158 | 159 |
OLD | NEW |