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

Side by Side Diff: chrome/browser/media/webrtc/webrtc_browsertest_base.h

Issue 2749703005: RTCRtpSender with track behind RuntimeEnabled flag (Closed)
Patch Set: external/wpt/webrtc/RTCPeerConnection-idl-expected.txt updated passing 2 more tests Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/media/webrtc/webrtc_browsertest_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_
6 #define CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // Change the default audio/video codec in the offer SDP. 181 // Change the default audio/video codec in the offer SDP.
182 void SetDefaultAudioCodec(content::WebContents* tab, 182 void SetDefaultAudioCodec(content::WebContents* tab,
183 const std::string& audio_codec) const; 183 const std::string& audio_codec) const;
184 void SetDefaultVideoCodec(content::WebContents* tab, 184 void SetDefaultVideoCodec(content::WebContents* tab,
185 const std::string& video_codec) const; 185 const std::string& video_codec) const;
186 186
187 // Add 'usedtx=1' to the offer SDP. 187 // Add 'usedtx=1' to the offer SDP.
188 void EnableOpusDtx(content::WebContents* tab) const; 188 void EnableOpusDtx(content::WebContents* tab) const;
189 189
190 void CreateAndAddStreams(content::WebContents* tab, size_t count) const; 190 void CreateAndAddStreams(content::WebContents* tab, size_t count) const;
191 void VerifyRtpSenders(content::WebContents* tab,
192 base::Optional<size_t> expected_num_tracks =
193 base::Optional<size_t>()) const;
191 void VerifyRtpReceivers(content::WebContents* tab, 194 void VerifyRtpReceivers(content::WebContents* tab,
192 base::Optional<size_t> expected_num_tracks = 195 base::Optional<size_t> expected_num_tracks =
193 base::Optional<size_t>()) const; 196 base::Optional<size_t>()) const;
194 197
195 private: 198 private:
196 void CloseInfoBarInTab(content::WebContents* tab_contents, 199 void CloseInfoBarInTab(content::WebContents* tab_contents,
197 infobars::InfoBar* infobar) const; 200 infobars::InfoBar* infobar) const;
198 201
199 std::string CreateLocalOffer(content::WebContents* from_tab) const; 202 std::string CreateLocalOffer(content::WebContents* from_tab) const;
200 std::string CreateAnswer(std::string local_offer, 203 std::string CreateAnswer(std::string local_offer,
201 content::WebContents* to_tab) const; 204 content::WebContents* to_tab) const;
202 void ReceiveAnswer(const std::string& answer, 205 void ReceiveAnswer(const std::string& answer,
203 content::WebContents* from_tab) const; 206 content::WebContents* from_tab) const;
204 void GatherAndSendIceCandidates(content::WebContents* from_tab, 207 void GatherAndSendIceCandidates(content::WebContents* from_tab,
205 content::WebContents* to_tab) const; 208 content::WebContents* to_tab) const;
206 209
207 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( 210 infobars::InfoBar* GetUserMediaAndWaitForInfoBar(
208 content::WebContents* tab_contents, 211 content::WebContents* tab_contents,
209 const std::string& constraints) const; 212 const std::string& constraints) const;
210 213
211 bool detect_errors_in_javascript_; 214 bool detect_errors_in_javascript_;
212 215
213 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); 216 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase);
214 }; 217 };
215 218
216 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ 219 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/webrtc/webrtc_browsertest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698