| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "chrome/browser/media/webrtc_browsertest_base.h" | 8 #include "chrome/browser/media/webrtc_browsertest_base.h" |
| 9 #include "chrome/browser/media/webrtc_browsertest_common.h" | 9 #include "chrome/browser/media/webrtc_browsertest_common.h" |
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 GURL url(embedded_test_server()->GetURL("/webrtc/webaudio_crash.html")); | 107 GURL url(embedded_test_server()->GetURL("/webrtc/webaudio_crash.html")); |
| 108 ui_test_utils::NavigateToURL(browser(), url); | 108 ui_test_utils::NavigateToURL(browser(), url); |
| 109 content::WebContents* tab = | 109 content::WebContents* tab = |
| 110 browser()->tab_strip_model()->GetActiveWebContents(); | 110 browser()->tab_strip_model()->GetActiveWebContents(); |
| 111 | 111 |
| 112 // A sleep is necessary to be able to detect the crash. | 112 // A sleep is necessary to be able to detect the crash. |
| 113 test::SleepInJavascript(tab, 1000); | 113 test::SleepInJavascript(tab, 1000); |
| 114 | 114 |
| 115 ASSERT_FALSE(tab->IsCrashed()); | 115 ASSERT_FALSE(tab->IsCrashed()); |
| 116 } | 116 } |
| OLD | NEW |