Yves Gerey f3ff14c00b Properly setup MockPeerConnectionObserver in tests.
This CL prevents dereferencing potentially null pointer by:
* Setting the pointer in client code.
* Checking the pointer before use.

Bug: webrtc:9855
Change-Id: I90c3d00eedfa4bf97954f4795a83e28894cc40f7
Reviewed-on: https://webrtc-review.googlesource.com/c/107706
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Commit-Queue: Yves Gerey <yvesg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25405}
2018-10-29 09:16:25 +00:00
..
2017-10-30 18:08:29 +00:00