| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/macros.h" | 6 #include "base/macros.h" |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/browser/webrtc/webrtc_content_browsertest_base.h" | 9 #include "content/browser/webrtc/webrtc_content_browsertest_base.h" |
| 10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, | 143 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, |
| 144 IllegalRequestDataThrowsDOMError) { | 144 IllegalRequestDataThrowsDOMError) { |
| 145 MakeTypicalCall("testIllegalRequestDataThrowsDOMError();", | 145 MakeTypicalCall("testIllegalRequestDataThrowsDOMError();", |
| 146 kMediaRecorderHtmlFile); | 146 kMediaRecorderHtmlFile); |
| 147 } | 147 } |
| 148 | 148 |
| 149 #if defined(OS_ANDROID) && defined(ADDRESS_SANITIZER) | 149 #if defined(OS_ANDROID) && defined(ADDRESS_SANITIZER) |
| 150 // Parametrizations 1/2 (VP8/VP9+disabled) time out under Android ASAN: | 150 // Parametrizations 1/2 (VP8/VP9+disabled) time out under Android ASAN: |
| 151 // https://crbug.com/693565. | 151 // https://crbug.com/693565. |
| 152 #define MAYBE_PeerConnection DISABLED_PeerConnection | 152 #define MAYBE_PeerConnection DISABLED_PeerConnection |
| 153 #elif defined(OS_LINUX) && defined(THREAD_SANITIZER) |
| 154 // Flaky on Linux TSan, https://crbug.com/694373. |
| 155 #define MAYBE_PeerConnection DISABLED_PeerConnection |
| 153 #else | 156 #else |
| 154 #define MAYBE_PeerConnection PeerConnection | 157 #define MAYBE_PeerConnection PeerConnection |
| 155 #endif | 158 #endif |
| 156 | 159 |
| 157 IN_PROC_BROWSER_TEST_P(WebRtcMediaRecorderTest, MAYBE_PeerConnection) { | 160 IN_PROC_BROWSER_TEST_P(WebRtcMediaRecorderTest, MAYBE_PeerConnection) { |
| 158 MaybeForceDisableEncodeAccelerator(GetParam().disable_accelerator); | 161 MaybeForceDisableEncodeAccelerator(GetParam().disable_accelerator); |
| 159 MakeTypicalCall(base::StringPrintf("testRecordRemotePeerConnection(\"%s\");", | 162 MakeTypicalCall(base::StringPrintf("testRecordRemotePeerConnection(\"%s\");", |
| 160 GetParam().mime_type.c_str()), | 163 GetParam().mime_type.c_str()), |
| 161 kMediaRecorderHtmlFile); | 164 kMediaRecorderHtmlFile); |
| 162 } | 165 } |
| 163 | 166 |
| 164 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, | 167 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, |
| 165 AddingTrackToMediaStreamFiresErrorEvent) { | 168 AddingTrackToMediaStreamFiresErrorEvent) { |
| 166 MakeTypicalCall("testAddingTrackToMediaStreamFiresErrorEvent();", | 169 MakeTypicalCall("testAddingTrackToMediaStreamFiresErrorEvent();", |
| 167 kMediaRecorderHtmlFile); | 170 kMediaRecorderHtmlFile); |
| 168 } | 171 } |
| 169 | 172 |
| 170 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, | 173 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, |
| 171 RemovingTrackFromMediaStreamFiresErrorEvent) { | 174 RemovingTrackFromMediaStreamFiresErrorEvent) { |
| 172 MakeTypicalCall("testRemovingTrackFromMediaStreamFiresErrorEvent();", | 175 MakeTypicalCall("testRemovingTrackFromMediaStreamFiresErrorEvent();", |
| 173 kMediaRecorderHtmlFile); | 176 kMediaRecorderHtmlFile); |
| 174 } | 177 } |
| 175 | 178 |
| 176 INSTANTIATE_TEST_CASE_P(, | 179 INSTANTIATE_TEST_CASE_P(, |
| 177 WebRtcMediaRecorderTest, | 180 WebRtcMediaRecorderTest, |
| 178 testing::ValuesIn(kEncodingParameters)); | 181 testing::ValuesIn(kEncodingParameters)); |
| 179 | 182 |
| 180 } // namespace content | 183 } // namespace content |
| OLD | NEW |