| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_list.h" | 10 #include "chrome/browser/ui/browser_list.h" |
| 10 #include "chrome/browser/ui/webui/mediaplayer_ui.h" | |
| 11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
| 13 #include "chrome/test/automation/dom_element_proxy.h" | 13 #include "chrome/test/automation/dom_element_proxy.h" |
| 14 #include "chrome/test/in_process_browser_test.h" | 14 #include "chrome/test/in_process_browser_test.h" |
| 15 #include "chrome/test/ui_test_utils.h" | 15 #include "chrome/test/ui_test_utils.h" |
| 16 #include "content/browser/tab_contents/tab_contents.h" | 16 #include "content/browser/tab_contents/tab_contents.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 class MediaPlayerBrowserTest : public InProcessBrowserTest { | 20 class MediaPlayerBrowserTest : public InProcessBrowserTest { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 player->EnqueueMediaFileUrl(GetMusicTestURL(), NULL); | 86 player->EnqueueMediaFileUrl(GetMusicTestURL(), NULL); |
| 87 | 87 |
| 88 EXPECT_FALSE(IsPlaylistVisible()); | 88 EXPECT_FALSE(IsPlaylistVisible()); |
| 89 | 89 |
| 90 player->TogglePlaylistWindowVisible(); | 90 player->TogglePlaylistWindowVisible(); |
| 91 | 91 |
| 92 EXPECT_TRUE(IsPlaylistVisible()); | 92 EXPECT_TRUE(IsPlaylistVisible()); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace | 95 } // namespace |
| OLD | NEW |