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
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',