Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "third_party/libjingle/source/talk/app/webrtc/peerconnection.h" | |
| 12 | |
| 13 namespace webrtc { | |
| 14 | |
| 15 class MockPeerConnectionImpl : public PeerConnection { | |
| 16 public: | |
| 17 MockPeerConnectionImpl(); | |
| 18 virtual ~MockPeerConnectionImpl() {} | |
|
scherkus (not reviewing)
2011/10/31 01:59:13
don't inline
Henrik Grunell
2011/10/31 13:17:53
Done.
| |
| 19 | |
| 20 // PeerConnection interfaces | |
|
scherkus (not reviewing)
2011/10/31 01:59:13
nit: interfaces or implementation?
also end w/ pe
Henrik Grunell
2011/10/31 13:17:53
Impl. Fixed.
| |
| 21 virtual void RegisterObserver(PeerConnectionObserver* observer) OVERRIDE; | |
| 22 virtual bool SignalingMessage(const std::string& msg) OVERRIDE; | |
| 23 virtual bool AddStream(const std::string& stream_id, bool video) OVERRIDE; | |
| 24 virtual bool RemoveStream(const std::string& stream_id) OVERRIDE; | |
| 25 virtual bool Connect() OVERRIDE; | |
| 26 virtual bool Close() OVERRIDE; | |
| 27 virtual bool SetAudioDevice( | |
| 28 const std::string& wave_in_device, | |
| 29 const std::string& wave_out_device, int opts) OVERRIDE; | |
| 30 virtual bool SetLocalVideoRenderer(cricket::VideoRenderer* renderer) OVERRIDE; | |
| 31 virtual bool SetVideoRenderer( | |
| 32 const std::string& stream_id, | |
| 33 cricket::VideoRenderer* renderer) OVERRIDE; | |
| 34 virtual bool SetVideoCapture(const std::string& cam_device) OVERRIDE; | |
| 35 virtual ReadyState GetReadyState() OVERRIDE; | |
| 36 | |
| 37 std::string signaling_message_; | |
|
scherkus (not reviewing)
2011/10/31 01:59:13
ditto here w/ making this private w/ accessors
al
Henrik Grunell
2011/10/31 13:17:53
Done.
| |
| 38 }; | |
| 39 | |
| 40 } // namespace webrtc | |
| 41 | |
| 42 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | |
| OLD | NEW |