Index: talk/app/webrtc/webrtcsdp_unittest.cc |
diff --git a/talk/app/webrtc/webrtcsdp_unittest.cc b/talk/app/webrtc/webrtcsdp_unittest.cc |
index 1bf3e681c372adead0b096ca74558343ca9e9a7e..15fc8083b4e8503fed7d6259706807e93c8d799e 100644 |
--- a/talk/app/webrtc/webrtcsdp_unittest.cc |
+++ b/talk/app/webrtc/webrtcsdp_unittest.cc |
@@ -30,6 +30,9 @@ |
#include <vector> |
#include "talk/app/webrtc/jsepsessiondescription.h" |
+#ifdef WEBRTC_ANDROID |
+#include "talk/app/webrtc/test/androidtestinitializer.h" |
+#endif |
#include "talk/app/webrtc/webrtcsdp.h" |
#include "talk/media/base/constants.h" |
#include "webrtc/p2p/base/constants.h" |
@@ -544,6 +547,9 @@ class WebRtcSdpTest : public testing::Test { |
public: |
WebRtcSdpTest() |
: jdesc_(kDummyString) { |
+#ifdef WEBRTC_ANDROID |
+ webrtc::InitializeAndroidObjects(); |
+#endif |
// AudioContentDescription |
audio_desc_ = CreateAudioContentDescription(); |
AudioCodec opus(111, "opus", 48000, 0, 2, 3); |