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

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

Issue 11783059: Ensures that WebRTC works for device selection using a different sample rate than default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed content_unittests Created 7 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 | 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription( 118 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription(
119 const std::string& type, 119 const std::string& type,
120 const std::string& sdp) OVERRIDE; 120 const std::string& sdp) OVERRIDE;
121 virtual webrtc::IceCandidateInterface* CreateIceCandidate( 121 virtual webrtc::IceCandidateInterface* CreateIceCandidate(
122 const std::string& sdp_mid, 122 const std::string& sdp_mid,
123 int sdp_mline_index, 123 int sdp_mline_index,
124 const std::string& sdp) OVERRIDE; 124 const std::string& sdp) OVERRIDE;
125 125
126 virtual bool EnsurePeerConnectionFactory() OVERRIDE; 126 virtual bool EnsurePeerConnectionFactory() OVERRIDE;
127 virtual bool PeerConnectionFactoryCreated() OVERRIDE; 127 virtual bool PeerConnectionFactoryCreated() OVERRIDE;
128 virtual void SetAudioDeviceSessionId(int session_id) OVERRIDE;
129 128
130 MockVideoSource* last_video_source() { return last_video_source_; } 129 MockVideoSource* last_video_source() { return last_video_source_; }
131 130
132 private: 131 private:
133 bool mock_pc_factory_created_; 132 bool mock_pc_factory_created_;
134 scoped_refptr <MockVideoSource> last_video_source_; 133 scoped_refptr <MockVideoSource> last_video_source_;
135 134
136 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); 135 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory);
137 }; 136 };
138 137
139 } // namespace content 138 } // namespace content
140 139
141 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 140 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698