| 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 "chrome/browser/ui/views/first_run_bubble.h" | 5 #include "chrome/browser/ui/views/first_run_bubble.h" |
| 6 #include "base/macros.h" | 6 #include "base/macros.h" |
| 7 #include "base/message_loop/message_loop.h" |
| 7 #include "chrome/browser/search_engines/template_url_service_factory.h" | 8 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 8 #include "chrome/browser/ui/views/harmony/chrome_layout_provider.h" | 9 #include "chrome/browser/ui/views/harmony/chrome_layout_provider.h" |
| 9 #include "chrome/test/base/testing_profile.h" | 10 #include "chrome/test/base/testing_profile.h" |
| 10 #include "components/search_engines/template_url.h" | 11 #include "components/search_engines/template_url.h" |
| 11 #include "components/search_engines/template_url_service.h" | 12 #include "components/search_engines/template_url_service.h" |
| 12 #include "content/public/test/test_browser_thread.h" | 13 #include "content/public/test/test_browser_thread.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "ui/aura/window.h" | 15 #include "ui/aura/window.h" |
| 15 #include "ui/aura/window_tree_host.h" | 16 #include "ui/aura/window_tree_host.h" |
| 16 #include "ui/events/event.h" | 17 #include "ui/events/event.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 CreateAndCloseBubbleOnEventTest(&mouse_down); | 152 CreateAndCloseBubbleOnEventTest(&mouse_down); |
| 152 } | 153 } |
| 153 | 154 |
| 154 TEST_F(FirstRunBubbleTest, CloseBubbleOnTouchDownEvent) { | 155 TEST_F(FirstRunBubbleTest, CloseBubbleOnTouchDownEvent) { |
| 155 ui::TouchEvent touch_down( | 156 ui::TouchEvent touch_down( |
| 156 ui::ET_TOUCH_PRESSED, gfx::Point(10, 10), ui::EventTimeForNow(), | 157 ui::ET_TOUCH_PRESSED, gfx::Point(10, 10), ui::EventTimeForNow(), |
| 157 ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_TOUCH, 0)); | 158 ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_TOUCH, 0)); |
| 158 CreateAndCloseBubbleOnEventTest(&touch_down); | 159 CreateAndCloseBubbleOnEventTest(&touch_down); |
| 159 } | 160 } |
| 160 | 161 |
| OLD | NEW |