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
This commit is contained in:
mallinath@webrtc.org 2013-08-26 17:14:13 +00:00
parent f31a47abdc
commit af84d782f0

View file

@ -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;
}