Update MockPeerConnectionImpl and MockPeerConnectionDependencyFactory.
commitbc8a935af24a45165630c411c6c43e53f312fb7a
authortommi <tommi@chromium.org>
Tue, 28 Oct 2014 11:58:32 +0000 (28 04:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Oct 2014 11:59:10 +0000 (28 11:59 +0000)
tree59f92ea01c4e67af2d930e22077c36cdf42d6d9c
parent28e88081438dc08b06d5f05cfdd980c407db1638
Update MockPeerConnectionImpl and MockPeerConnectionDependencyFactory.
- Add support for multiple observers.
- Add a way to access the PC observer from the mocked PeerConnection.

This is needed for an upcoming getStats refactoring cl which separates the RtcPeerConnectionHandler from the observer.

BUG=369796

Review URL: https://codereview.chromium.org/660423003

Cr-Commit-Position: refs/heads/master@{#301605}
content/renderer/media/mock_peer_connection_impl.cc
content/renderer/media/mock_peer_connection_impl.h
content/renderer/media/webrtc/mock_peer_connection_dependency_factory.cc
content/renderer/media/webrtc/mock_peer_connection_dependency_factory.h