OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/macros.h" |
6 #include "chrome/browser/ui/extensions/extension_message_bubble_browsertest.h" | 6 #include "chrome/browser/ui/extensions/extension_message_bubble_browsertest.h" |
7 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" | 7 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" |
8 #include "chrome/browser/ui/views/frame/browser_view.h" | 8 #include "chrome/browser/ui/views/frame/browser_view.h" |
9 #include "chrome/browser/ui/views/toolbar/app_menu_button.h" | 9 #include "chrome/browser/ui/views/toolbar/app_menu_button.h" |
10 #include "chrome/browser/ui/views/toolbar/browser_actions_container.h" | 10 #include "chrome/browser/ui/views/toolbar/browser_actions_container.h" |
11 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" | 11 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" |
12 #include "ui/views/bubble/bubble_delegate.h" | 12 #include "ui/views/bubble/bubble_dialog_delegate.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 // Returns the ToolbarView for the given |browser|. | 16 // Returns the ToolbarView for the given |browser|. |
17 ToolbarView* GetToolbarViewForBrowser(Browser* browser) { | 17 ToolbarView* GetToolbarViewForBrowser(Browser* browser) { |
18 return BrowserView::GetBrowserViewForBrowser(browser)->toolbar(); | 18 return BrowserView::GetBrowserViewForBrowser(browser)->toolbar(); |
19 } | 19 } |
20 | 20 |
21 // Checks that the |bubble| is using the |expected_reference_view|, and is in | 21 // Checks that the |bubble| is using the |expected_reference_view|, and is in |
22 // approximately the correct position. | 22 // approximately the correct position. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 IN_PROC_BROWSER_TEST_F(ExtensionMessageBubbleViewBrowserTest, | 116 IN_PROC_BROWSER_TEST_F(ExtensionMessageBubbleViewBrowserTest, |
117 ExtensionBubbleShowsOnStartup) { | 117 ExtensionBubbleShowsOnStartup) { |
118 TestBubbleShowsOnStartup(); | 118 TestBubbleShowsOnStartup(); |
119 } | 119 } |
120 | 120 |
121 IN_PROC_BROWSER_TEST_F(ExtensionMessageBubbleViewBrowserTest, | 121 IN_PROC_BROWSER_TEST_F(ExtensionMessageBubbleViewBrowserTest, |
122 TestUninstallDangerousExtension) { | 122 TestUninstallDangerousExtension) { |
123 TestUninstallDangerousExtension(); | 123 TestUninstallDangerousExtension(); |
124 } | 124 } |
OLD | NEW |