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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_message_bubble_view_browsertest.cc

Issue 1922813002: Vanquish views::BubbleDelegate{View,} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix other test, respond to comments Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/save_card_bubble_views.h ('k') | chrome/browser/ui/views/location_bar/zoom_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698