Chromium Code Reviews| Index: content/renderer/media/mock_peer_connection_impl.cc |
| diff --git a/content/renderer/media/mock_peer_connection_impl.cc b/content/renderer/media/mock_peer_connection_impl.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a0689be5fc8b1a65fcaafd31d459b4b2d3878bab |
| --- /dev/null |
| +++ b/content/renderer/media/mock_peer_connection_impl.cc |
| @@ -0,0 +1,67 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "content/renderer/media/mock_peer_connection_impl.h" |
| + |
| +namespace webrtc { |
| + |
| +MockPeerConnectionImpl::MockPeerConnectionImpl() {} |
| + |
| +MockPeerConnectionImpl::~MockPeerConnectionImpl() {} |
| + |
| +void MockPeerConnectionImpl::RegisterObserver( |
| + PeerConnectionObserver* observer) { |
| +} |
|
tommi (sloooow) - chröme
2011/11/08 12:27:24
NOTIMPLEMENTED?
Henrik Grunell
2011/11/08 22:06:41
Is implemented in new patch.
|
| + |
| +bool MockPeerConnectionImpl::SignalingMessage( |
| + const std::string& signaling_message) { |
| + signaling_message_ = signaling_message; |
| + return true; |
| +} |
| + |
| +bool MockPeerConnectionImpl::AddStream( |
| + const std::string& stream_id, |
| + bool video) { |
| + return false; |
| +} |
| + |
| +bool MockPeerConnectionImpl::RemoveStream(const std::string& stream_id) { |
| + return false; |
| +} |
| + |
| +bool MockPeerConnectionImpl::Connect() { |
| + return false; |
| +} |
| + |
| +bool MockPeerConnectionImpl::Close() { |
| + return false; |
| +} |
| + |
| +bool MockPeerConnectionImpl::SetAudioDevice( |
| + const std::string& wave_in_device, |
| + const std::string& wave_out_device, |
| + int opts) { |
| + return false; |
| +} |
| + |
| +bool MockPeerConnectionImpl::SetLocalVideoRenderer( |
| + cricket::VideoRenderer* renderer) { |
| + return false; |
| +} |
| + |
| +bool MockPeerConnectionImpl::SetVideoRenderer( |
| + const std::string& stream_id, |
| + cricket::VideoRenderer* renderer) { |
| + return false; |
| +} |
| + |
| +bool MockPeerConnectionImpl::SetVideoCapture(const std::string& cam_device) { |
| + return false; |
| +} |
| + |
| +MockPeerConnectionImpl::ReadyState MockPeerConnectionImpl::GetReadyState() { |
| + return NEW; |
| +} |
| + |
| +} // namespace webrtc |