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

Side by Side Diff: content/renderer/media/mock_media_stream_dependency_factory.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, 1 month 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 unified diff | Download patch
OLDNEW
(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_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
7
8 #include "base/compiler_specific.h"
9 #include "content/renderer/media/media_stream_dependency_factory.h"
10
11 // A mock factory for creating different objects for MediaStreamImpl.
12 class MockMediaStreamDependencyFactory : public MediaStreamDependencyFactory {
13 public:
14 MockMediaStreamDependencyFactory();
15 virtual ~MockMediaStreamDependencyFactory() {}
scherkus (not reviewing) 2011/10/31 01:59:13 nit: don't inline virtual functions: http://dev.c
Henrik Grunell 2011/10/31 13:17:53 Done.
16
17 virtual cricket::WebRtcMediaEngine* CreateWebRtcMediaEngine() OVERRIDE;
18 virtual bool CreatePeerConnectionFactory(
19 cricket::PortAllocator* port_allocator,
20 cricket::MediaEngineInterface* media_engine,
21 talk_base::Thread* worker_thread) OVERRIDE;
22 virtual void DeletePeerConnectionFactory() OVERRIDE;
23 virtual bool PeerConnectionFactoryCreated() OVERRIDE;
24 virtual webrtc::PeerConnection* CreatePeerConnection(
25 talk_base::Thread* signaling_thread) OVERRIDE;
26
27 private:
28 bool mock_pc_factory_created_;
29
30 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory);
31 };
32
33 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698