| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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" | 8 #include "chrome/test/automation/dom_element_proxy.h" |
| 9 #include "chrome/browser/browser.h" | |
| 10 #include "chrome/browser/browser_list.h" | |
| 11 #include "chrome/browser/dom_ui/mediaplayer_ui.h" | 9 #include "chrome/browser/dom_ui/mediaplayer_ui.h" |
| 12 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
| 13 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/browser/tab_contents/tab_contents.h" |
| 12 #include "chrome/browser/ui/browser.h" |
| 13 #include "chrome/browser/ui/browser_list.h" |
| 14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
| 16 #include "chrome/test/in_process_browser_test.h" | 16 #include "chrome/test/in_process_browser_test.h" |
| 17 #include "chrome/test/ui_test_utils.h" | 17 #include "chrome/test/ui_test_utils.h" |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 class MediaPlayerBrowserTest : public InProcessBrowserTest { | 21 class MediaPlayerBrowserTest : public InProcessBrowserTest { |
| 22 public: | 22 public: |
| 23 MediaPlayerBrowserTest() {} | 23 MediaPlayerBrowserTest() {} |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 player->EnqueueMediaURL(GetMusicTestURL(), NULL); | 91 player->EnqueueMediaURL(GetMusicTestURL(), NULL); |
| 92 | 92 |
| 93 EXPECT_FALSE(IsPlaylistVisible()); | 93 EXPECT_FALSE(IsPlaylistVisible()); |
| 94 | 94 |
| 95 player->TogglePlaylistWindowVisible(); | 95 player->TogglePlaylistWindowVisible(); |
| 96 | 96 |
| 97 EXPECT_TRUE(IsPlaylistVisible()); | 97 EXPECT_TRUE(IsPlaylistVisible()); |
| 98 } | 98 } |
| 99 | 99 |
| 100 } // namespace | 100 } // namespace |
| OLD | NEW |