Bug 1351700 - Fix linking error when building webrtc-gtest; r?jesup draft
authorDan Minor <dminor@mozilla.com>
Wed, 29 Mar 2017 14:22:23 -0400
changeset 553691 8e03485b93b44bac37165ec05e855d80af2e772c
parent 553172 6ea713ccc9abea93126423fefb855d0e051c95e2
child 622142 32527ef170f25fa9d12ea5d3e4f2e9f6094b88f9
push id51721
push userdminor@mozilla.com
push dateThu, 30 Mar 2017 13:17:03 +0000
reviewersjesup
bugs1351700
milestone55.0a1
Bug 1351700 - Fix linking error when building webrtc-gtest; r?jesup This adds a stub implementation for nsTraceRefcnt::WalkTheStack which we're pulling in from <mozilla/Assertions.h> in some debug builds. MozReview-Commit-ID: 6wVghIfKWWZ
media/webrtc/trunk/gtest/FakeNsTraceRefcnt.cpp
media/webrtc/trunk/gtest/moz.build
new file mode 100644
--- /dev/null
+++ b/media/webrtc/trunk/gtest/FakeNsTraceRefcnt.cpp
@@ -0,0 +1,13 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#define MOZ_DUMP_ASSERTION_STACK
+#include <mozilla/Assertions.h>
+
+#include <stdio.h>
+
+void
+nsTraceRefcnt::WalkTheStack(FILE* aStream)
+{
+}
--- a/media/webrtc/trunk/gtest/moz.build
+++ b/media/webrtc/trunk/gtest/moz.build
@@ -372,16 +372,17 @@ if CONFIG['OS_TARGET'] in ['Darwin', 'Li
         '../webrtc/voice_engine/channel_unittest.cc',
         '../webrtc/voice_engine/network_predictor_unittest.cc',
         '../webrtc/voice_engine/transmit_mixer_unittest.cc',
         '../webrtc/voice_engine/utility_unittest.cc',
         '../webrtc/voice_engine/voe_audio_processing_unittest.cc',
     # Fails VoEBaseTest.GetVersion!
     #    '../webrtc/voice_engine/voe_base_unittest.cc',
         'FakeIPC.cpp',
+        'FakeNsTraceRefcnt.cpp',
     ]
 
     # Unable to use unified build due to multiply defined symbols
     SOURCES += [
         '../webrtc/audio/audio_send_stream_unittest.cc',
         '../webrtc/audio/audio_state_unittest.cc',
         '../webrtc/modules/audio_processing/beamformer/nonlinear_beamformer_unittest.cc',
         '../webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer_unittest.cc',