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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "content/browser/media/media_browsertest.h" | 6 #include "content/browser/media/media_browsertest.h" |
7 #include "content/public/test/browser_test_utils.h" | 7 #include "content/public/test/browser_test_utils.h" |
8 #include "content/public/test/content_browser_test_utils.h" | 8 #include "content/public/test/content_browser_test_utils.h" |
9 #include "media/base/test_data_util.h" | 9 #include "media/base/test_data_util.h" |
10 #include "media/media_features.h" | |
11 #include "net/test/embedded_test_server/embedded_test_server.h" | 10 #include "net/test/embedded_test_server/embedded_test_server.h" |
12 #include "net/test/embedded_test_server/http_request.h" | 11 #include "net/test/embedded_test_server/http_request.h" |
13 #include "net/test/embedded_test_server/http_response.h" | 12 #include "net/test/embedded_test_server/http_response.h" |
14 | 13 |
15 namespace content { | 14 namespace content { |
16 | 15 |
17 // Tests that WebMediaPlayer implementations choose the right playback engine | 16 // Tests that WebMediaPlayer implementations choose the right playback engine |
18 // for content even when the playback extension is not known upfront. | 17 // for content even when the playback extension is not known upfront. |
19 class MediaRedirectTest : public MediaBrowserTest { | 18 class MediaRedirectTest : public MediaBrowserTest { |
20 public: | 19 public: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 52 } |
54 | 53 |
55 private: | 54 private: |
56 const std::string kHiddenPath = "hidden_redirect"; | 55 const std::string kHiddenPath = "hidden_redirect"; |
57 }; | 56 }; |
58 | 57 |
59 IN_PROC_BROWSER_TEST_F(MediaRedirectTest, CanPlayHiddenWebm) { | 58 IN_PROC_BROWSER_TEST_F(MediaRedirectTest, CanPlayHiddenWebm) { |
60 RunRedirectTest("bear.webm"); | 59 RunRedirectTest("bear.webm"); |
61 } | 60 } |
62 | 61 |
63 #if defined(OS_ANDROID) && BUILDFLAG(USE_PROPRIETARY_CODECS) | 62 #if defined(OS_ANDROID) && defined(USE_PROPRIETARY_CODECS) |
64 // Flaky, see http://crbug.com/624005 | 63 // Flaky, see http://crbug.com/624005 |
65 IN_PROC_BROWSER_TEST_F(MediaRedirectTest, DISABLED_CanPlayHiddenHls) { | 64 IN_PROC_BROWSER_TEST_F(MediaRedirectTest, DISABLED_CanPlayHiddenHls) { |
66 RunRedirectTest("bear.m3u8"); | 65 RunRedirectTest("bear.m3u8"); |
67 } | 66 } |
68 #endif | 67 #endif |
69 | 68 |
70 } // namespace content | 69 } // namespace content |
OLD | NEW |