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 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // Returns true if we're on win 8. | 154 // Returns true if we're on win 8. |
155 bool OnWin8() const; | 155 bool OnWin8() const; |
156 | 156 |
157 void OpenDatabase(content::WebContents* tab) const; | 157 void OpenDatabase(content::WebContents* tab) const; |
158 void CloseDatabase(content::WebContents* tab) const; | 158 void CloseDatabase(content::WebContents* tab) const; |
159 void DeleteDatabase(content::WebContents* tab) const; | 159 void DeleteDatabase(content::WebContents* tab) const; |
160 | 160 |
161 void GenerateAndCloneCertificate(content::WebContents* tab, | 161 void GenerateAndCloneCertificate(content::WebContents* tab, |
162 const std::string& keygen_algorithm) const; | 162 const std::string& keygen_algorithm) const; |
163 | 163 |
164 void VerifyStatsGenerated(content::WebContents* tab) const; | 164 void VerifyStatsGeneratedCallback(content::WebContents* tab) const; |
| 165 void VerifyStatsGeneratedPromise(content::WebContents* tab) const; |
165 | 166 |
166 // Change the default video codec in the offer SDP. | 167 // Change the default video codec in the offer SDP. |
167 void SetDefaultVideoCodec(content::WebContents* tab, | 168 void SetDefaultVideoCodec(content::WebContents* tab, |
168 const std::string& video_codec) const; | 169 const std::string& video_codec) const; |
169 | 170 |
170 // Add 'usedtx=1' to the offer SDP. | 171 // Add 'usedtx=1' to the offer SDP. |
171 void EnableOpusDtx(content::WebContents* tab) const; | 172 void EnableOpusDtx(content::WebContents* tab) const; |
172 | 173 |
173 private: | 174 private: |
174 void CloseInfoBarInTab(content::WebContents* tab_contents, | 175 void CloseInfoBarInTab(content::WebContents* tab_contents, |
(...skipping 10 matching lines...) Expand all Loading... |
185 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( | 186 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( |
186 content::WebContents* tab_contents, | 187 content::WebContents* tab_contents, |
187 const std::string& constraints) const; | 188 const std::string& constraints) const; |
188 | 189 |
189 bool detect_errors_in_javascript_; | 190 bool detect_errors_in_javascript_; |
190 | 191 |
191 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); | 192 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); |
192 }; | 193 }; |
193 | 194 |
194 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ | 195 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ |
OLD | NEW |