| 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> | |
| 10 | 9 |
| 11 #include "base/macros.h" | 10 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | |
| 13 #include "chrome/browser/media/webrtc/test_stats_dictionary.h" | |
| 14 #include "chrome/test/base/in_process_browser_test.h" | 11 #include "chrome/test/base/in_process_browser_test.h" |
| 15 | 12 |
| 16 namespace infobars { | 13 namespace infobars { |
| 17 class InfoBar; | 14 class InfoBar; |
| 18 } | 15 } |
| 19 | 16 |
| 20 namespace content { | 17 namespace content { |
| 21 class WebContents; | 18 class WebContents; |
| 22 } | 19 } |
| 23 | 20 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 void OpenDatabase(content::WebContents* tab) const; | 159 void OpenDatabase(content::WebContents* tab) const; |
| 163 void CloseDatabase(content::WebContents* tab) const; | 160 void CloseDatabase(content::WebContents* tab) const; |
| 164 void DeleteDatabase(content::WebContents* tab) const; | 161 void DeleteDatabase(content::WebContents* tab) const; |
| 165 | 162 |
| 166 void GenerateAndCloneCertificate(content::WebContents* tab, | 163 void GenerateAndCloneCertificate(content::WebContents* tab, |
| 167 const std::string& keygen_algorithm) const; | 164 const std::string& keygen_algorithm) const; |
| 168 | 165 |
| 169 void VerifyStatsGeneratedCallback(content::WebContents* tab) const; | 166 void VerifyStatsGeneratedCallback(content::WebContents* tab) const; |
| 170 std::vector<std::string> VerifyStatsGeneratedPromise( | 167 std::vector<std::string> VerifyStatsGeneratedPromise( |
| 171 content::WebContents* tab) const; | 168 content::WebContents* tab) const; |
| 172 scoped_refptr<content::TestStatsReportDictionary> GetStatsReportDictionary( | |
| 173 content::WebContents* tab) const; | |
| 174 std::vector<std::string> GetWhitelistedStatsTypes( | 169 std::vector<std::string> GetWhitelistedStatsTypes( |
| 175 content::WebContents* tab) const; | 170 content::WebContents* tab) const; |
| 176 | 171 |
| 177 // Change the default video codec in the offer SDP. | 172 // Change the default video codec in the offer SDP. |
| 178 void SetDefaultVideoCodec(content::WebContents* tab, | 173 void SetDefaultVideoCodec(content::WebContents* tab, |
| 179 const std::string& video_codec) const; | 174 const std::string& video_codec) const; |
| 180 | 175 |
| 181 // Add 'usedtx=1' to the offer SDP. | 176 // Add 'usedtx=1' to the offer SDP. |
| 182 void EnableOpusDtx(content::WebContents* tab) const; | 177 void EnableOpusDtx(content::WebContents* tab) const; |
| 183 | 178 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 196 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( | 191 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( |
| 197 content::WebContents* tab_contents, | 192 content::WebContents* tab_contents, |
| 198 const std::string& constraints) const; | 193 const std::string& constraints) const; |
| 199 | 194 |
| 200 bool detect_errors_in_javascript_; | 195 bool detect_errors_in_javascript_; |
| 201 | 196 |
| 202 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); | 197 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); |
| 203 }; | 198 }; |
| 204 | 199 |
| 205 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ | 200 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ |
| OLD | NEW |