| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/macros.h" | 5 #include "base/macros.h" |
| 6 #include "base/memory/ptr_util.h" |
| 6 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 7 #include "base/threading/platform_thread.h" | 8 #include "base/threading/platform_thread.h" |
| 8 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "chromecast/browser/cast_media_blocker.h" | 10 #include "chromecast/browser/cast_media_blocker.h" |
| 10 #include "chromecast/browser/test/cast_browser_test.h" | 11 #include "chromecast/browser/test/cast_browser_test.h" |
| 11 #include "chromecast/chromecast_features.h" | 12 #include "chromecast/chromecast_features.h" |
| 12 #include "content/public/browser/media_session.h" | 13 #include "content/public/browser/media_session.h" |
| 13 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 14 #include "content/public/test/browser_test_utils.h" | 15 #include "content/public/test/browser_test_utils.h" |
| 15 #include "media/base/test_data_util.h" | 16 #include "media/base/test_data_util.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 IN_PROC_BROWSER_TEST_F(CastMediaBlockerBrowserTest, Video_BlockUnblock) { | 98 IN_PROC_BROWSER_TEST_F(CastMediaBlockerBrowserTest, Video_BlockUnblock) { |
| 98 PlayMedia("video", "tulip2.webm"); | 99 PlayMedia("video", "tulip2.webm"); |
| 99 | 100 |
| 100 BlockAndTestPlayerState("video", true); | 101 BlockAndTestPlayerState("video", true); |
| 101 BlockAndTestPlayerState("video", false); | 102 BlockAndTestPlayerState("video", false); |
| 102 } | 103 } |
| 103 #endif | 104 #endif |
| 104 | 105 |
| 105 } // namespace shell | 106 } // namespace shell |
| 106 } // namespace chromecast | 107 } // namespace chromecast |
| OLD | NEW |