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

Side by Side Diff: content/renderer/media/mock_media_stream_dependency_factory.h

Issue 10703095: New PeerConnection handler in Chrome to support latest PeerConnection draft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added unit test and mock. Removed old bad mock. Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 talk_base::Thread* signaling_thread, 77 talk_base::Thread* signaling_thread,
78 content::P2PSocketDispatcher* socket_dispatcher, 78 content::P2PSocketDispatcher* socket_dispatcher,
79 talk_base::NetworkManager* network_manager, 79 talk_base::NetworkManager* network_manager,
80 talk_base::PacketSocketFactory* socket_factory) OVERRIDE; 80 talk_base::PacketSocketFactory* socket_factory) OVERRIDE;
81 virtual void ReleasePeerConnectionFactory() OVERRIDE; 81 virtual void ReleasePeerConnectionFactory() OVERRIDE;
82 virtual bool PeerConnectionFactoryCreated() OVERRIDE; 82 virtual bool PeerConnectionFactoryCreated() OVERRIDE;
83 virtual talk_base::scoped_refptr<webrtc::PeerConnectionInterface> 83 virtual talk_base::scoped_refptr<webrtc::PeerConnectionInterface>
84 CreatePeerConnection( 84 CreatePeerConnection(
85 const std::string& config, 85 const std::string& config,
86 webrtc::PeerConnectionObserver* observer) OVERRIDE; 86 webrtc::PeerConnectionObserver* observer) OVERRIDE;
87 virtual talk_base::scoped_refptr<webrtc::PeerConnectionInterface>
88 CreatePeerConnection(const webrtc::JsepInterface::IceServers& ice_servers,
89 const webrtc::MediaConstraintsInterface* constraints,
90 webrtc::PeerConnectionObserver* observer) OVERRIDE;
87 virtual talk_base::scoped_refptr<webrtc::LocalMediaStreamInterface> 91 virtual talk_base::scoped_refptr<webrtc::LocalMediaStreamInterface>
88 CreateLocalMediaStream(const std::string& label) OVERRIDE; 92 CreateLocalMediaStream(const std::string& label) OVERRIDE;
89 virtual talk_base::scoped_refptr<webrtc::LocalVideoTrackInterface> 93 virtual talk_base::scoped_refptr<webrtc::LocalVideoTrackInterface>
90 CreateLocalVideoTrack( 94 CreateLocalVideoTrack(
91 const std::string& label, 95 const std::string& label,
92 int video_session_id) OVERRIDE; 96 int video_session_id) OVERRIDE;
93 virtual talk_base::scoped_refptr<webrtc::LocalAudioTrackInterface> 97 virtual talk_base::scoped_refptr<webrtc::LocalAudioTrackInterface>
94 CreateLocalAudioTrack( 98 CreateLocalAudioTrack(
95 const std::string& label, 99 const std::string& label,
96 webrtc::AudioDeviceModule* audio_device) OVERRIDE; 100 webrtc::AudioDeviceModule* audio_device) OVERRIDE;
97 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription( 101 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription(
98 const std::string& sdp) OVERRIDE; 102 const std::string& sdp) OVERRIDE;
103 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription(
104 const std::string& type,
105 const std::string& sdp) OVERRIDE;
wjia(left Chromium) 2012/08/12 17:06:52 indent.
perkj_chrome 2012/08/13 07:35:46 Done.
99 virtual webrtc::IceCandidateInterface* CreateIceCandidate( 106 virtual webrtc::IceCandidateInterface* CreateIceCandidate(
100 const std::string& sdp_mid, 107 const std::string& sdp_mid,
101 int sdp_mline_index, 108 int sdp_mline_index,
102 const std::string& sdp) OVERRIDE; 109 const std::string& sdp) OVERRIDE;
103 110
104 private: 111 private:
105 bool mock_pc_factory_created_; 112 bool mock_pc_factory_created_;
106 113
107 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); 114 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory);
108 }; 115 };
109 116
110 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 117 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698