OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/macros.h" | 6 #include "base/macros.h" |
| 7 #include "base/message_loop/message_loop.h" |
7 #include "base/path_service.h" | 8 #include "base/path_service.h" |
8 #include "base/process/process.h" | 9 #include "base/process/process.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "base/test/test_timeouts.h" | 11 #include "base/test/test_timeouts.h" |
11 #include "build/build_config.h" | 12 #include "build/build_config.h" |
12 #include "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
13 #include "chrome/browser/devtools/devtools_window.h" | 14 #include "chrome/browser/devtools/devtools_window.h" |
14 #include "chrome/browser/search/search.h" | 15 #include "chrome/browser/search/search.h" |
15 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/browser/ui/browser_commands.h" | 17 #include "chrome/browser/ui/browser_commands.h" |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 WaitUntilBackgrounded(no_audio_process_, false, audio_process_, true); | 727 WaitUntilBackgrounded(no_audio_process_, false, audio_process_, true); |
727 | 728 |
728 // Start the audio from the backgrounded tab. | 729 // Start the audio from the backgrounded tab. |
729 ASSERT_TRUE( | 730 ASSERT_TRUE( |
730 content::ExecuteScript(audio_tab_web_contents_, | 731 content::ExecuteScript(audio_tab_web_contents_, |
731 "document.getElementById('audioPlayer').play();")); | 732 "document.getElementById('audioPlayer').play();")); |
732 | 733 |
733 // Wait until the two pages are not backgrounded. | 734 // Wait until the two pages are not backgrounded. |
734 WaitUntilBackgrounded(no_audio_process_, false, audio_process_, false); | 735 WaitUntilBackgrounded(no_audio_process_, false, audio_process_, false); |
735 } | 736 } |
OLD | NEW |