Index: content/renderer/media/webrtc_local_audio_track_unittest.cc |
diff --git a/content/renderer/media/webrtc_local_audio_track_unittest.cc b/content/renderer/media/webrtc_local_audio_track_unittest.cc |
index 3f542fb6e8beabf85747533ae6df6ab79105b2cb..6bdd034ad624becd1fcc33b48cdc9b23c5c9ff2f 100644 |
--- a/content/renderer/media/webrtc_local_audio_track_unittest.cc |
+++ b/content/renderer/media/webrtc_local_audio_track_unittest.cc |
@@ -404,8 +404,16 @@ TEST_F(WebRtcLocalAudioTrackTest, StartAndStopAudioTracks) { |
capturer_->Stop(); |
} |
+// Contains data races reported by tsan: crbug.com/404133 |
+#if defined(THREAD_SANITIZER) |
+ #define DISABLE_ON_TSAN(function) DISABLED_##function |
+#else |
+ #define DISABLE_ON_TSAN(function) function |
+#endif |
+ |
// Create a new capturer with new source, connect it to a new audio track. |
-TEST_F(WebRtcLocalAudioTrackTest, ConnectTracksToDifferentCapturers) { |
+TEST_F(WebRtcLocalAudioTrackTest, |
+ DISABLE_ON_TSAN(ConnectTracksToDifferentCapturers)) { |
// Setup the first audio track and start it. |
scoped_refptr<WebRtcLocalAudioTrackAdapter> adapter_1( |
WebRtcLocalAudioTrackAdapter::Create(std::string(), NULL)); |