From ceb956b29dc28ffac03450240ce6a5741989a762 Mon Sep 17 00:00:00 2001 From: "pbos@webrtc.org" Date: Thu, 4 Sep 2014 15:27:49 +0000 Subject: [PATCH] Abort Negotiate() if DoCreateOffer() fails. Addressing crash in test. R=jiayl@webrtc.org BUG= Review URL: https://webrtc-codereview.appspot.com/19239004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7066 4adac7df-926f-26a2-2b94-8c16560cd09d --- talk/app/webrtc/peerconnection_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talk/app/webrtc/peerconnection_unittest.cc b/talk/app/webrtc/peerconnection_unittest.cc index e19405d8ba..402a7961aa 100644 --- a/talk/app/webrtc/peerconnection_unittest.cc +++ b/talk/app/webrtc/peerconnection_unittest.cc @@ -614,7 +614,7 @@ class JsepTestClient } virtual void Negotiate(bool audio, bool video) { rtc::scoped_ptr offer; - EXPECT_TRUE(DoCreateOffer(offer.use())); + ASSERT_TRUE(DoCreateOffer(offer.use())); if (offer->description()->GetContentByName("audio")) { offer->description()->GetContentByName("audio")->rejected = !audio;