| Index: chrome/browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc b/chrome/browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc
|
| index a442c392d4129805a4dd672088bd1c73c7706c84..8a09efc826b66daf560ce207b2562c72c3b50b98 100644
|
| --- a/chrome/browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc
|
| +++ b/chrome/browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc
|
| @@ -8,6 +8,7 @@
|
| #include "chrome/browser/ui/browser_commands.h"
|
| #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h"
|
| #include "chrome/browser/ui/exclusive_access/fullscreen_controller_test.h"
|
| +#include "chrome/browser/ui/test/test_browser_dialog.h"
|
| #include "chrome/browser/ui/views/frame/browser_view.h"
|
| #include "chrome/browser/ui/views/frame/immersive_mode_controller.h"
|
| #include "chrome/test/base/in_process_browser_test.h"
|
| @@ -139,3 +140,26 @@ IN_PROC_BROWSER_TEST_F(ZoomBubbleBrowserTest, ImmersiveFullscreen) {
|
| }
|
| }
|
| #endif // OS_CHROMEOS
|
| +
|
| +class ZoomBubbleDialogTest : public DialogBrowserTest {
|
| + public:
|
| + ZoomBubbleDialogTest() {}
|
| +
|
| + // DialogBrowserTest:
|
| + void ShowDialog(const std::string& name) override {
|
| + BrowserView* browser_view = static_cast<BrowserView*>(browser()->window());
|
| + content::WebContents* web_contents = browser_view->GetActiveWebContents();
|
| + ZoomBubbleView::ShowBubble(web_contents, gfx::Point(),
|
| + ZoomBubbleView::USER_GESTURE);
|
| + }
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(ZoomBubbleDialogTest);
|
| +};
|
| +
|
| +// Test that calls ShowDialog("default"). Interactive when run via
|
| +// browser_tests --gtest_filter=BrowserDialogTest.Invoke --interactive
|
| +// --dialog=ZoomBubbleDialogTest.InvokeDialog_default
|
| +IN_PROC_BROWSER_TEST_F(ZoomBubbleDialogTest, InvokeDialog_default) {
|
| + RunDialog();
|
| +}
|
|
|