OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "session_crashed_bubble_view.h" | |
tapted
2017/04/19 00:25:03
needs the full path
kylix_rd
2017/04/19 14:55:37
Done.
| |
6 | |
7 #include <string> | |
8 | |
9 #include "chrome/browser/ui/test/test_browser_dialog.h" | |
10 #include "chrome/browser/ui/views/frame/browser_view.h" | |
11 #include "chrome/browser/ui/views/toolbar/app_menu_button.h" | |
12 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" | |
13 #include "chrome/test/base/in_process_browser_test.h" | |
14 #include "ui/views/view.h" | |
15 | |
16 class SessionCrashedBubbleViewTest : public DialogBrowserTest { | |
17 public: | |
18 SessionCrashedBubbleViewTest() {} | |
19 ~SessionCrashedBubbleViewTest() override {} | |
20 | |
21 void ShowDialog(const std::string& name) override { | |
22 views::View* anchor_view = BrowserView::GetBrowserViewForBrowser(browser()) | |
23 ->toolbar() | |
24 ->app_menu_button(); | |
25 SessionCrashedBubbleView* crash_bubble = | |
26 new SessionCrashedBubbleView(anchor_view, browser(), false); | |
27 views::BubbleDialogDelegateView::CreateBubble(crash_bubble)->Show(); | |
28 } | |
29 | |
30 private: | |
31 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleViewTest); | |
32 }; | |
33 | |
34 IN_PROC_BROWSER_TEST_F(SessionCrashedBubbleViewTest, | |
35 InvokeDialog_SessionCrashedBubble) { | |
36 RunDialog(); | |
37 } | |
OLD | NEW |