OLD | NEW |
1 // Copyright (c) 2010 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/ref_counted.h" | 6 #include "base/ref_counted.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/test/automation/dom_element_proxy.h" | |
9 #include "chrome/browser/dom_ui/mediaplayer_ui.h" | |
10 #include "chrome/browser/tab_contents/tab_contents.h" | 8 #include "chrome/browser/tab_contents/tab_contents.h" |
11 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_list.h" | 10 #include "chrome/browser/ui/browser_list.h" |
| 11 #include "chrome/browser/webui/mediaplayer_ui.h" |
13 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
| 14 #include "chrome/test/automation/dom_element_proxy.h" |
15 #include "chrome/test/in_process_browser_test.h" | 15 #include "chrome/test/in_process_browser_test.h" |
16 #include "chrome/test/ui_test_utils.h" | 16 #include "chrome/test/ui_test_utils.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 class MediaPlayerBrowserTest : public InProcessBrowserTest { | 20 class MediaPlayerBrowserTest : public InProcessBrowserTest { |
21 public: | 21 public: |
22 MediaPlayerBrowserTest() {} | 22 MediaPlayerBrowserTest() {} |
23 | 23 |
24 virtual void SetUpCommandLine(CommandLine* command_line) { | 24 virtual void SetUpCommandLine(CommandLine* command_line) { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 player->EnqueueMediaURL(GetMusicTestURL(), NULL); | 90 player->EnqueueMediaURL(GetMusicTestURL(), NULL); |
91 | 91 |
92 EXPECT_FALSE(IsPlaylistVisible()); | 92 EXPECT_FALSE(IsPlaylistVisible()); |
93 | 93 |
94 player->TogglePlaylistWindowVisible(); | 94 player->TogglePlaylistWindowVisible(); |
95 | 95 |
96 EXPECT_TRUE(IsPlaylistVisible()); | 96 EXPECT_TRUE(IsPlaylistVisible()); |
97 } | 97 } |
98 | 98 |
99 } // namespace | 99 } // namespace |
OLD | NEW |