| 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
| 7 #include "content/browser/webrtc/webrtc_content_browsertest_base.h" | 7 #include "content/browser/webrtc/webrtc_content_browsertest_base.h" |
| 8 #include "content/public/common/content_switches.h" | 8 #include "content/public/common/content_switches.h" |
| 9 #include "media/base/test_data_util.h" | 9 #include "media/base/test_data_util.h" |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 private: | 71 private: |
| 72 DISALLOW_COPY_AND_ASSIGN(WebRtcCaptureFromElementBrowserTest); | 72 DISALLOW_COPY_AND_ASSIGN(WebRtcCaptureFromElementBrowserTest); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 IN_PROC_BROWSER_TEST_F(WebRtcCaptureFromElementBrowserTest, | 75 IN_PROC_BROWSER_TEST_F(WebRtcCaptureFromElementBrowserTest, |
| 76 VerifyCanvas2DCaptureColor) { | 76 VerifyCanvas2DCaptureColor) { |
| 77 MakeTypicalCall("testCanvas2DCaptureColors();", | 77 MakeTypicalCall("testCanvas2DCaptureColors();", |
| 78 kCanvasCaptureColorTestHtmlFile); | 78 kCanvasCaptureColorTestHtmlFile); |
| 79 } | 79 } |
| 80 | 80 |
| 81 #if defined(OS_ANDROID) | |
| 82 // Remote mojo renderer does not send audio/video frames back to the renderer | |
| 83 // process and hence does not support capture: https://crbug.com/641559. | |
| 84 #define MAYBE_VerifyCanvasWebGLCaptureColor \ | |
| 85 DISABLED_VerifyCanvasWebGLCaptureColor | |
| 86 #else | |
| 87 #define MAYBE_VerifyCanvasWebGLCaptureColor VerifyCanvasWebGLCaptureColor | |
| 88 #endif | |
| 89 IN_PROC_BROWSER_TEST_F(WebRtcCaptureFromElementBrowserTest, | 81 IN_PROC_BROWSER_TEST_F(WebRtcCaptureFromElementBrowserTest, |
| 90 MAYBE_VerifyCanvasWebGLCaptureColor) { | 82 VerifyCanvasWebGLCaptureColor) { |
| 91 #if !defined(OS_MACOSX) | 83 #if !defined(OS_MACOSX) |
| 92 // TODO(crbug.com/706009): Make this test pass on mac. Behavior is not buggy | 84 // TODO(crbug.com/706009): Make this test pass on mac. Behavior is not buggy |
| 93 // (verified manually) on mac, but for some reason this test fails on the mac | 85 // (verified manually) on mac, but for some reason this test fails on the mac |
| 94 // bot. | 86 // bot. |
| 95 MakeTypicalCall("testCanvasWebGLCaptureColors();", | 87 MakeTypicalCall("testCanvasWebGLCaptureColors();", |
| 96 kCanvasCaptureColorTestHtmlFile); | 88 kCanvasCaptureColorTestHtmlFile); |
| 97 #endif | 89 #endif |
| 98 } | 90 } |
| 99 | 91 |
| 100 IN_PROC_BROWSER_TEST_F(WebRtcCaptureFromElementBrowserTest, | 92 IN_PROC_BROWSER_TEST_F(WebRtcCaptureFromElementBrowserTest, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 GetParam().has_video, | 129 GetParam().has_video, |
| 138 GetParam().has_audio, | 130 GetParam().has_audio, |
| 139 GetParam().use_audio_tag), | 131 GetParam().use_audio_tag), |
| 140 kVideoAudioHtmlFile); | 132 kVideoAudioHtmlFile); |
| 141 } | 133 } |
| 142 | 134 |
| 143 INSTANTIATE_TEST_CASE_P(, | 135 INSTANTIATE_TEST_CASE_P(, |
| 144 WebRtcCaptureFromElementBrowserTest, | 136 WebRtcCaptureFromElementBrowserTest, |
| 145 testing::ValuesIn(kFileAndTypeParameters)); | 137 testing::ValuesIn(kFileAndTypeParameters)); |
| 146 } // namespace content | 138 } // namespace content |
| OLD | NEW |