Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(698)

Unified Diff: content/renderer/media/mock_peer_connection_impl.h

Issue 8060055: Adding support for MediaStream and PeerConnection functionality (Closed) Base URL: http://git.chromium.org/chromium/chromium.git@trunk
Patch Set: Adding render view files again, can't split CL Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/mock_peer_connection_impl.h
diff --git a/content/renderer/media/mock_peer_connection_impl.h b/content/renderer/media/mock_peer_connection_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..08c54897027807cd9d01d4490b2561a73ad3c4be
--- /dev/null
+++ b/content/renderer/media/mock_peer_connection_impl.h
@@ -0,0 +1,42 @@
+// 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.
+
+#ifndef CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
+#define CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
+
+#include <string>
+
+#include "base/compiler_specific.h"
+#include "third_party/libjingle/source/talk/app/webrtc/peerconnection.h"
+
+namespace webrtc {
+
+class MockPeerConnectionImpl : public PeerConnection {
+ public:
+ MockPeerConnectionImpl();
+ virtual ~MockPeerConnectionImpl() {}
scherkus (not reviewing) 2011/10/31 01:59:13 don't inline
Henrik Grunell 2011/10/31 13:17:53 Done.
+
+ // 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.
+ virtual void RegisterObserver(PeerConnectionObserver* observer) OVERRIDE;
+ virtual bool SignalingMessage(const std::string& msg) OVERRIDE;
+ virtual bool AddStream(const std::string& stream_id, bool video) OVERRIDE;
+ virtual bool RemoveStream(const std::string& stream_id) OVERRIDE;
+ virtual bool Connect() OVERRIDE;
+ virtual bool Close() OVERRIDE;
+ virtual bool SetAudioDevice(
+ const std::string& wave_in_device,
+ const std::string& wave_out_device, int opts) OVERRIDE;
+ virtual bool SetLocalVideoRenderer(cricket::VideoRenderer* renderer) OVERRIDE;
+ virtual bool SetVideoRenderer(
+ const std::string& stream_id,
+ cricket::VideoRenderer* renderer) OVERRIDE;
+ virtual bool SetVideoCapture(const std::string& cam_device) OVERRIDE;
+ virtual ReadyState GetReadyState() OVERRIDE;
+
+ 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.
+};
+
+} // namespace webrtc
+
+#endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698