From af84d782f0914a75f6f73e9c4736d940896ff132 Mon Sep 17 00:00:00 2001 From: "mallinath@webrtc.org" Date: Mon, 26 Aug 2013 17:14:13 +0000 Subject: [PATCH] Initialize ssl_role_ to the default role in FakeTransportChannel constructor. This is needed as BaseSession tests can query the transport channel without creating dtlstransportchannel ( as they are unaware of the underlying implementation). This will also fix the memcheck error in webrtc bots. R=wu@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2110004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4615 4adac7df-926f-26a2-2b94-8c16560cd09d --- talk/p2p/base/fakesession.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/talk/p2p/base/fakesession.h b/talk/p2p/base/fakesession.h index d3da2b27f7..8b1550c024 100644 --- a/talk/p2p/base/fakesession.h +++ b/talk/p2p/base/fakesession.h @@ -71,7 +71,8 @@ class FakeTransportChannel : public TransportChannelImpl, tiebreaker_(0), ice_proto_(ICEPROTO_HYBRID), remote_ice_mode_(ICEMODE_FULL), - dtls_fingerprint_("", NULL, 0) { + dtls_fingerprint_("", NULL, 0), + ssl_role_(talk_base::SSL_CLIENT) { } ~FakeTransportChannel() { Reset(); @@ -207,7 +208,6 @@ class FakeTransportChannel : public TransportChannelImpl, bool SetLocalIdentity(talk_base::SSLIdentity* identity) { identity_ = identity; - return true; }