mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-18 08:07:56 +01:00
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:
parent
f31a47abdc
commit
af84d782f0
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,8 @@ class FakeTransportChannel : public TransportChannelImpl,
|
||||||
tiebreaker_(0),
|
tiebreaker_(0),
|
||||||
ice_proto_(ICEPROTO_HYBRID),
|
ice_proto_(ICEPROTO_HYBRID),
|
||||||
remote_ice_mode_(ICEMODE_FULL),
|
remote_ice_mode_(ICEMODE_FULL),
|
||||||
dtls_fingerprint_("", NULL, 0) {
|
dtls_fingerprint_("", NULL, 0),
|
||||||
|
ssl_role_(talk_base::SSL_CLIENT) {
|
||||||
}
|
}
|
||||||
~FakeTransportChannel() {
|
~FakeTransportChannel() {
|
||||||
Reset();
|
Reset();
|
||||||
|
@ -207,7 +208,6 @@ class FakeTransportChannel : public TransportChannelImpl,
|
||||||
|
|
||||||
bool SetLocalIdentity(talk_base::SSLIdentity* identity) {
|
bool SetLocalIdentity(talk_base::SSLIdentity* identity) {
|
||||||
identity_ = identity;
|
identity_ = identity;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue