| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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/hung_renderer_view.h" | 5 #include "chrome/browser/ui/views/hung_renderer_view.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "chrome/browser/platform_util.h" | 10 #include "chrome/browser/platform_util.h" |
| 11 #include "chrome/browser/ui/browser.cc" | 11 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/browser/ui/tab_dialogs.h" | 12 #include "chrome/browser/ui/tab_dialogs.h" |
| 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 14 #include "chrome/browser/ui/test/test_browser_dialog.h" | 14 #include "chrome/browser/ui/test/test_browser_dialog.h" |
| 15 #include "content/public/browser/web_contents_unresponsive_state.h" | 15 #include "content/public/browser/web_contents_unresponsive_state.h" |
| 16 #include "ui/base/ui_base_switches.h" | 16 #include "ui/base/ui_base_switches.h" |
| 17 | 17 |
| 18 class HungRendererDialogViewBrowserTest : public DialogBrowserTest { | 18 class HungRendererDialogViewBrowserTest : public DialogBrowserTest { |
| 19 public: | 19 public: |
| 20 HungRendererDialogViewBrowserTest() {} | 20 HungRendererDialogViewBrowserTest() {} |
| 21 | 21 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // Invokes the hung renderer (aka page unresponsive) dialog. See | 33 // Invokes the hung renderer (aka page unresponsive) dialog. See |
| 34 // test_browser_dialog.h. | 34 // test_browser_dialog.h. |
| 35 // TODO(tapted): The framework sometimes doesn't pick up the spawned dialog and | 35 // TODO(tapted): The framework sometimes doesn't pick up the spawned dialog and |
| 36 // the ASSERT_EQ in TestBrowserDialog::RunDialog() fails. This seems to only | 36 // the ASSERT_EQ in TestBrowserDialog::RunDialog() fails. This seems to only |
| 37 // happen on the bots. So the test is disabled for now. | 37 // happen on the bots. So the test is disabled for now. |
| 38 IN_PROC_BROWSER_TEST_F(HungRendererDialogViewBrowserTest, | 38 IN_PROC_BROWSER_TEST_F(HungRendererDialogViewBrowserTest, |
| 39 DISABLED_InvokeDialog_default) { | 39 DISABLED_InvokeDialog_default) { |
| 40 RunDialog(); | 40 RunDialog(); |
| 41 } | 41 } |
| OLD | NEW |