| OLD | NEW |
| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 content::WebContents* tab) const; | 186 content::WebContents* tab) const; |
| 187 scoped_refptr<content::TestStatsReportDictionary> GetStatsReportDictionary( | 187 scoped_refptr<content::TestStatsReportDictionary> GetStatsReportDictionary( |
| 188 content::WebContents* tab) const; | 188 content::WebContents* tab) const; |
| 189 double MeasureGetStatsPerformance(content::WebContents* tab) const; | 189 double MeasureGetStatsPerformance(content::WebContents* tab) const; |
| 190 std::vector<std::string> GetWhitelistedStatsTypes( | 190 std::vector<std::string> GetWhitelistedStatsTypes( |
| 191 content::WebContents* tab) const; | 191 content::WebContents* tab) const; |
| 192 | 192 |
| 193 // Change the default audio/video codec in the offer SDP. | 193 // Change the default audio/video codec in the offer SDP. |
| 194 void SetDefaultAudioCodec(content::WebContents* tab, | 194 void SetDefaultAudioCodec(content::WebContents* tab, |
| 195 const std::string& audio_codec) const; | 195 const std::string& audio_codec) const; |
| 196 // |prefer_hw_codec| controls if the first or last codec with name |
| 197 // |video_codec| should be selected. External video codecs are currently at |
| 198 // the end of the SDP list. This parameter only matters if there are multiple |
| 199 // codecs with the same name, which can be the case for H264. |
| 196 void SetDefaultVideoCodec(content::WebContents* tab, | 200 void SetDefaultVideoCodec(content::WebContents* tab, |
| 197 const std::string& video_codec) const; | 201 const std::string& video_codec, |
| 202 bool prefer_hw_codec = false) const; |
| 198 | 203 |
| 199 // Add 'usedtx=1' to the offer SDP. | 204 // Add 'usedtx=1' to the offer SDP. |
| 200 void EnableOpusDtx(content::WebContents* tab) const; | 205 void EnableOpusDtx(content::WebContents* tab) const; |
| 201 | 206 |
| 202 void CreateAndAddStreams(content::WebContents* tab, size_t count) const; | 207 void CreateAndAddStreams(content::WebContents* tab, size_t count) const; |
| 203 void VerifyRtpSenders(content::WebContents* tab, | 208 void VerifyRtpSenders(content::WebContents* tab, |
| 204 base::Optional<size_t> expected_num_tracks = | 209 base::Optional<size_t> expected_num_tracks = |
| 205 base::Optional<size_t>()) const; | 210 base::Optional<size_t>()) const; |
| 206 void VerifyRtpReceivers(content::WebContents* tab, | 211 void VerifyRtpReceivers(content::WebContents* tab, |
| 207 base::Optional<size_t> expected_num_tracks = | 212 base::Optional<size_t> expected_num_tracks = |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( | 250 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( |
| 246 content::WebContents* tab_contents, | 251 content::WebContents* tab_contents, |
| 247 const std::string& constraints) const; | 252 const std::string& constraints) const; |
| 248 | 253 |
| 249 bool detect_errors_in_javascript_; | 254 bool detect_errors_in_javascript_; |
| 250 | 255 |
| 251 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); | 256 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); |
| 252 }; | 257 }; |
| 253 | 258 |
| 254 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ | 259 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ |
| OLD | NEW |