| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/ui/views/location_bar/location_icon_view.h" | 5 #include "chrome/browser/ui/views/location_bar/location_icon_view.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/views/frame/browser_view.h" | 7 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 8 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 8 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 9 #include "chrome/browser/ui/views/page_info/page_info_popup_view.h" | 9 #include "chrome/browser/ui/views/page_info/page_info_popup_view.h" |
| 10 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" | 10 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // Verify that clicking once shows the location icon bubble. | 25 // Verify that clicking once shows the location icon bubble. |
| 26 scoped_refptr<content::MessageLoopRunner> runner1 = | 26 scoped_refptr<content::MessageLoopRunner> runner1 = |
| 27 new content::MessageLoopRunner; | 27 new content::MessageLoopRunner; |
| 28 ui_test_utils::MoveMouseToCenterAndPress( | 28 ui_test_utils::MoveMouseToCenterAndPress( |
| 29 location_icon_view, | 29 location_icon_view, |
| 30 ui_controls::LEFT, | 30 ui_controls::LEFT, |
| 31 ui_controls::DOWN | ui_controls::UP, | 31 ui_controls::DOWN | ui_controls::UP, |
| 32 runner1->QuitClosure()); | 32 runner1->QuitClosure()); |
| 33 runner1->Run(); | 33 runner1->Run(); |
| 34 | 34 |
| 35 EXPECT_EQ(PageInfoPopupView::POPUP_PAGE_INFO, | 35 EXPECT_EQ(PageInfoBubbleView::POPUP_PAGE_INFO, |
| 36 PageInfoPopupView::GetShownPopupType()); | 36 PageInfoBubbleView::GetShownPopupType()); |
| 37 | 37 |
| 38 // Verify that clicking again doesn't reshow it. | 38 // Verify that clicking again doesn't reshow it. |
| 39 scoped_refptr<content::MessageLoopRunner> runner2 = | 39 scoped_refptr<content::MessageLoopRunner> runner2 = |
| 40 new content::MessageLoopRunner; | 40 new content::MessageLoopRunner; |
| 41 ui_test_utils::MoveMouseToCenterAndPress( | 41 ui_test_utils::MoveMouseToCenterAndPress( |
| 42 location_icon_view, | 42 location_icon_view, |
| 43 ui_controls::LEFT, | 43 ui_controls::LEFT, |
| 44 ui_controls::DOWN | ui_controls::UP, | 44 ui_controls::DOWN | ui_controls::UP, |
| 45 runner2->QuitClosure()); | 45 runner2->QuitClosure()); |
| 46 runner2->Run(); | 46 runner2->Run(); |
| 47 | 47 |
| 48 EXPECT_EQ(PageInfoPopupView::POPUP_NONE, | 48 EXPECT_EQ(PageInfoBubbleView::POPUP_NONE, |
| 49 PageInfoPopupView::GetShownPopupType()); | 49 PageInfoBubbleView::GetShownPopupType()); |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace | 52 } // namespace |
| OLD | NEW |