| 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/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/chromeos/media/media_player.h" | 8 #include "chrome/browser/chromeos/media/media_player.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/browser_list.h" | 10 #include "chrome/browser/ui/browser_list.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 IN_PROC_BROWSER_TEST_F(MediaPlayerBrowserTest, Popup) { | 41 IN_PROC_BROWSER_TEST_F(MediaPlayerBrowserTest, Popup) { |
| 42 ASSERT_TRUE(test_server()->Start()); | 42 ASSERT_TRUE(test_server()->Start()); |
| 43 // Doing this so we have a valid profile. | 43 // Doing this so we have a valid profile. |
| 44 ui_test_utils::NavigateToURL(browser(), | 44 ui_test_utils::NavigateToURL(browser(), |
| 45 GURL("chrome://downloads")); | 45 GURL("chrome://downloads")); |
| 46 | 46 |
| 47 MediaPlayer* player = MediaPlayer::GetInstance(); | 47 MediaPlayer* player = MediaPlayer::GetInstance(); |
| 48 // Check that its not currently visible | 48 // Check that its not currently visible |
| 49 ASSERT_FALSE(IsPlayerVisible()); | 49 ASSERT_FALSE(IsPlayerVisible()); |
| 50 | 50 |
| 51 player->PopupMediaPlayer(NULL); | 51 player->PopupMediaPlayer(); |
| 52 player->ForcePlayMediaURL(GetMusicTestURL()); | 52 player->ForcePlayMediaURL(GetMusicTestURL()); |
| 53 | 53 |
| 54 ASSERT_TRUE(IsPlayerVisible()); | 54 ASSERT_TRUE(IsPlayerVisible()); |
| 55 } | 55 } |
| OLD | NEW |