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

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: Merge Created 8 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 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();
16
17 virtual cricket::WebRtcMediaEngine* CreateWebRtcMediaEngine() OVERRIDE;
18 virtual bool CreatePeerConnectionFactory(
19 cricket::MediaEngineInterface* media_engine,
20 talk_base::Thread* worker_thread) OVERRIDE;
21 virtual void DeletePeerConnectionFactory() OVERRIDE;
22 virtual bool PeerConnectionFactoryCreated() OVERRIDE;
23 virtual cricket::PortAllocator* CreatePortAllocator(
24 content::P2PSocketDispatcher* socket_dispatcher,
25 talk_base::NetworkManager* network_manager,
26 talk_base::PacketSocketFactory* socket_factory,
27 const webkit_glue::P2PTransport::Config& config) OVERRIDE;
28 virtual webrtc::PeerConnection* CreatePeerConnection(
29 cricket::PortAllocator* port_allocator,
30 talk_base::Thread* signaling_thread) OVERRIDE;
31
32 private:
33 bool mock_pc_factory_created_;
34 scoped_ptr<cricket::MediaEngineInterface> media_engine_;
35
36 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory);
37 };
38
39 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_impl_unittest.cc ('k') | content/renderer/media/mock_media_stream_dependency_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698